English
Language : 

Z86E3016PSG Datasheet, PDF (147/348 Pages) Zilog, Inc. – Z86E3016PSG
Z8 CPU
User Manual
129
It is suggested that P31 be configured as an input line by setting P3M
Register bit 5 to 0, although TIN is still functional if P31 is configured as a
handshake input.
Each High-to-Low transition on TIN generates an interrupt request IRQ2,
regardless of the selected TIN mode or the enabled/disabled state of T1.
IRQ2 must therefore be masked or enabled according to the requirements
of the application.
External Clock Input Mode
The TIN External Clock Input Mode (TMR bit 5 and bit 4 both set to 0)
supports counting of external events, where an event is considered to be a
High-to-Low transition on TIN (see Figure 82).
See the product data sheet for the minimum allowed TIN external clock
input period (TP TIN).
TIN
Clock
P31
TMR
D5–D4 = 00
D
D
PRE1
T1
IRQ5
Internal
Clock
IRQ2
Figure 82. External Clock Input Mode
Gated Internal Clock Mode
The TIN Gated Internal Clock Mode (TMR bit 5 and bit 4 set to 0 and 1
respectively) 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
UM001602-0904
Counters and Timers