Datasheet

21. TC2 - 8-bit Timer/Counter2 with PWM and Asynchronous Operation
21.1 Features
Channel Counter
Clear Timer on Compare Match (Auto Reload)
Glitch-free, Phase Correct Pulse Width Modulator (PWM)
Frequency Generator
10-bit Clock Prescaler
Overflow and Compare Match Interrupt Sources (TOV2, OCF2A, and OCF2B)
Allows Clocking from External 32 kHz Watch Crystal Independent of the I/O Clock
21.2 Overview
Timer/Counter2 (TC2) is a general purpose, channel, 8-bit Timer/Counter module.
A simplified block diagram of the 8-bit Timer/Counter is shown below. CPU accessible I/O registers,
including I/O bits and I/O pins, are shown in bold. The device-specific I/O register and bit locations are
listed in the following register description. For the actual placement of I/O pins, refer to the pinout
diagram.
The TC2 is enabled when the PRTIM2 bit in the Power Reduction Register (PRR0.PRTIM2) is written to
'1'.
ATmega328PB
TC2 - 8-bit Timer/Counter2 with PWM and Asynchrono...
© 2018 Microchip Technology Inc.
Datasheet Complete
DS40001906C-page 218