Z86E0812SSC
Z86E0812SSC
Z86E0812SSC
Z86E04/E08 1
PRODUCT DEVICES
Datasheet.Live
Z86E0412SEC Crystal 4.5V–5.5V 1 18-Pin SOIC
Z86E0412SSC1866 Crystal 4.5V–5.5V 0°C/70°C 1 18-Pin SOIC
Z86E0412SSC1903 RC 4.5V–5.5V 0°C/70°C 1 18-Pin SOIC
Z86E0412SEC1903 RC 4.5V–5.5V –40°C/105°C 1 18-Pin SOIC
Z86E0812PEC Crystal 4.5V–5.5V –40°C/105°C 2 18-Pin DIP
Z86E0812PSC1866 Crystal 4.5V–5.5V 0°C/70°C 2 18-Pin DIP
Z86E0812PSC1903 RC 4.5V–5.5V 0°C/70°C 2 18-Pin DIP
Z86E0812PEC1903 RC 4.5V–5.5V –40°C/105°C 2 18-Pin DIP
Z86E0812SEC Crystal 4.5V–5.5V –40°C/105°C 2 18-Pin SOIC
Z86E0812SSC1866 Crystal 4.5V–5.5V 0°C/70°C 2 18-Pin SOIC
Z86E0812SSC1903 RC 4.5V–5.5V 0°C/70°C 2 18-Pin SOIC
Z86E0812SEC1903 RC 4.5V–5.5V –40°C/105°C 2 18-Pin SOIC
Several key product features of the extensive family of Zilog Z86E04/E08 CMOS OTP microcontrollers are presented in
the above table. This table enables the user to identify which of the E04/E08 product variants most closely match the us-
er’s application requirements.
DS97Z8X1104 PRELIMINARY 1
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
FEATURES
■ 14 Input/Output Lines ■ Two Programmable 8-Bit Counter/Timers, Each with
6-Bit Programmable Prescaler
■ Six Vectored, Prioritized Interrupts
(3 falling edge, 1 rising edge, 2 timers) ■ WDT/ Power-On Reset (POR)
GENERAL DESCRIPTION
Zilog's Z86E04/E08 Microcontrollers (MCU) are One-Time Note: All Signals with an overline, “ ”, are active Low, for
Programmable (OTP) members of Zilog’s single-chip Z8® example: B/W (WORD is active Low); B/W (BYTE is active
MCU family that allow easy software development, debug, Low, only).
prototyping, and small production runs not economically
desirable with masked ROM versions. Power connections follow conventional descriptions be-
low:
For applications demanding powerful I/O capabilities, the
Z86E04/E08's dedicated input and output lines are Connection Circuit Device
grouped into three ports, and are configurable under soft- Power VCC VDD
ware control to provide timing, status signals, or parallel
I/O. Ground GND VSS
2 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
Input XTAL
Vcc GND 1
Machine
Port 3 Timing & Inst.
Control
Counter/ ALU
Timers (2)
OTP
Interrupt FLAG
Control
Register
Pointer
Two Analog Program
Comparators Counter
General-Purpose
Register File
Port 2 Port 0
I/O I/O
(Bit Programmable)
DS97Z8X1104 PRELIMINARY 3
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
D7–0
AD 10–0
Z8 MCU
AD 10–0
Address
MUX
D7–0
Data
MUX
EPROM
Address AD 10–0
Counter D7–0 Z8
Port 2
3 bits ROM PROT
Low Noise
Clear Clock PGM
P00 P01 Mode Logic
VPP
EPM PGM P33
P32 P30
CE OE
XT1 P31
4 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
PIN DESCRIPTION
D4 1 18 D3 P24 1 18 P23
1
D5 D2 P25 P22
D6 D1 P26 P21
D7 D0 P27 P20
VCC GND VCC GND
NC PGM XTAL2 P02
CE CLOCK XTAL1 P01
OE CLEAR P31 P00
EPM 9 10 VPP P32 9 10 P33
Figure 3. 18-Pin EPROM Mode Configuration Figure 4. 18-Pin DIP/SOIC Mode Configuration
Table 1. 18-Pin DIP Pin Identification Table 2. 18-Pin DIP/SOIC Pin Identification
DS97Z8X1104 PRELIMINARY 5
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
6 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
150 pF
CAPACITANCE
TA = 25°C, VCC = GND = 0V, f = 1.0 MHz, unmeasured pins returned to GND.
DS97Z8X1104 PRELIMINARY 7
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
DC ELECTRICAL CHARACTERISTICS
Standard Temperature
8 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
DS97Z8X1104 PRELIMINARY 9
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
10 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
DC ELECTRICAL CHARACTERISTICS
Extended Temperature
TA = –40°C to
1
+105°C Typical
Sym Parameter VCC [4] Min Max @ 25°C Units Conditions Notes
VINMAX Max Input Voltage 4.5V 12.0 V IIN < 250 µA 1
5.5V 12.0 V IIN < 250 µA 1
VCH Clock Input High 4.5V 0.8 VCC VCC+0.3 2.8 V Driven by External
Voltage Clock Generator
5.5V 0.8 VCC VCC+0.3 2.8 V Driven by External
Clock Generator
VCL Clock Input Low 4.5V VSS–0.3 0.2 VCC 1.7 V Driven by External
Voltage Clock Generator
5.5V VSS–0.3 0.2 VCC 1.7 V Driven by External
Clock Generator
VIH Input High Voltage 4.5V 0.7 VCC VCC+0.3 2.8 V
5.5V 0.7 VCC VCC+0.3 2.8 V
VIL Input Low Voltage 4.5V VSS–0.3 0.2 VCC 1.5 V
5.5V VSS–0.3 0.2 VCC 1.5 V
VOH Output High Voltage 4.5V VCC–0.4 4.8 V IOH = –2.0 mA 5
5.5V VCC–0.4 4.8 V IOH = –2.0 mA 5
4.5V VCC–0.4 V Low Noise @ IOH = –0.5 mA
5.5V VCC–0.4 V Low Noise @ IOH = –0.5 mA
VOL1 Output Low Voltage 4.5V 0.4 0.1 V IOL = +4.0 mA 5
5.5V 0.4 0.1 V IOL = +4.0 mA 5
4.5V 0.4 0.1 V Low Noise @ IOL = 1.0 mA
5.5V 0.4 0.1 V Low Noise @ IOL = 1.0 mA
VOL2 Output Low Voltage 4.5V 1.0 0.3 V IOL = +12 mA, 5
5.5V 1.0 0.3 V IOL = +12 mA, 5
VOFFSET Comparator Input 4.5V 25.0 10.0 mV
Offset Voltage 5.5V 25.0 10.0 mV
VLV VCC Low Voltage 1.8 3.8 2.8 V @ 6 MHz Max. Int. 3
Auto Reset CLK Freq.
IIL Input Leakage 4.5V –1.0 1.0 µA VIN = 0V, VCC
(Input Bias Current 5.5V –1.0 1.0 µA VIN = 0V, VCC
of Comparator)
IOL Output Leakage 4.5V –1.0 1.0 µA VIN = 0V, VCC
5.5V –1.0 1.0 µA VIN = 0V, VCC
VICR Comparator Input 0 VCC –1.5 V
Common Mode
Voltage Range
DS97Z8X1104 PRELIMINARY 11
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
TA = –40°C to
+105°C Typical
Sym Parameter VCC [4] Min Max @ 25°C Units Conditions Notes
ICC Supply Current 4.5V 11.0 6.8 mA All Output and I/O Pins 5,7
Floating @ 2 MHz
5.5V 11.0 6.8 mA All Output and I/O Pins 5,7
Floating @ 2 MHz
4.5V 15.0 8.2 mA All Output and I/O Pins 5,7
Floating @ 8 MHz
5.5V 15.0 8.2 mA All Output and I/O Pins 5,7
Floating @ 8 MHz
4.5V 20.0 12.0 mA All Output and I/O Pins 5,7
Floating @ 12 MHz
5.5V 20.0 12.0 mA All Output and I/O Pins 5,7
Floating @ 12 MHz
ICC1 Standby Current 4.5V 5.0 2.5 mA HALT Mode VIN = 0V, 5,7
VCC @ 2 MHz
5.5V 5.0 2.5 mA HALT Mode VIN = 0V, 5,7
VCC @ 2 MHz
4.5V 5.0 3.0 mA HALT Mode VIN = 0V, 5,7
VCC @ 8 MHz
5.5V 5.0 3.0 mA HALT Mode VIN = 0V, 5,7
VCC @ 8 MHz
4.5V 7.0 4.0 mA HALT Mode VIN = 0V, 5,7
VCC @ 12 MHz
5.5V 7.0 4.0 mA HALT Mode VIN = 0V, 5,7
VCC @ 12 MHz
ICC Supply Current 4.5V 11.0 6.8 mA All Output and I/O Pins 7
(Low Noise Mode) Floating @ 1 MHz
5.5V 11.0 6.8 mA All Output and I/O Pins 7
Floating @ 1 MHz
4.5V 13.0 7.5 mA All Output and I/O Pins 7
Floating @ 2 MHz
5.5V 13.0 7.5 mA All Output and I/O Pins 7
Floating @ 2 MHz
4.5V 15.0 8.2 mA All Output and I/O Pins 7
Floating @ 4 MHz
5.5V 15.0 8.2 mA All Output and I/O Pins 7
Floating @ 4 MHz
12 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
DS97Z8X1104 PRELIMINARY 13
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
AC ELECTRICAL CHARACTERISTICS
1 3
Clock
2 2 3
7 7
TIN
4 5
IRQ N
8 9
14 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
AC ELECTRICAL CHARACTERISTICS
Timing Table (Standard Mode for SCLK/TCLK = XTAL/2)
Standard Temperature
1
15 TA= 0 °C to +70 °C
8 MHz 12 MHz
No Symbol Parameter VCC Min Max Min Max Units Notes
1 TpC Input Clock Period 4.5V 125 DC 83 DC ns 1
5.5V 125 DC 83 DC ns 1
2 TrC,TfC Clock Input Rise 4.5V 25 15 ns 1
and Fall Times 5.5V 25 15 ns 1
3 TwC Input Clock Width 4.5V 62 41 ns 1
5.5V 62 41 ns 1
4 TwTinL Timer Input Low Width 4.5V 100 100 ns 1
5.5V 70 70 ns 1
5 TwTinH Timer Input High Width 4.5V 5TpC 5TpC 1
5.5V 5TpC 5TpC 1
6 TpTin Timer Input Period 4.5V 8TpC 8TpC 1
5.5V 8TpC 8TpC 1
7 TrTin, Timer Input Rise 4.5V 100 100 ns 1
TtTin and Fall Time 5.5V 100 100 ns 1
8 TwIL Int. Request Input 4.5V 70 70 ns 1,2
Low Time 5.5V 70 70 ns 1,2
9 TwIH Int. Request Input 4.5V 5TpC 5TpC 1,2
High Time 5.5V 5TpC 5TpC 1,2
10 Twdt Watch-Dog Timer 4.5V 12 12 ms 1
Delay Time for Timeout 5.5V 12 12 ms 1
11 Tpor Power-On Reset Time 4.5V 20 80 20 80 ms 1
5.5V 20 80 20 80 ms 1
Notes:
1. Timing Reference uses 0.7 VCC for a logic 1 and 0.2 VCC for a logic 0.
2. Interrupt request through Port 3 (P33–P31).
DS97Z8X1104 PRELIMINARY 15
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
AC ELECTRICAL CHARACTERISTICS
Timing Table (Standard Mode for SCLK/TCLK = XTAL/2)
Extended Temperature
16 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
AC ELECTRICAL CHARACTERISTICS
Low Noise Mode, Standard Temperature
TA= 0 °C to +70 °C
1
1 MHz 4 MHz
No Symbol Parameter VCC Min Max Min Max Units Notes
1 TPC Input Clock Period 4.5V 1000 DC 250 DC ns 1
5.5V 1000 DC 250 DC ns 1
2 TrC Clock Input Rise 4.5V 25 25 ns 1
TfC and Fall Times 5.5V 25 25 ns 1
3 TwC Input Clock Width 4.5V 500 125 ns 1
5.5V 500 125 ns 1
4. TwTinL Timer Input Low Width 4.5V 70 70 ns 1
5.5V 70 70 ns 1
5 TwTinH Timer Input High Width 4.5V 2.5TpC 2.5TpC 1
5.5V 2.5TpC 2.5TpC 1
6 TpTin Timer Input Period 4.5V 4TpC 4TpC 1
5.5V 4TpC 4TpC 1
7 TrTin, Timer Input Rise 4.5V 100 100 ns 1
TtTin and Fall Time 5.5V 100 100 ns 1
8 TwIL Int. Request Input 4.5V 70 70 ns 1,2
Low Time 5.5V 70 70 ns 1,2
9 TwIH Int. Request Input 4.5V 2.5TpC 2.5TpC 1,2
High Time 5.5V 2.5TpC 2.5TpC 1,2
10 Twdt Watch-Dog Timer 4.5V 12 12 ms 1
Delay Time for Timeout 5.5V 12 12 ms 1
Notes:
1. Timing Reference uses 0.7 VCC for a logic 1 and 0.2 VCC for a logic 0.
2. Interrupt request through Port 3 (P33–P31).
DS97Z8X1104 PRELIMINARY 17
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
18 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
Low EMI Emission ■ Output drivers have resistances of 500 Ohms (typical).
The Z86E04/E08 can be programmed to operate in a Low ■ Oscillator divide-by-two circuitry eliminated.
1
EMI Emission Mode by means of a mask ROM bit option.
Use of this feature results in:
The Low EMI Mode is mask-programmable to be selected
■ All pre-driver slew rates reduced to 10 ns typical. by the customer at the time the ROM code is submitted.
PIN FUNCTIONS
OTP Programming Mode Clock Address Clock. This pin is a clock input. The internal
address counter increases by one with one clock cycle.
D7–D0 Data Bus. Data can be read from, or written to, the
EPROM through this data bus. PGM Program Mode (active Low). A Low level at this pin
programs the data to the EPROM through the Data Bus.
VCC Power Supply. It is typically 5V during EPROM Read
Mode and 6.4V during the other modes (Program, Pro-
Application Precaution
gram Verify, and so on).
The production test-mode environment may be enabled
CE Chip Enable (active Low). This pin is active during accidentally during normal operation if excessive noise
EPROM Read Mode, Program Mode, and Program Verify surges above VCC occur on the XTAL1 pin.
Mode.
In addition, processor operation of Z8 OTP devices may be
OE Output Enable (active Low). This pin drives the Data affected by excessive noise surges on the VPP, CE, EPM,
Bus direction. When this pin is Low, the Data Bus is output. OE pins while the microcontroller is in Standard Mode.
When High, the Data Bus is input.
Recommendations for dampening voltage surges in both
EPM EPROM Program Mode. This pin controls the differ- test and OTP Mode include the following:
ent EPROM Program Modes by applying different
voltages. ■ Using a clamping diode to VCC.
VPP Program Voltage. This pin supplies the program volt- ■ Adding a capacitor to the affected pin.
age.
Clear Clear (active High). This pin resets the internal ad- Note: Programming the EPROM/Test Mode Disable
dress counter at the High Level. option will prevent accidental entry into EPROM Mode or
Test Mode.
DS97Z8X1104 PRELIMINARY 19
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
Z8 Port 0 (I/O)
OE
PAD
Out
R 500 kΩ
20 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
Port 2, P27–P20. Port 2 is an 8-bit, bit programmable, bi- control to be inputs or outputs, independently. Bits pro-
directional, Schmitt-triggered CMOS-compatible I/O port. grammed as outputs can be globally programmed as ei-
These eight I/O lines can be configured under software ther push-pull or open-drain (Figure 8).
1
Z8
Port 2 (I/O)
Open-Drain
/OE
PAD
Out
In
R 500 kΩ
DS97Z8X1104 PRELIMINARY 21
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
Z86E04
and
Z8 Port 3
Z86E08
0 = Digital
R247 = P3M 1 = Analog
D1
TIN
DIG.
P31 Data Latch
PAD
IRQ2
+
P31 (AN1) AN.
-
IRQ3
P32 Data Latch
PAD
IRQ0
P32 (AN2) +
PAD
-
P33 (REF)
22 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
Comparator Inputs. Two analog comparators are added Mode. The common voltage range is 0–4 V when the VCC
to input of Port 3, P31, and P32, for interface flexibility. The is 5.0V; the power supply and common mode rejection ra-
comparators reference voltage P33 (REF) is common to tios are 90 dB and 60 dB, respectively.
both comparators.
Interrupts are generated on either edge of Comparator 2's
1
Typical applications for the on-board comparators; Zero output, or on the falling edge of Comparator 1's output.
crossing detection, A/D conversion, voltage scaling, and The comparator output is used for interrupt generation,
threshold detection. In Analog Mode, P33 input functions Port 3 data inputs, or TIN through P31. Alternatively, the
serve as a reference voltage to the comparators. comparators can be disabled, freeing the reference input
(P33) for use as IRQ1 and/or P33 input.
The dual comparator (common inverting terminal) features
a single power supply which discontinues power in STOP
FUNCTIONAL DESCRIPTION
The following special functions have been incorporated RESET. This function is accomplished by means of a Pow-
into the Z8 devices to enhance the standard Z8 core archi- er-On Reset or a Watch-Dog Timer Reset. Upon power-
tecture to provide the user with increased design flexibility. up, the Power-On Reset circuit waits for TPOR ms, plus 18
clock cycles, then starts program execution at address
000C (Hex) (Figure 10). The Z8 control registers' reset val-
ue is shown in Table 3.
POR
(Cold Start)
Chip Reset
Delay Line 18 CLK
TPOR msec Reset Filiter
P27
(Stop Mode)
Power-On Reset (POR). A timer circuit clocked by a ded- Watch-Dog Timer Reset. The WDT is a retriggerable
icated on-board RC oscillator is used for a POR timer func- one-shot timer that resets the Z8 if it reaches its terminal
tion. The POR time allows VCC and the oscillator circuit to count. The WDT is initially enabled by executing the WDT
stabilize before instruction execution begins. The POR instruction and is retriggered on subsequent execution of
timer circuit is a one-shot timer triggered by one of the four the WDT instruction. The timer circuit is driven by an on-
following conditions: board RC oscillator.
■ Stop-Mode Recovery
■ WDT time-out
■ WDH time-out
DS97Z8X1104 PRELIMINARY 23
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
Reset Condition
Addr. Reg. D7 D6 D5 D4 D3 D2 D1 D0 Comments
FF SPL 0 0 0 0 0 0 0 0
FD RP 0 0 0 0 0 0 0 0
FC FLAGS U U U U U U U U
FB IMR 0 U U U U U U U
FA IRQ U U 0 0 0 0 0 0 IRQ3 is used for positive edge
detection
F9 IPR U U U U U U U U
F8* P01M U U U 0 U U 0 1
F7* P3M U U U U U U 0 0
F6* P2M 1 1 1 1 1 1 1 1 Inputs after reset
F5 PRE0 U U U U U U U 0
F4 T0 U U U U U U U U
F3 PRE1 U U U U U U 0 0
F2 T1 U U U U U U U U
F1 TMR 0 0 0 0 0 0 0 0
Note: *Registers are not reset after a STOP-Mode Recovery using P27 pin. A subsequent reset will cause these control registers to
be reconfigured as shown in Table 4 and the user must avoid bus contention on the port pins or it may affect device reliability.
24 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
Program Memory. The Z86E04/E08 addresses up to Register File. The Register File consists of three I/O port
1K/2KB of Internal Program Memory (Figure 11). The first registers, 124 general-purpose registers, and 14 control
12 bytes of program memory are reserved for the interrupt and status registers R0–R3, R4–R127 and R241–R255,
vectors. These locations contain six 16-bit vectors that cor-
respond to the six available interrupts. Bytes 0–1024/2048
respectively (Figure 12). General-purpose registers occu-
py the 04H to 7FH address space. I/O ports are mapped
1
are on-chip one-time programmable ROM. as per the existing CMOS Z8.
Not Implemented
Figure 11. Program Memory Map 128
127 (7FH)
General-Purpose
Registers
4
3 Port 3 P3
2 Port 2 P2
1 Reserved P1
0 (00H) Port 0 P0
DS97Z8X1104 PRELIMINARY 25
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
In the 4-bit mode, the register file is divided into eight work- General-Purpose Registers (GPR). These registers are
ing register groups, each occupying 16 continuous loca- undefined after the device is powered up. The registers
tions. The Register Pointer (Figure 13) addresses the keep their last value after any reset, as long as the reset
starting location of the active working-register group. occurs in the VCC voltage-specified operating range. Note:
Register R254 has been designated as a general-purpose
register and is set to 00 Hex after any reset or Stop-Mode
Recovery.
60
5F
The counter can be programmed to start, stop, restart to
continue, or restart from the initial value. The counters are
50
4F
also programmed to stop upon reaching zero (Single-Pass
The lower nibble Mode) or to automatically reload the initial value and con-
40 of the register
3F file address
tinue counting (Modulo-N Continuous Mode).
Specified Working provided by the
Register Group instruction points
30
2F to the specified The counters, but not the prescalers, are read at any time
register. without disturbing their value or count mode. The clock
20
1F source for T1 is user-definable and is either the internal mi-
Register Group 1 R15 to R0 croprocessor clock divided by four, or an external signal in-
10
0F
R15 to R4*
put through Port 3. The Timer Mode register configures the
Register Group 0
external timer input (P31) as an external clock, a trigger in-
I/O Ports R3 to R0
00 put that is retriggerable or non-retriggerable, or used as a
*Expanded Register Group (0) is selected in this figure
by handling bits D3 to D0 as "0" in Register R253(RP).
gate input for the internal clock.
26 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
*
÷2
6-Bit 8-bit
÷4 Down Down
Counter Counter
IRQ4
Internal Clock
External Clock
Clock
Logic 6-Bit 8-Bit IRQ5
÷4 Down Down
Counter Counter
Internal Clock
Gated Clock PRE1 T1 T1
Triggered Clock Initial Value Initial Value Current Value
Register Register Register
TIN P31
Write Write Read
DS97Z8X1104 PRELIMINARY 27
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
IRQ0 - IRQ5
IRQ
IMR
Global 6
Interrupt
Enable IPR
Interrupt
Request PRIORITY
LOGIC
Vector Select
28 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
Clock. The Z8 on-chip oscillator has a high-gain, parallel- The crystal should be connected across XTAL1 and
resonant amplifier for connection to a crystal, LC, RC, ce- XTAL2 using the vendors crystal recommended capacitors
ramic resonator, or any suitable external clock source from each pin directly to device ground pin 14 (Figure 16).
(XTAL1 = INPUT, XTAL2 = OUTPUT). The crystal should
be AT cut, up to 12 MHz max., with a series resistance
Note that the crystal capacitor loads should be connected
to VSS, Pin 14 to reduce Ground noise injection.
1
(RS) of less than or equal to 100 Ohms.
DS97Z8X1104 PRELIMINARY 29
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
Load Capacitor
33 pFd 56 pFd 100 pFd 0.00 1µFd
Resistor (R) A(Hz) B(Hz) A(Hz) B(Hz) A(Hz) B(Hz) A(Hz) B(Hz)
1.0M 33K 31K 20K 20K 12K 11K 1.4K 1.4K
560K 56K 52K 34K 32K 20K 19K 2.5K 2.4K
220K 144K 130K 84K 78K 48K 45K 6K 6K
100K 315K 270K 182K 164K 100K 95K 12K 12K
56K 552K 480K 330K 300K 185K 170K 23K 22K
20K 1.4M 1M 884K 740K 500K 450K 65K 61K
10K 2.6M 2M 1.6M 1.3M 980K 820K 130K 123K
5K 4.4M 3M 2.8M 2M 1.7K 1.3M 245K 225K
2K 8M 5M 6M 4M 3.8K 2.7M 600K 536K
1K 12M 7M 8.8M 6M 6.3K 4.2M 1.0M 950K
Notes:
A = STD Mode Frequency.
B = Low EMI Mode Frequency.
Load Capacitor
Resistor (R) 33 pFd 56 pFd 100 pFd 0.00 1µFd
A(Hz) B(Hz) A(Hz) B(Hz) A(Hz) B(Hz) A(Hz) B(Hz)
1.0M 18K 18K 12K 12K 7.4K 7.7K 1K 1K
560K 30K 30K 20K 20K 12K 12K 1.6K 1.6K
220K 70K 70K 47K 47K 30K 30K 4K 4K
100K 150K 148K 97K 96K 60K 60K 8K 8K
56K 268K 250K 176K 170K 100K 100K 15K 15K
20K 690M 600K 463K 416K 286K 266K 40K 40K
10K 1.2M 1M 860K 730K 540K 480K 80K 76K
5K 2M 1.7M 1.5M 1.2M 950K 820K 151K 138K
2K 4.6M 3M 3.3M 2.4M 2.2M 1.6M 360K 316K
1K 7M 4.6M 5M 3.6M 3.6K 2.6M 660K 565K
Notes:
A = STD Mode Frequency.
B = Low EMI Mode Frequency.
30 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
HALT Mode. This instruction turns off the internal CPU Watch-Dog Timer (WDT). The Watch-Dog Timer is en-
clock but not the crystal oscillation. The counter/timers and abled by instruction WDT. When the WDT is enabled, it
external interrupts IRQ0, IRQ1, IRQ2 and IRQ3 remain ac- cannot be stopped by the instruction. With the WDT in-
tive. The device is recovered by interrupts, either external-
ly or internally generated. An interrupt request must be ex-
struction, the WDT is refreshed when it is enabled within
every 1 Twdt period; otherwise, the controller resets itself,
1
ecuted (enabled) to exit HALT Mode. After the interrupt The WDT instruction affects the flags accordingly; Z=1,
service routine, the program continues from the instruction S=0, V=0.
after the HALT.
WDT = 5F (Hex)
Note: On the C12 ICEBOX, the IRQ3 does not wake the
device out of HALT Mode. Opcode WDT (5FH). The first time Opcode 5FH is execut-
ed, the WDT is enabled and subsequent execution clears
STOP Mode. This instruction turns off the internal clock the WDT counter. This must be done at least every TWDT;
and external crystal oscillation and reduces the standby otherwise, the WDT times out and generates a reset. The
current to 10 µA. The STOP Mode is released by a RESET generated reset is the same as a power-on reset of TPOR,
through a Stop-Mode Recovery (pin P27). A Low input plus 18 XTAL clock cycles. The software enabled WDT
condition on P27 releases the STOP Mode. Program exe- does not run in STOP Mode.
cution begins at location 000C(Hex). However, when P27
is used to release the STOP Mode, the I/O port Mode reg- Opcode WDH (4FH). When this instruction is executed it
isters are not reconfigured to their default power-on condi- enables the WDT during HALT. If not, the WDT stops
tions. This prevents any I/O, configured as output when the when entering HALT. This instruction does not clear the
STOP instruction was executed, from glitching to an un- counters, it just makes it possible to have the WDT running
known state. To use the P27 release approach with STOP during HALT Mode. A WDH instruction executed without
Mode, use the following instruction: executing WDT (5FH) has no effect.
LD P2M, #1XXX XXXXB Permanent WDT. Selecting the hardware enabled Perma-
NOP nent WDT option, will automatically enable the WDT upon
exiting reset. The permanent WDT will always run in HALT
STOP
Mode and STOP Mode, and it cannot be disabled.
X = Dependent on user's application.
Auto Reset Voltage (VLV). The Z8 has an auto-reset built-
Note: A low level detected on P27 pin will take the device in. The auto-reset circuit resets the Z8 when it detects the
out of STOP Mode even if configured as an output. VCC below VLV.
In order to enter STOP or HALT Mode, it is necessary to Figure 17 shows the Auto Reset Voltage versus tempera-
first flush the instruction pipeline to avoid suspending exe- ture. If the VCC drops below the VCC operating voltage
cution in mid-instruction. To do this, the user executes a range, the Z8 will function down to the VLV unless the inter-
NOP (opcode=FFH) immediately before the appropriate nal clock frequency is higher than the specified maximum
SLEEP instruction, such as: VLV frequency.
DS97Z8X1104 PRELIMINARY 31
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
Vcc
(Volts)
2.9
2.8
2.7
2.6
2.5
2.4
2.3 Temp
–40°C –20°C 0°C 20°C 40°C 60°C 80°C 100°C
32 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
Low EMI Emission ROM Protect. ROM Protect fully protects the Z8 ROM
code from being read externally. When ROM Protect is se-
The Z8 can be programmed to operate in a low EMI Emis-
lected, the instructions LDC and LDCI are supported
sion (Low Noise) Mode by means of an EPROM program-
mable bit option. Use of this feature results in:
(Z86E04/E08 and Z86C04/C08 do not support the instruc-
tions of LDE and LDEI). When the device is programmed
1
■ Less than 1 mA consumed during HALT Mode. for ROM Protect, the Low Noise feature will not automati-
cally be enabled.
■ All drivers slew rates reduced to 10 ns (typical).
Please note that when using the device in a noisy environ-
■ Internal SCLK/TCLK = XTAL operation limited to a ment, it is suggested that the voltages on the EPM and CE
maximum of 4 MHz–250 ns cycle time. pins be clamped to VCC through a diode to VCC to prevent
accidentally entering the OTP Mode. The VPP requires
■ Output drivers have resistances of 500 ohms (typical). both a diode and a 100 pF capacitor.
■ Oscillator divide-by-two circuitry eliminated. Auto Latch Disable. Auto Latch Disable option bit when
programmed will globally disable all Auto Latches.
In addition to VDD and GND (VSS), the Z8 changes all its pin
functions in the EPROM Mode. XTAL2 has no function, WDT Enable. The WDT Enable option bit, when pro-
XTAL1 functions as CE, P31 functions as OE, P32 func- grammed, will have the hardware enabled Permanent
tions as EPM, P33 functions as VPP, and P02 functions as WDT enabled after exiting reset and can not be stopped in
PGM. Halt or Stop Mode.
DS97Z8X1104 PRELIMINARY 33
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
34 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
T2
P01 = Clock
1
T4
T3
T1
P00 = Clear
Vpp/EPM
T6
T5
Internal
Address
Vih 0 Min
Legend:
DS97Z8X1104 PRELIMINARY 35
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
VIH
9
VIH
VPP
VIL
VH
EPM
VIL
12
VCC 5.0V
VIH
CE
VIL
5
VIH
OE
VIL
16 16
VIH
PGM
VIL
13
36 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
VIH
Address
Address
VIL Stable 1
1
VIH
Data Data Data Out
VIL Stable Valid
2 9 10
VH
VPP
VIH
3
VH
EPM
VIL
6V
V CC
5.0V
VIH 4 7
CE
VIL
5
VIH
OE
VIL 13
VIH 16
PGM
VIL
6 8
11
Program Verify
Cycle Cycle
DS97Z8X1104 PRELIMINARY 37
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
VIH
Address
VIL
VIH
Data
VIL
VH
VPP
VIH
3
6V
VCC
5.0V
VH
CE
VIH
5
VIH
OE
VIL
VH
VIH VIH
EPM
VIL
12 12
13 13
VIH
PGM VIL
15 15
38 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
VIH
Address
VIL 1
VIH
Data
VIL
VH
VPP VIH
3
6V
VCC
5.0V
VH
CE
VIH VIH
5
VIL
OE
12 12
13 13
VIH
EPM
VIL
12 12
13 13
VIH
PGM
VIL
15 15 15
DS97Z8X1104 PRELIMINARY 39
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
Start
Addr =
First Location
VCC = 6.4V
VPP= 13.0V
N=0
Program
1 ms Pulse
Increment N
Yes
N = 25 ?
No
Pass Pass
Increment No
Last Addr ?
Address
Yes
Device
Failed
Device
Passed
40 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
Z8 CONTROL REGISTERS
T0 Initial Value
0 No Function
1 Load T0 (When Written)
(Range: 1-256 Decimal
0 Disable T0 Count 01-00 HEX)
1 Enable T0 Count T0 Current Value
(When READ)
0 No Function
1 Load T1
0 Disable T1 Count
1 Enable T1 Count Figure 27. Counter/Timer 0 Register
TIN Modes (F4H: Read/Write)
00 External Clock Input
01 Gate Input
10 Trigger Input
(Non-retriggerable)
11 Trigger Input
(Retriggerable) R245 PRE0
D7 D6 D5 D4 D3 D2 D1 D0
Reserved (Must be 0)
Count Mode
0 T0 Single Pass
Figure 24. Timer Mode Register (F1H: Read/Write) 1 T0 Modulo N
Reserved (Must be 0)
Prescaler Modulo
R242 T1 (Range: 1-64 Decimal
01-00 HEX)
D7 D6 D5 D4 D3 D2 D1 D0
T 1 Initial Value
(When Written) Figure 28. Prescaler 0 Register (F5H: Write Only)
(Range 1-256 Decimal
01-00 HEX)
T 1 Current Value
(When READ)
R246 P2M
D7 D6 D5 D4 D3 D2 D1 D0
Figure 25. Counter Timer 1 Register (F2H: Read/Write)
P2 7 - P2 0 I/O Definition
0 Defines Bit as OUTPUT
1 Defines Bit as INPUT
R243 PRE1
D7 D6 D5 D4 D3 D2 D1 D0
Figure 29. Port 2 Mode Register (F6H: Write Only)
Count Mode
0 = T 1 Single Pass
1 = T 1 Modulo N
Clock Source R247 P3M
1 = T 1 Internal
0 = T 1 External Timing Input D7 D6 D5 D4 D3 D2 D1 D0
(T IN ) Mode
Prescaler Modulo
(Range: 1-64 Decimal 0 Port 2 Open-Drain
01-00 HEX)
1 Port 2 Push-pull
Port 3 Inputs
0 Digital Mode
1 Analog Mode
Figure 26. Prescaler 1 Register (F3H: Write Only)
Reserved (Must be 0)
DS97Z8X1104 PRELIMINARY 41
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0
1 Enables IRQ0-IRQ5
P02-P00 Mode (D0 = IRQ0)
00 = Output
01 = Input Reserved (Must be 0.)
1 Enables Interrupts
Reserved (Must be 1.)
Reserved (Must be 0.)
D7 D6 D5 D4 D3 D2 D1 D0
R249 IPR
D7 D6 D5 D4 D3 D2 D1 D0
User Flag F1
User Flag F2
Interrupt Group Priority Half Carry Flag
Reserved = 000
C > A > B = 001 Decimal Adjust Flag
A > B > C = 010
Overflow Flag
A > C > B = 011
B > C > A = 100 Sign Flag
C > B > A = 101
Zero Flag
B > A > C = 110
Reserved = 111 Carry Flag
IRQ1, IRQ4 Priority (Group C)
0 = IRQ1 > IRQ4
1 = IRQ4 > IRQ1
IRQ0, IRQ2 Priority (Group B)
Figure 35. Flag Register
0 = IRQ2 > IRQ0 (FCH: Read/Write)
1 = IRQ0 > IRQ2
R250 IRQ
Figure 36. Register Pointer
D7 D6 D5 D4 D3 D2 D1 D0
(FDH: Read/Write)
Reserved (Must be 0)
Stack Pointer Lower
Byte (SP 7 - SP 0 )
42 PRELIMINARY DS97Z8X1104
Z86E04/E08
Zilog CMOS Z8 OTP Microcontrollers
PACKAGE INFORMATION
DS97Z8X1104 PRELIMINARY 43
Z86E04/E08
CMOS Z8 OTP Microcontrollers Zilog
ORDERING INFORMATION
Z86E04 Z86E08
Standard Temperature Standard Temperature
18-Pin DIP 18-Pin SOIC 18-Pin DIP 18-Pin SOIC
Z86E0412PSC Z86E0412SSC Z86E0812PSC Z86E0812SSC
Z86E0412PEC Z86E0412SEC Z86E0812PEC Z86E0812SEC
For fast results, contact your local Zilog sales office for assistance in ordering the part(s) desired.
Codes
Preferred Package Speeds
P = Plastic DIP 12 =12 MHz
Preferred Temperature
S = 0°C to +70°C
E = –40°C to +105°C
Example:
Z 86E04 12 P S C is a Z86E04, 12 MHz, DIP, 0°C to +70°C, Plastic Standard Flow
Environmental Flow
Temperature
Package
Speed
Product Number
Zilog Prefix
© 1998 by Zilog, Inc. All rights reserved. No part of this Zilog, Inc. shall not be responsible for any errors that may
document may be copied or reproduced in any form or by appear in this document. Zilog, Inc. makes no commitment
any means without the prior written consent of Zilog, Inc. to update or keep current the information contained in this
The information in this document is subject to change document.
without notice. Devices sold by Zilog, Inc. are covered by
warranty and patent indemnification provisions appearing Zilog’s products are not authorized for use as critical
in Zilog, Inc. Terms and Conditions of Sale only. components in life support devices or systems unless a
specific written agreement pertaining to such intended use
ZILOG, INC. MAKES NO WARRANTY, EXPRESS, is executed between the customer and Zilog prior to use.
STATUTORY, IMPLIED OR BY DESCRIPTION, Life support devices or systems are those which are
REGARDING THE INFORMATION SET FORTH HEREIN intended for surgical implantation into the body, or which
OR REGARDING THE FREEDOM OF THE DESCRIBED sustains life whose failure to perform, when properly used
DEVICES FROM INTELLECTUAL PROPERTY in accordance with instructions for use provided in the
INFRINGEMENT. ZILOG, INC. MAKES NO WARRANTY labeling, can be reasonably expected to result in
OF MERCHANTABILITY OR FITNESS FOR ANY significant injury to the user.
PURPOSE.
Zilog, Inc. 210 East Hacienda Ave.
Campbell, CA 95008-6600
Telephone (408) 370-8000
FAX 408 370-8056
Internet: http://www.zilog.com
44 PRELIMINARY DS97Z8X1104