mc68hc05p18a Freescale Semiconductor, Inc, mc68hc05p18a Datasheet - Page 67

no-image

mc68hc05p18a

Manufacturer Part Number
mc68hc05p18a
Description
Mc68hc05p18a Hcmos Microcontroller Unit
Manufacturer
Freescale Semiconductor, Inc
Datasheet
MC68HC05P18A
Note: The counter and control registers are the only 16-bit timer registers affected by reset.
(EXTERNAL OR OTHER)
16-BIT FREE-RUNNING
16-BIT FREE-RUNNING
Note: The TOF bit is set at timer state T11 (transition of counter from $FFFF to $0000). It is cleared by reading the timer
TIMER OVERFLOW
INTERNAL RESET
status register (TSR) during the high portion of the PH2 clock followed by reading the LSB of the counter register
pair (TCRL).
PH2 CLOCK
FLAG (TOF)
PH2 CLOCK
COUNTER
COUNTER
RESET
$FFFE
Figure 8-4. State Timing Diagram for Timer Overflow
Figure 8-5. State Timing Diagram for Timer Reset
of missing timer overflow interrupts due to clearing of the TOF. See
Figure
The free-running counter is initialized to $FFFC during reset and is a
read-only register. During power-on reset (POR), the counter is
initialized to $FFFC and begins counting after the oscillator startup
delay. Since the counter is 16 bits preceded by a fixed divide-by-four
prescaler, the value in the counter repeats every 262,144 PH2 clock
cycles (524,288 oscillator cycles). When the free-running counter rolls
over from $FFFF to $0000, the timer overflow flag bit (TOF) in the timer
status register (TSR) is set. An interrupt can also be enabled when
counter rollover occurs by setting the timer overflow interrupt enable bit
(TOIE) in the timer control register (TCR). See
Freescale Semiconductor, Inc.
For More Information On This Product,
$FFFC
8-4.
$FFFF
Go to: www.freescale.com
16-Bit Timer
$FFFD
$0000
Figure
$FFFE
$0001
8-5.
Technical Data
16-Bit Timer
$0002
$FFFF
Timer

Related parts for mc68hc05p18a