English
Language : 

Z86L972 Datasheet, PDF (45/91 Pages) Zilog, Inc. – Low-Voltage Microcontrollers
Z86L972/Z86L973/Z86L974
Low-Voltage Microcontrollers
38
Each High-to-Low transition on TIN generates interrupt request IRQ0, regardless
of the selected TIN mode or the enabled/disabled state of T1. IRQ0 must therefore
be masked or enabled according to the needs of the application.
External Clock Input Mode
The TIN External Clock Input mode (TMR bits D5 and D4 both set to 0) supports
the counting of external events, where an event is considered to be a High-to-Low
transition on TIN (see Figure 27) occurrence (single-pass mode) or on every nth
occurrence (continuous mode) of that event.
TMR
D5–D4 = 00
TIN clock
P52
D
D
PRE1 T1
IRQ5
Internal clock
Figure 27. External Clock Input Mode
IRQ0
Gated Internal Clock Mode
The TIN Gated Internal Clock mode (TMR bits D5 and D4 set to 0 and 1, respec-
tively) measures the duration of an external event. In this mode, the T1 prescaler
is driven by the internal timer clock, gated by a High level on TIN (see Figure 28).
T1 counts while TIN is High and stops counting when TIN is Low. Interrupt request
IRQ0 is generated on the High-to-Low transition of TIN, signaling the end of the
gate input. Interrupt request IRQ5 is generated if T1 reaches its end-of-count.
OSC
+2
Internal clock
TMR
D5–D4 = 01
+4
PRE1 T1
IRQ5
TIN
gate
P52
D
D
IRQ0
Figure 28. Gated Clock Input Mode
PS010504-1002
PRELIMINARY