Lecture 3 - Timers Flashcards
What is the bit-width of Timer 0 and Timer 2?
8-bits
What is the bit-width of Timer 1?
16-bits
What register stores the current counter value for Timer 1?
TCNT1
True or False: The 10-bit prescaler can be applied on both the internal and external clock signal for Timer 1?
False. The prescaler only applies to the internal clock source.
What register is used to enable Timer 1 interrupts?
TIMSK
How often will Timer 1 overflow if it uses the default internal clock of 1MHz and a prescaler factor of 1024
1us x 1024 x 2^16 = 67 seconds
What register is used to select the type of events that will trigger a Timer 1 input capture interrupt?
TCCR1B
What register stores automatically the timer value when a Timer 1 input capture interrupt occurs?
ICR1
On what IO port can we find the input capture pin of Timer 1?
Port D (D.6)
How many timers does the ATmega16 have?
3
Timer 0, Timer 1, Timer 2
At what speed is the internal clock set at in the ATmega16?
1MHz
Which timer can use both internal and external clock source?
Timer 1
How often will Timer 1 overflow?
Will overflow every 2^16us, since it is a 16-bit counter