87
AT94KAL Series FPSLIC
Rev. 1138G–FPSLI–11/03
Figure 50.
Timer/Counter0 Block Diagram
Figure 51.
Timer/Counter2 Block Diagram
8-BIT DA
T
A
BUS
TIMER INT. FLAG
REGISTER (TIFR)
TIMER/COUNTER0
(TCNT0)
8-BIT COMPARATOR
OUTPUT COMPARE
REGISTER0 (OCR0)
TIMER INT. MASK
REGISTER (TIMSK)
0
0
0
7
7
7
T/C CLK SOURCE
UP/DOWN
T/C CLEAR
CONTROL
LOGIC
TOV1
OCF1B
OCF1A
ICF1
TOV2
OCF2
OCF0
TOV0
CK
T/C0 OVER-
FLOW IRQ
T/C0 COMPARE
MATCH IRQ
OCF0
TOV0
TOIE0
TOIE1
OCIE1A
OCIE1B
TICIE1
TOIE2
OCIE2
OCIE0
T/C0 CONTROL
REGISTER (TCCR0)
CS02
COM01
PWM0
CS01
COM00
CS00
CTC0
FOC0
PSR2
PSR10
SPECIAL FUNCTIONS
IO REGISTER (SFIOR)
T0
8-BIT DATA BUS
8-BIT ASYNCH T/C2 DATA BUS
ASYNCH. STATUS
REGISTER (ASSR)
TIMER INT. FLAG
REGISTER (TIFR)
TIMER/COUNTER2
(TCNT2)
SYNCH UNIT
8-BIT COMPARATOR
OUTPUT COMPARE
REGISTER2 (OCR2)
TIMER INT. MASK
REGISTER (TIMSK)
0
0
0
7
7
7
T/C CLK SOURCE
UP/DOWN
T/C CLEAR
CONTROL
LOGIC
OCF2
TOV2
TOIE0
TOIE1
OCIE1A
OCIE1B
TICIE1
TOIE2
OCIE2
OCR2UB
TC2UB
ICR2UB
TOSC1
CK
TCK2
T/C2 OVER-
FLOW IRQ
T/C2 COMPARE
MATCH IRQ
AS2
TOV1
OCF1B
OCF1A
ICF1
TOV2
OCF2
OCF0
TOV0
OCIE0
T/C2 CONTROL
REGISTER (TCCR2)
CS22
COM21
PWM2
CS21
COM20
CS20
CTC2
FOC2
PSR2
PSR10
SPECIAL FUNCTIONS
IO REGISTER (SFIOR)
CK