ATMEGA48V_11 ATMEL [ATMEL Corporation], ATMEGA48V_11 Datasheet - Page 140

no-image

ATMEGA48V_11

Manufacturer Part Number
ATMEGA48V_11
Description
8-bit Atmel Microcontroller with 4/8/16K Bytes In-System Programmable Flash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
18. 8-bit Timer/Counter2 with PWM and asynchronous operation
18.1
18.2
2545T–AVR–05/11
Features
Overview
Timer/Counter2 is a general purpose, single channel, 8-bit Timer/Counter module. A simplified
block diagram of the 8-bit Timer/Counter is shown in
I/O pins, refer to
including I/O bits and I/O pins, are shown in bold. The device-specific I/O Register and bit loca-
tions are listed in the
The PRTIM2 bit in
Timer/Counter2 module.
Figure 18-1. 8-bit timer/counter block diagram.
Single 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 32kHz watch crystal independent of the I/O clock
“Pinout Atmel ATmega48/88/168.” on page
“Minimizing power consumption” on page 41
“Register description” on page
Timer/counter
TCCRnA
OCRnA
TCNTn
OCRnB
=
=
Direction
Count
Clear
Control logic
TOP
=
TCCRnB
BOTTOM
Fixed
value
TOP
clk
153.
=
Tn
0
Figure
18-1. For the actual placement of
ATmega48/88/168
2. CPU accessible I/O Registers,
OCnA
(Int.req.)
OCnB
(Int.req.)
must be written to zero to enable
TOVn
(Int.req.)
Clock select
generation
generation
(From prescaler)
Waveform
Waveform
detector
Edge
OCnA
OCnB
Tn
140

Related parts for ATMEGA48V_11