Lecture 4 - Pulse Width Modulator Flashcards
How many signals can be produced directly and simultaneously by the output compare unit of Timer 1?
Two
OC1A and OC1B
On what port are the output compare pins of Timer 1?
Port D
OC1A = D.5
OC1B = D.4
What register specifies how output compare pins are changed on a compare match?
TCCR1A
How many different operation modes does Timer 1 have?
15
What happens in the CTC mode of Timer 1?
Timer 1 is reset to 0 on each compare match, changing output compare pins is possible; timer TOP limit is configurable
What happens in the Normal mode of Timer 1?
No compare match event; no change to compare pins; time TOP limit is fixed
What registers can be used to specify the TOP limit of Timer 1 in PWM modes?
ICR1 or OCR1A
How many output compare interrupts can be triggered by Timer 1?
Two
one by channel A and other by channel B. enabled in register TIMSK
If using a prescaler of 1024 how long will it take Timer 1 to increment?
1024us
What is the difference between Fast PWM and Phase Correct PWM?
Fast PWM, counter counts to max value then resets to 0.
Phase Correct PWM, counts to max value, then counts back down to zero.
What does CTC stand for?
Clear Timer on Compare