Lecture 3 - Timers Flashcards

1
Q

What is the bit-width of Timer 0 and Timer 2?

A

8-bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the bit-width of Timer 1?

A

16-bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What register stores the current counter value for Timer 1?

A

TCNT1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

True or False: The 10-bit prescaler can be applied on both the internal and external clock signal for Timer 1?

A

False. The prescaler only applies to the internal clock source.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What register is used to enable Timer 1 interrupts?

A

TIMSK

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How often will Timer 1 overflow if it uses the default internal clock of 1MHz and a prescaler factor of 1024

A

1us x 1024 x 2^16 = 67 seconds

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What register is used to select the type of events that will trigger a Timer 1 input capture interrupt?

A

TCCR1B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What register stores automatically the timer value when a Timer 1 input capture interrupt occurs?

A

ICR1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

On what IO port can we find the input capture pin of Timer 1?

A

Port D (D.6)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How many timers does the ATmega16 have?

A

3

Timer 0, Timer 1, Timer 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

At what speed is the internal clock set at in the ATmega16?

A

1MHz

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which timer can use both internal and external clock source?

A

Timer 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How often will Timer 1 overflow?

A

Will overflow every 2^16us, since it is a 16-bit counter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly