Z86C83/C84/E83
Zilog CMOS Z8
®
MCU
DS97DZ80700 P R E L I M I N A R Y 8-31
1
Counter/Timers. There are two 8-bit programmable
counter/timers (T0-T1), each driven by its own 6-bit pro-
grammable prescaler. The T1 prescaler is driven by inter-
nal or external clock sources; however, the T0 prescaler is
driven by the internal clock only (Figure 19).
The 6-bit prescalers can divide the input frequency of the
clock source by any integer number from 1 to 64. Each
prescaler drives its counter, which decrements the value
(1 to 256) that has been loaded into the counter. When the
counter reaches the end of the count, a timer interrupt re-
quest, IRQ4 (T0) or IRQ5 (T1), is generated.
The counters can be programmed to start, stop, restart to
continue, or restart from the initial value. The counters can
also be programmed to stop upon reaching zero (single
pass mode) or to automatically reload the initial value and
continue counting (modulo-n continuous mode).
The counters, but not the prescalers, are read at any
time without disturbing their value or count mode. The
clock source for T1 is user-definable and is either the inter-
nal microprocessor clock divide-by-four, or an external sig-
nal input through Port 3. The Timer Mode register config-
ures the external timer input (P31) as an external clock, a
trigger input that can be retriggerable or non-retriggerable,
or as a gate input for the internal clock. The counter/timers
can be cascaded by connecting the T0 output to the input
of T1. T
IN
Mode is enabled by setting R243 PRE1 Bit D1
to 0.
Figure 19. Counter/Timer Block Diagram
PRE0
Initial Value
Register
T0
Initial Value
Register
T0
Current Value
Register
6-Bit
Down
Counter
8-bit
Down
Counter
÷16
÷4
6-Bit
Down
Counter
8-Bit
Down
Counter
PRE1
Initial Value
Register
T1
Initial Value
Register
T1
Current Value
Register
÷2
Clock
Logic
IRQ4
TOUT
P36
IRQ5
Internal Data Bus
Write Write Read
Internal Clock
Gated Clock
Triggered Clock
TIN P31
Write Write Read
Internal Data Bus
External Clock
Internal
Clock
D0 (SMR)
÷4
÷2
OSC
D1 (SMR)
Z86C83/C84/E83
CMOS Z8
®
MCU Zilog
8-32 P R E L I M I N A R Y DS97DZ80700
FUNCTIONAL DESCRIPTION (Continued)
Interrupts. The Z8 has six different interrupts from six dif-
ferent sources. These interrupts are maskable, prioritized
(Figure 20) and the six sources are divided as follows: four
sources are claimed by Port 3 lines P33-P30, and two in
counter/timers (Table 11). The Interrupt Mask Register
globally or individually enables or disables the six interrupt
requests.
When more than one interrupt is pending, priorities are re-
solved by a programmable priority encoder that is con-
trolled by the Interrupt Priority register. An interrupt ma-
chine cycle is activated when an interrupt request is
granted. This action disables all subsequent interrupts,
saves the Program Counter and Status Flags, and then
branches to the program memory vector location reserved
for that interrupt.
Figure 20. Interrupt Block Diagram
Table 11. Interrupt Types, Sources, and Vectors
Name Source Vector Location Comments
IRQ0 /DAV0, IRQ0 0, 1 External (P32), Rise Fall Edge Triggered
IRQ1, IRQ1 2, 3 External (P33), Fall Edge Triggered
IRQ2 /DAV2, IRQ2, T
IN
4, 5 External (P31), Rise Fall Edge Triggered
IRQ3 IRQ3 6, 7 By User Software
IRQ4 T0 8, 9 Internal
IRQ5 T1 10, 11 Internal
Interrupt
Edge
Select
IRQ (D6, D7)
IRQ1, 3, 4, 5
IRQ
IMR
IPR
PRIORITY
LOGIC
6
Global
Interrupt
Enable
Vector Select
Interrupt
Request
IRQ0 IRQ2
Z86C83/C84/E83
Zilog CMOS Z8
®
MCU
DS97DZ80700 P R E L I M I N A R Y 8-33
1
All Z8 interrupts are vectored through locations in the pro-
gram memory. This memory location and the next byte
contain the 16-bit address of the interrupt service routine
for that particular interrupt request. To accommodate
polled interrupt systems, interrupt inputs are masked and
the Interrupt Request register is polled to determine which
of the interrupt requests need service.
An interrupt resulting from AN1 is mapped into IRQ2, and
an interrupt from AN2 is mapped into IRQ0. Interrupts
IRQ2 and IRQ0 may be rising, falling, or both edge trig-
gered, and are programmable by the user. The software
may poll to identify the state of the pin.
Programming bits for the Interrupt Edge Select is located
in the IRQ Register (R250), bits D7 and D6. The configu-
ration is shown in Table 12.
Clock. The Z8 on-chip oscillator has a high-gain, parallel-
resonant amplifier for connection to a crystal, LC, ceramic
resonator, or any suitable external clock source (XTAL1 =
Input, XTAL2 = Output). The crystal should be AT cut, 16
MHz max., with a series resistance (RS) of less than or
equal to 100 Ohms when clocking from 1 MHz to 16 MHz.
The crystal should be connected across XTAL1 and
XTAL2 using the vendor's recommended capacitor values
from each pin directly to the device Ground pin to reduce
Ground noise injection into the oscillator (Figure 21).
Note: For better noise immunity, the capacitors should be
tied directly to the device Ground pin (V
SS
).
Table 12. IRQ Register
IRQ Interrupt Edge
D7 D6 P31 P32
0 0 F F
0 1 F R
1 0 R F
1 1 R/F R/F
Notes:
F = Falling Edge
R = Rising Edge
Figure 21. Oscillator Configuration
XTAL1
XTAL2
C1
C2
C1
C2
XTAL1
XTAL2
XTAL1
XTAL2
Ceramic Resonator or
Crystal
C1, C2 = 22 pF TYP *
f = 8 MHz
LC
External Clock
L
* Preliminary value including pin parasitics
* * Device ground pin
VSS* *
VSS* *
VSS* *
VSS* *

Z86E8316PEC

Mfr. #:
Manufacturer:
ZiLOG
Description:
8-bit Microcontrollers - MCU 4K OTP 16MHz W/ADC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union