114
7679H–CAN–08/08
AT90CAN32/64/128
Figure 13-1.
16-bit Timer/Counter Block Diagram
Note:
1. Refer to
,
, and
for Timer/Counter
1 and 3
pin placement and description.
13.2.1
Registers
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
“Accessing 16-bit Registers” on page
. 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
ICFn
(Int.Req.)
TOVn
(Int.Req.)
Clock Select
Timer/Counter
DATABUS
OCRnA
OCRnB
OCRnC
ICRn
=
=
=
TCNTn
Waveform
Generation
Waveform
Generation
Waveform
Generation
OCnA
OCnB
OCnC
Noise
Canceler
ICPn
=
Fixed
TOP
Values
Edge
Detector
Control Logic
=
0
TOP
BOTTOM
Count
Clear
Direction
OCFnA
(Int.Req.)
OCFnB
(Int.Req.)
OCFnC
(Int.Req.)
TCCRnA
TCCRnB
TCCRnC
( From Analog
Comparator Ouput )
Tn
Edge
Detector
( From Prescaler )
clk
Tn
Содержание AVR AT90CAN128
Страница 414: ...414 7679H CAN 08 08 AT90CAN32 64 128 32 2 QFN64...
Страница 415: ...415 7679H CAN 08 08 AT90CAN32 64 128...