DS96KEY0103 (8/96)
P R E L I M I N A R Y
1
1
P
RELIMINARY
P
RODUCT
S
PECIFICATION
Z86318
1
Z8
®
MCU 8-B
IT
M
ICROCONTROLLER
FEATURES
s
–40
°
C to +105
°
C Operating Temperature Range
s
Low-Power Consumption: 33 mW (Typical)
s
ROM Mask Options:
–
Permanent Watch-Dog Timer
–
ROM Protect
–
Low-Voltage Protection
–
Pull-Up/Pull-Down I/O Pins
(Nibble Programmable)
–
Feedback Resistor on the On-Chip Oscillator
s
On-Chip Oscillator (Crystal, Ceramic Resonator,
LC, or External Clock Drive)
s
Fast Instruction Pointer: 1.5
µ
s @ 4 MHz
s
ESD Protection Circuitry
GENERAL DESCRIPTION
The Z86318 is a member of the Z8
®
MCU family of CMOS
microcontrollers. This device offers on-board pull-up and
pull-down resistors (ROM mask-option programmable on a
nibble basis), a scalable trip-point buffer to accommodate
opto-transistor outputs, and high drive ports capable of up
to 20 mA current sinking per pin (3 pins maximum).
The Z86318 features I/O Ports (IOL = 20 mA at VOL =
0.8V, 3 pins max.) to provide increased current sinking ca-
pabilities. These devices also offer users a selection of
ROM mask options, which include a permanently enabled
Watch-Dog Timer that ensures operational reliability
across a broad range of application environments.
For applications requiring powerful I/O capabilities, the
Z86318 provides dedicated input and output lines that are
grouped into three ports. These ports can be configured by
means of ROM mask options (nibble-programmable) as
pull ups, pull downs, or neither. There are two basic ad-
dress spaces available. Program Memory, and 124 bytes
of general-purpose registers.
The Z86318 devices provide two on-chip 8-bit programma-
ble counter/timers with a large number of user-selectable
modes. Each counter/timer is driven by its own 6-bit pro-
grammable prescaler. The Z86318 counter/timers off-load
system real-time tasks such as counting/timing and in-
put/output data communications for increased system effi-
ciency.
Notes:
All Signals with a preceding front slash, “/”, are ac-
tive Low, e.g.; B//W (WORD is active Low); /B/W (BYTE is
active Low, only).
Power connections follow conventional descriptions be-
low:
Device
ROM
(KB)
RAM*
(Bytes)
I/O
Lines
Voltage
Range
Z86318
124
14
21
0V to 6.0V
Note:
*General-Purpose
Connection
Circuit
Device
Power
VCC
VDD
Ground
GND
VSS
Z86318
Z8
®
MCU 8-Bit Microcontroller
2
P R E L I M I N A R Y
GENERAL DESCRIPTION
(Continued)
Figure 1. Z86318 Functional Block Diagram
Prg. Memory
3072 x 8-Bit (318)
2048 x 8-Bit (319)
Program
Counter
Port 3
Counter/
Timers (2)
Interrupt
Control
Port 2
I/O
(Bit Programmable)
ALU
FLAG
Register
Pointer
Register File
144 x 8-Bit
Machine
Timing & Inst.
Control
VSS
XTAL
VDD
Input
Port 0
I/O
Z86318
Z8
®
MCU 8-Bit Microcontroller
P R E L I M I N A R Y
3
1
PIN DESCRIPTIONS
ABSOLUTE MAXIMUM RATINGS
Stresses greater than those listed under Absolute Maxi-
mum Ratings may cause permanent damage to the de-
vice. This is a stress rating only; operation of the device at
any condition above those indicated in the operational sec-
tions of these specifications is not implied. Exposure to ab-
solute maximum rating conditions for extended periods
may affect device reliability.
Figure 2. Z86318 18-Pin DIP/SOIC
Pin Configuration
1
2
9
3
4
5
6
7
8
18
17
16
15
14
13
12
11
10
P23
P22
P33
P21
P20
VSS
P02
P01
P00
P24
P25
P32
P26
P27
VDD
XTAL2
P31
Z86318
XTAL1
Table 1. Z86318 18 Pin DIP/SOIC Pin Identification
Pin #
Symbol
Function
Direction
1-4
P24-P27
Port 2, Pins 4, 5, 6, 7
In/Output
5
V
DD
Power Supply
Input
6
XTAL2
XTAL Osc. Clock
Output
7
XTAL1
XTAL Osc. Clock
Input
8
P31
Port 3, Pin 1
Input
9
P32
Port 3, Pin 2
Input
10
P33
Port 3, Pin 3
Input
11-13
P00-P02
Port 0, Pins 0, 1, 2
In/Output
14
V
SS
Ground
15-18
P20-P23
Port 2, Pins 0, 1, 2, 3
In/Output
Sym.
Parameter
Min.
Max.
Units
V
DD
Supply Voltage*
–0.3
+7
V
T
STG
Storage Temp.
–65
°
+150
°
C
T
A
Oper. Ambient Temp.
†
†
C
Note:
*Voltages on all pins with respect to Ground.
†See Ordering Information.
Z86318
Z8
®
MCU 8-Bit Microcontroller
4
P R E L I M I N A R Y
STANDARD TEST CONDITIONS
The characteristics listed below apply for standard test
conditions as noted. All voltages are referenced to
Ground.Positive current flows into the referenced pin (Fig-
ure 3).
CAPACITANCE
TA = GND = 0V, f = 1.0 MHz, unmeasured pins returned to Ground.
V
CC
SPECIFICATION
V
CC
= 4.0V to 6.0V
Figure 3. Test Load Diagram
From Output
Under Test
150 pF
I
Parameter
Min.
Max.
Input Capacitance
0
10 pF
Output Capacitance
0
20 pF
I/O Capacitance
0
25 pF
Z86318
Z8
®
MCU 8-Bit Microcontroller
P R E L I M I N A R Y
5
1
DC ELECTRICAL CHARACTERISTICS
T
A
= 0
°
C to +70
°
C
Typical
Sym
Parameter
V
DD
Min
Max
@ 25
°
C
Units
Conditions
Max Input Voltage
4.0V
12
V
V
IN
< 250
µ
A (Port Pins Only)
V
CH
Clock Input High
Voltage
4.0V
6.0V
0.7 V
DD
0.7 V
DD
V
DD
+ 0.3
V
DD
+ 0.3
2.0
3.0
V
V
Driven by External Clock Generator
V
CL
Clock Input Low
Voltage
4.0V
6.0V
V
SS
– 0.3
V
SS
– 0.3
0.2 V
DD
0.2 V
DD
0.8
1.5
V
V
Driven by External Clock Generator
V
IH
Input High Voltage
Schmitt-Triggered
4.0V
6.0V
0.7 V
DD
0.7 V
DD
V
DD
+ 0.3
V
DD
+ 0.3
1.6
2.6
V
V
V
IH
Input High Voltage
CMOS Input
4.0V
6.0V
0.7 V
DD
0.7 V
DD
V
DD
+ 0.3
V
DD
+ 0.3
1.4
2.6
V
V
V
IL
Input Low Voltage
Schmitt-Triggered
4.0V
6.0V
V
SS
– 0.3
V
SS
– 0.3
0.2 V
DD
0.2 V
DD
0.8
1.5
V
V
V
IL
Input Low Voltage
CMOS Input
4.0V
6.0V
V
SS
– 0.3
V
SS
– 0.3
0.2 V
DD
0.2 V
DD
1.3
2.4
V
V
V
OH
Output High
Voltage
4.0V
4.5V
V
DD
– 0.4
V
DD
– 0.4
2.8
4.4
V
V
I
OH
= –2.0 mA
V
OL1
Output Low Voltage
4.0V
6.0V
0.6
0.4
0.2
0.1
V
V
I
OL
= +4.0 mA
V
OL2
Output Low Voltage
4.0V
6.0V
1.5
0.8
0.8
0.3
V
V
I
OL
= 20.0 mA, 3 Pin Max
OL
= 10.0 mA, 6 Pin Max
V
LV
VCC Low-Voltage
Protection*
1.6
2.7
2.3
V
@ 2 MHz Max
V
TP
Trip-Point Voltage*
4.0V
4.5V
1.5
0.4 V
DD
2.1
1.8
V
V
P24-P27
5.5V
6.0V
1.9
2.1
2.5
2.7
2.2
2.4
V
V
V
OC
Input Open-Circuit
Voltage
4.5V
5.0V
0.95
1.05
1.15
1.25
1.04
1.15
V
V
No Off-Chip Resistance
5.5V
6.0V
1.15
1.25
1.39
1.49
1.27
1.37
V
V
I
IL
Input Leakage
3.0V
5.5V
6.0V
–1.0
–1.0
–1.0
1.0
1.0
1.0
0.4
0.4
0.4
µ
A
µ
A
µ
A
V
IN
= 0V, VCC
I
OL
Output Leakage
4.0V
5.5V
6.0V
–1.0
–1.0
–1.0
1.0
1.0
1.0
0.4
0.4
0.4
µ
A
µ
A
µ
A
V
IN
= 0V, VCC
Note:
*The Z86318 is functional to V
LV
voltage. The minimum operational V
DD
is determined by the value of the V
LV
voltage at
ambient temperature. The V
LV
voltage increases as temperature decreases.
Z86318
Z8
®
MCU 8-Bit Microcontroller
6
P R E L I M I N A R Y
DC ELECTRICAL CHARACTERISTICS (Continued)
T
A
= 0
°
C to +70
°
C
Typical
Sym.
Parameter
V
DD
Min.
Max.
@ 25
°
C
Units Conditions
Notes
I
DD
Supply Current
4.0V
4.0V
4.0V
1.5
2.0
3.0
0.41
0.93
1.64
mA
mA
mA
@ 1 MHz
@ 2 MHz
@ 4 MHz
[1]
[1]
[1]
6.0V
6.0V
6.0V
3.0
4.0
6.0
1.44
2.60
4.28
mA
mA
mA
@ 1 MHz
@ 2 MHz
@ 4 MHz
[1]
[1]
[1]
I
DD1
Standby Current
4.0V
4.0V
4.0V
0.6
0.8
1.0
0.15
0.20
0.3
mA
mA
mA
HALT mode V
IN
= 0V, V
CC
@ 1 MHz
HALT mode V
IN
= 0V, V
CC
@ 2 MHz
HALT mode V
IN
= 0V, V
CC
@ 4 MHz
6.0V
6.0V
6.0V
1.3
1.5
2.0
0.70
0.80
1.0
mA
mA
mA
HALT mode V
IN
= 0V, V
CC
@ 1 MHz
HALT mode V
IN
= 0V, V
CC
@ 2 MHz
HALT mode V
IN
= 0V, V
CC
@ 4 MHz
I
DD2
Standby Current
6.0V
10
1.5
mA
STOP mode V
IN
= 0V, V
CC
I
PU
Pull-Up Current (100K)
Port P00–P02;
Port P22, P23;
Port P31–P33
4.5V
6.0V
-20
105
µ
A
V
IH
@ 1V
V
IH
@ 1V
I
PD
Pull-Down Current (100K)
Port P00–P02;
Port P22, P23;
Port P31–P33
4.5V
6.0V
20
114
µ
A
V
IL
@ 3V
V
IL
@ 4V
I
PU
Pull-Up Current (10K)
Port P20, P21
4.5V
6.0V
208
870
µ
A
V
IH
@ 0V
V
IH
@ 0V
I
PD
Pull-Down Current (10K)
Port P20, P21
4.5V
6.0V
170
870
µ
A
V
IH
@ 3V
V
IH
@ 3V
Note: [1] All outputs unloaded, I/O pins floating, inputs at rail.
Z86318
Z8
®
MCU 8-Bit Microcontroller
P R E L I M I N A R Y
7
1
AC ELECTRICAL CHARACTERISTICS
Timing Diagrams
Figure 4. Electrical Timing Diagram
1
3
4
8
2
2
3
T
IRQ
IN
N
6
5
7
7
9
Clock
Z86318
Z8
®
MCU 8-Bit Microcontroller
8
P R E L I M I N A R Y
AC ELECTRICAL CHARACTERISTICS
(V
DD
= 4V to 6V
±
10%, T
A
= 0
°
C to +70
°
C, unless otherwise specified)
T
A
= 0
°
C to +70
°
C
1 MHz
4 MHz
No.
Symbol
Parameter
V
DD
Min.
Max.
Min.
Max.
Units
Notes
1
TpC
Input Clock Period
6.0V
1,000
100,000
250
100,000
ns
[1]
2
TrC,TfC
Clock Input Rise
and Fall Times
6.0V
25
25
ns
3
TwC
Input Clock Width
6.0V
475
100
ns
[1]
4
TwTinL
Timer Input Low Width
6.0V
70
70
ns
[1]
5
TwTinH
Timer Input High Width
6.0V
2.5TpC
2.5TpC
[1]
6
TpTin
Timer Input Period
6.0V
4TpC
4TpC
[1]
7
TrTin,
TtTin
Timer Input Rise
and Fall Timer
6.0V
100
100
ns
[1]
8
TwIL
Int. Request Input
Low Time
6.0V
70
70
ns
[1,2]
9
TwIH
Int. Request Input
High Time
6.0V
2.5TpC
2.5TpC
[1,2]
10
Twdt
Watch-Dog Timer
6.0V
24
24
ms
11
T
POR
Power-On Reset Time
6.0V
6
6
ms
[1]
Notes:
1. Timing Reference uses 0.9 VDD for a logic 1 and 0.1 VDD for a logic 0.
2. Interrupt request through Port 3 (P33-P31).
Z86318
Z8
®
MCU 8-Bit Microcontroller
P R E L I M I N A R Y
9
1
PIN FUNCTIONS
XTAL1, XTAL2. Crystal in, crystal out (time-based input
and output, respectively). These pins connect a parallel-
resonant crystal, LC, or an external single-phase clock (4
MHz Max.) to the on-chip clock oscillator and buffer. Note:
XTAL1 has a pull-down resistor.
Port 0 (P02-P00). Port 0 is a 3-bit, I/O programmable, bi-
directional, CMOS-compatible I/O port. These three I/O
lines can be configured under software control to be input
or output (see Figure 5). When Port 0 is configured as an
input port, all lines have the capability to be globally con-
figured (ROM mask option) for a 100K pull-down or pull-up
resistor. The pull-up/pull-down resistor can be disabled as
well. (No current is drawn if disabled.) Graphs showing
current versus pin voltage are shown in Figures 6 and 7.
Figure 5. Port 0 Configuration
/OEN
Out
In
Pad
Pull-Down
Enable
Pull-Up
Enable
Z86318
Z8
®
MCU 8-Bit Microcontroller
10
P R E L I M I N A R Y
PIN FUNCTIONS (Continued)
Figure 6. Typical Current Versus Pin Voltage Values
Z86318
Z8
®
MCU 8-Bit Microcontroller
P R E L I M I N A R Y
11
1
Figure 7. Typical Current Versus Pin Voltage Values