mc68hc05x4dw Freescale Semiconductor, Inc, mc68hc05x4dw Datasheet - Page 120

no-image

mc68hc05x4dw

Manufacturer Part Number
mc68hc05x4dw
Description
Xc68hc705x4 Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Timer during WAIT mode
Timer during STOP mode
16-Bit Programmable Timer
MC68HC05X4 Rev 1.0
location $17 will not inhibit the compare function. The processor can
write to either byte of the output compare register without affecting the
other byte. The output level (OLVL) bit is clocked to the output level
register whether the output compare flag (OCF) is set or clear. The
minimum time required to update the output compare register is a
function of the program rather than the internal hardware. Because the
output compare flag and the output compare register are not defined at
power on, and not affected by reset, care must be taken when initializing
output compare functions with software. The following procedure is
recommended:
All bits of the output compare register are readable and writable and are
not altered by the timer hardware or reset. If the compare function is not
needed, the two bytes of the output compare register can be used as
storage locations.
All CPU action is suspended, but the timers (core and 16-bit) remain
active. An interrupt from either of the timers, if enabled, will cause the
MCU to exit WAIT mode.
In the STOP mode all MCU clocks are stopped, hence the timer stops
counting. If STOP is exited by an interrupt the counter retains the last
count value. If the device is reset, then the counter is forced to $FFFC.
During STOP, if at least one valid input capture edge occurs at the TCAP
pin, the input capture detect circuit is armed. This does not set any timer
flags nor wake up the MCU. When the MCU does wake up, however,
there is an active input capture flag and data from the first valid edge that
1. write to output compare high to inhibit further compares;
2. read the timer status register to clear OCF (if set);
3. write to output compare low to enable the output compare
Freescale Semiconductor, Inc.
For More Information On This Product,
function.
16-Bit Programmable Timer
Go to: www.freescale.com
12-ptimer

Related parts for mc68hc05x4dw