English
Language : 

MC68HC05B6_13 Datasheet, PDF (72/302 Pages) Freescale Semiconductor, Inc – Microcontrollers
Internal
processor clock
Internal
timer clocks
 T00


T01
 T10
 T11
16-bit
counter
$F456
$F457
$F458
$F459
(Note 1)
5
Output compare
register
Compare register
CPU writes $F457
(Note 1)
latch
$F457
Note:
Output compare
flag and TCMP1,2
(Note 2)
1 The CPU write to the compare registers may take place at any time, but a compare only occurs at timer state
T01. Thus a four cycle difference may exist between the write to the compare register and the actual compare.
1) The output compare flag is set at the timer state T11 that follows the comparison match ($F457 in this example).
Figure 5-4 Timer state timing diagram for output compare
Internal
processor clock
Internal
timer clocks
 T00


T01
 T10
 T11
16-bit
counter
$FFFF
$0000
$0001
$0002
Timer overflow
flag
Note:
The timer overflow flag is set at timer state T11 (transition of counter from $FFFF to $0000). It is cleared
by a read of the timer status register during the internal processor clock high time, followed by a read of the
counter low register.
Figure 5-5 Timer state timing diagram for timer overflow
Freescale
5-14
PROGRAMMABLE TIMER
MC68HC05B6
Rev. 4.1