|
ATmega328p
Hardware definitions
|
Purpose: Timer/counter widths, modes, clock selections, and capabilities.
Namespace: atmega328p::timer
| Timer | Counter | Compare channels | Input capture | Async clock |
|---|---|---|---|---|
| Timer0 | 8-bit | 2 | No | No |
| Timer1 | 16-bit | 2 | Yes | No |
| Timer2 | 8-bit | 2 | No | Yes |
Timer0 and Timer1 share a prescaler. Timer2 has its own prescaler and can use an asynchronous crystal.