c) Given the changed lines of code below, answer the following questions. ANALOG_COMPARE_SETUP: LDI R16,0 STS ADCSRA, R16 LDI R16,0b00000000 STS ADCSRB, R16 LDI R16,0 STS ADMUX, R16 LDI R16,0b00000000 OUT ACSR, R16 RET What signals are now being compared? Determine if a comparator interrupt will occur (show work): Time (s) 0 1 2 3 7+101 4 5 6 AINO (volts) 1 5 1 1 1 5 5 AIN1 (volts) 4 4 4 0 4 4 0 Interrupt (y/n) n/a initial state

Electricity for Refrigeration, Heating, and Air Conditioning (MindTap Course List)
10th Edition
ISBN:9781337399128
Author:Russell E. Smith
Publisher:Russell E. Smith
Chapter9: Components For Electric Motors
Section: Chapter Questions
Problem 14RQ
icon
Related questions
icon
Concept explainers
Question
c) Given the changed lines of code below, answer the following questions.
ANALOG_COMPARE_SETUP:
LDI R16,0
STS ADCSRA, R16
LDI R16, 0b0e*** ***
STS ADCSRB, R16
LDI R16,0
STS ADMUX, R16
LDI R16,0b00000000
OUT ACSR, R16
RET
What signals are now being compared?
Determine if a comparator interrupt will occur (show work):
Time (s)
AINO (volts)
AIN1 (volts)
0
1
4
1
5
4
2
1
4
3
1
0
4
1
4
4
0
alvil
5
6
5
5
Interrupt (y/n)
n/a initial state
Transcribed Image Text:c) Given the changed lines of code below, answer the following questions. ANALOG_COMPARE_SETUP: LDI R16,0 STS ADCSRA, R16 LDI R16, 0b0e*** *** STS ADCSRB, R16 LDI R16,0 STS ADMUX, R16 LDI R16,0b00000000 OUT ACSR, R16 RET What signals are now being compared? Determine if a comparator interrupt will occur (show work): Time (s) AINO (volts) AIN1 (volts) 0 1 4 1 5 4 2 1 4 3 1 0 4 1 4 4 0 alvil 5 6 5 5 Interrupt (y/n) n/a initial state
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
8085 Microprocessor
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Electricity for Refrigeration, Heating, and Air C…
Electricity for Refrigeration, Heating, and Air C…
Mechanical Engineering
ISBN:
9781337399128
Author:
Russell E. Smith
Publisher:
Cengage Learning