2.5 Timers

The timers available on the AVR Dx families are improved versions of the timers present on ATmega128. Additionally, the AVR Dx devices present an increased number of timers and multiple options for their output, which simplifies the schematic design. The following type of timers are present on the AVR Dx devices:

  • Timer/Counter type A (TCA)
  • Timer/Counter type B (TCB)
  • Timer/Counter type D (TCD)

The timers are not code-compatible (a different set of registers), but all functionalities present on ATmega128 are replicable using AVR Dx timers. Thus, the following sections will describe how to obtain different functionalities using AVR Dx timers.