English
Language : 

Z86L972 Datasheet, PDF (51/91 Pages) Zilog, Inc. – Low-Voltage Microcontrollers
Z86L972/Z86L973/Z86L974
Low-Voltage Microcontrollers
44
Note: Do not use the same instructions for stopping the counter/
timers and setting the status bits. Two successive commands
are necessary—the first command for stopping counter/timers
and the second command for resetting the status bits—
because one counter/timer clock interval must complete for the
initiated event to actually occur.
T8 Demodulation Mode
Program TC8L and TC8H to FFh. After T8 is enabled, when the first edge (rising,
falling, or both, depending on CTR1 D5, D4) is detected, it starts to count down.
When a subsequent edge (rising, falling, or both, depending on CTR1 D5, D4) is
detected during counting, the current value of T8 is one’s complemented and put
into one of the capture registers. If T8 is a positive edge, data is placed in LO8. If
T8 is a negative edge, data is placed in H18. One of the edge-detect status bits
(CTR1 D1, D0) is set, and an interrupt can be generated if enabled (CTR0 D2).
Meanwhile, T8 is loaded with TC8H and starts counting again. If T8 reaches 0, the
time-out status bit (CTR0 D5) is set, and an interrupt can be generated if enabled
(CTR0 D1), and T8 continues counting from FFh (see Figure 32).
PS010504-1002
PRELIMINARY