This section is specific to timers in the ATMega128. However, many of the
concepts are also applicable to other members in the AVR family.
Of all the timers in the ATMega128, this section concentrates on
timer1, although timer3 is almost identical in terms of features
of configuration.
Because timer1 is such a flexible device, it is impossible to enumerate
all possible configurations. This section focuses on setting up
timer1 so that it does the following:
- overflows every 20ms
- outputs PWM signals
- interrupts whenever it overflows
Subsections
Copyright © 2006-02-15 by Tak Auyeung