atmega32c1 ATMEL Corporation, atmega32c1 Datasheet - Page 107

no-image

atmega32c1

Manufacturer Part Number
atmega32c1
Description
Atmega32m1 Automotive 8-bit Avr Microcontroller With 32k/64k Bytes In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
atmega32c1-15AZ
Manufacturer:
ATMEL
Quantity:
170
Part Number:
atmega32c1-15AZ
Manufacturer:
Atmel
Quantity:
10 000
13.1.1
7647A–AVR–02/08
Registers
Figure 13-1. 16-bit Timer/Counter Block Diagram
Note:
The Timer/Counter (TCNTn), Output Compare Registers (OCRnx), and Input Capture Register
(ICRn) are all 16-bit registers. Special procedures must be followed when accessing the 16-bit
registers. These procedures are described in the section
108. The Timer/Counter Control Registers (TCCRnx) are 8-bit registers and have no CPU
access restrictions. Interrupt requests (abbreviated to Int.Req. in the figure) signals are all visible
in the Timer Interrupt Flag Register (TIFRn). All interrupts are individually masked with the Timer
Interrupt Mask Register (TIMSKn). TIFRn and TIMSKn are not shown in the figure.
The Timer/Counter can be clocked internally, via the prescaler, or by an external clock source on
the Tn pin. The Clock Select logic block controls which clock source and edge the Timer/Counter
uses to increment (or decrement) its value. The Timer/Counter is inactive when no clock source
is selected. The output from the Clock Select logic is referred to as the timer clock (clk
The double buffered Output Compare Registers (OCRnx) are compared with the Timer/Counter
value at all time. The result of the compare can be used by the Waveform Generator to generate
a PWM or variable frequency output on the Output Compare pin (OCnx).
Units” on page 115.
which can be used to generate an Output Compare interrupt request.
1. Refer to
Table on page 5
Timer/Counter
The compare match event will also set the Compare Match Flag (OCFnx)
TCCRnA
OCRnB
OCRnA
TCNTn
ICRn
=
=
Direction
Count
Clear
for Timer/Counter1 pin placement and description.
RTG
Control Logic
TOP
=
TCCRnB
Values
BOTTOM
Fixed
TOP
Detector
ICFn (Int.Req.)
Edge
(1)
clk
=
Tn
0
ATmega32/64/M1/C1
“Accessing 16-bit Registers” on page
Canceler
Noise
OCnA
(Int.Req.)
OCnB
(Int.Req.)
TOVn
(Int.Req.)
Clock Select
Generation
Generation
( From Prescaler )
Waveform
Waveform
Detector
AC1ICE
Edge
Analog Comparator 1
Interrupt
See “Output Compare
ICPSEL1
0
1
ICPnA
ICPnB
OCnB
T
OCnA
n
Tn
).
107

Related parts for atmega32c1