AVR / ATMEGA 328P microcontroller questions In order to use the timer 1 overflow
ID: 1300336 • Letter: A
Question
AVR / ATMEGA 328P microcontroller questions
In order to use the timer 1 overflow interrupt, which register(s) need to be modified? Assume that everything else has been configured properly, so the only thing that needs to be done is to turn on the interrupt.
Write the code for the Timer 1 Overflow ISR. Make sure to preserve the state of the status register.
How does the AVR CPU know that the overflow interrupt has occurred?
For pin change interrupts, what registers are involved with enabling the pin change interrupts on Port B pins 5 and 6.
Explanation / Answer
In order to use the timer 1 overflow interrupt, following register(s) need to be modified -
1. TCR1B Register
2. TCNT1 Register
3. TIMSK Register
4. TIFR Register
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.