ATmega325PA Atmel Corporation, ATmega325PA Datasheet - Page 94

no-image

ATmega325PA

Manufacturer Part Number
ATmega325PA
Description
Manufacturer
Atmel Corporation
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATmega325PA-AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega325PA-AUR
Manufacturer:
Atmel
Quantity:
10 000
15. 8-bit Timer/Counter0 with PWM
15.1
15.2
15.2.1
8285D–AVR–06/11
Features
Overview
Definitions
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P
Timer/Counter0 is a general purpose, single compare unit, 8-bit Timer/Counter module. A simpli-
fied block diagram is shown in
Configurations” on page
shown in bold. The device-specific I/O Register and bit locations are listed in the
Description” on page
Figure 15-1. 8-bit Timer/Counter Block Diagram
Many register and bit references in this section are written in general form. A lower case “n”
replaces the Timer/Counter number, in this case 0. A lower case “x” replaces the Output Com-
pare unit number, in this case unit A. However, when using the register or bit defines in a
program, the precise form must be used, i.e., TCNT0 for accessing Timer/Counter0 counter
value and so on.
Single Compare Unit Counter
Clear Timer on Compare Match (Auto Reload)
Glitch-free, Phase Correct Pulse Width Modulator (PWM)
Frequency Generator
External Event Counter
10-bit Clock Prescaler
Overflow and Compare Match Interrupt Sources (TOV0 and OCF0A)
Timer/Counter
TCNTn
OCRn
=
105.
2. CPU accessible I/O Registers, including I/O bits and I/O pins, are
direction
count
clear
BOTTOM
Figure
= 0
15-1. For the actual placement of I/O pins, refer to
Control Logic
=
TCCRn
TOP
0xFF
clk
Tn
Generation
Waveform
Clock Select
( From Prescaler )
Detector
Edge
OCn
(Int.Req.)
TOVn
(Int.Req.)
OCn
Tn
”Register
”Pin
94

Related parts for ATmega325PA