mc68hc05x4dw Freescale Semiconductor, Inc, mc68hc05x4dw Datasheet - Page 109

no-image

mc68hc05x4dw

Manufacturer Part Number
mc68hc05x4dw
Description
Xc68hc705x4 Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
1-ptimer
Contents
Introduction
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Port configuration register (PCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Timer functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Timer during WAIT mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Timer during STOP mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Timer state diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Besides the core timer the MC68HC05X4 has a 16-bit programmable
timer. This timer consists of a 16-bit read-only free-running counter, with
a fixed divide-by-four prescaler, plus the input capture/output compare
circuitry. Selected input edges cause the current counter value to be
latched into a 16-bit input capture register so that software can later read
this value to determine when the edge occurred. When the free running
counter value matches the value in the output compare registers, the
programmed pin action takes place. Refer to
diagram of the timer. The timer must be enabled by setting the TIMEN
bit in the port configuration register (PCR).
Freescale Semiconductor, Inc.
Counter registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Timer control register (TCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Timer status register (TSR). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Input capture function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Input capture registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Output compare function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Output compare registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
For More Information On This Product,
16-Bit Programmable Timer
Go to: www.freescale.com
16-Bit Programmable Timer
Figure 1
General Description
MC68HC05X4 Rev 1.0
for a block

Related parts for mc68hc05x4dw