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 user’s application requirements.
DS97Z8X1104
P R E L I M I N A R Y
1
Page 2
2
Z86E04/E08
CMOS Z8 OTP MicrocontrollersZilog
FEATURES
■
14 Input/Output Lines
Six Vectored, Prioritized Interrupts
Zilog's Z86E04/E08 Microcontrollers (MCU) are One-Time
Programmable (OTP) members of Zilog’s single-chip Z8
MCU family that allow easy software development, debug,
prototyping, and small production runs not economically
desirable with masked ROM versions.
For applications demanding powerful I/O capabilities, the
Z86E04/E08's dedicated input and output lines are
grouped into three ports, and are configurable under software control to provide timing, status signals, or parallel
I/O.
■
Two Programmable 8-Bit Counter/Timers, Each with
6-Bit Programmable Prescaler
■
WDT/ Power-On Reset (POR)
■
On-Chip Oscillator that Accepts XTAL, Ceramic
Resonance, LC, RC, or External Clock
Low, only).
Power connections follow conventional descriptions be-
low:
ConnectionCircuitDevice
Power
V
CC
GroundGND
V
DD
V
SS
Two on-chip counter/timers, with a large number of user
selectable modes, offload the system of administering
real-time tasks such as counting/timing and I/O data communications.
Stresses greater than those listed under Absolute Maximum Ratings may cause permanent damage to the de-
dissipation should not exceed 462 mW for the package.
Power dissipation is calculated as follows:
vice. This is a stress rating only; functional operation of the
device at any condition above those indicated in the operational sections of these specifications is not implied. Exposure to absolute maximum rating conditions for an extended period may affect device reliability. Total power
Total Power Dissipation = V
x [I
DD
–(sum of I
DD
+ sum of [(V
+ sum of (V
)]
OH
–V
) x I
DD
OH
x I
0L
0L
OH
]
ParameterMinMaxUnitsNote
Ambient Temperature under Bias–40+105C
Storage Temperature–65+150C
Voltage on any Pin with Respect to V
Voltage on V
Pin with Respect to V
DD
SS
SS
Voltage on Pins 7, 8, 9, 10 with Respect to V
–0.6V
SS
–0.7+12V1
–0.3+7V
+1V2
DD
Total Power Dissipation1.65W
Maximum Allowable Current out of V
Maximum Allowable Current into V
DD
SS
300mA
220mA
Maximum Allowable Current into an Input Pin–600+600µA3
Maximum Allowable Current into an Open-Drain Pin–600+600µA4
Maximum Allowable Output Current Sinked by Any I/O Pin25mA
Maximum Allowable Output Current Sourced by Any I/O Pin25mA
Total Maximum Output Current Sinked by a Port 60mA
Total Maximum Output Current Sourced by a Port 45mA
Notes:
1. This applies to all pins except where otherwise noted. Maximum current into pin must be ± 600 µA.
2. There is no input protection diode from pin to V
3. This excludes Pin 6 and Pin 7.
4. Device pin is not at an output Low state.
(not applicable to EPROM Mode).
DD
P R E L I M I N A R Y
DS97Z8X1104
Page 7
Z86E04/E08
1
From Output
Under Test
150 pF
ZilogCMOS Z8 OTP Microcontrollers
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 (Figure 5).
Figure 5. Test Load Diagram
CAPACITANCE
= 25°C, VCC = GND = 0V, f = 1.0 MHz, unmeasured pins returned to GND.
Supply Current4.5V11.0 6.8mAAll Output and I/O Pins
Standby Current4.5V4.02.5mAHALT Mode VIN = 0V,
Supply Current
(Low Noise Mode)
TA = 0°C to +70°C
V
CC
[4]
MinMax@ 25°CUnits ConditionsNotes
Typical
Floating @ 2 MHz
5.5V11.06.8mAAll Output and I/O Pins
Floating @ 2 MHz
4.5V15.08.2mAAll Output and I/O Pins
Floating @ 8 MHz
5.5V15.08.2mAAll Output and I/O Pins
Floating @ 8 MHz
4.5V20.012.0mAAll Output and I/O Pins
Floating @ 12 MHz
5.5V20.012.0mAAll Output and I/O Pins
Floating @ 12 MHz
VCC @ 2 MHz
5.5V4.02.5mAHALT Mode VIN = 0V,
VCC @ 2 MHz
4.5V5.03.0mAHALT Mode VIN = 0V,
VCC @ 8 MHz
5.5V5.03.0mAHALT Mode VIN = 0V,
VCC @ 8 MHz
4.5V7.04.0mAHALT Mode VIN = 0V,
VCC @ 12 MHz
5.5V7.04.0mAHALT Mode V
= 0V,
IN
VCC @ 12 MHz
4.5V11.06.8mAAll Output and I/O Pins
Floating @ 1 MHz
5.5V11.06.8mAAll Output and I/O Pins
Floating @ 1 MHz
4.5V13.07.5mAAll Output and I/O Pins
Floating @ 2 MHz
5.5V13.07.5mAAll Output and I/O Pins
Floating @ 2 MHz
4.5V15.08.2mAAll Output and I/O Pins
Floating @ 4 MHz
5.5V15.08.2mAAll Output and I/O Pins
Floating @ 4 MHz
5,7
5,7
5,7
5,7
5,7
5,7
5,7
5,7
5,7
5,7
5,7
5,7
7
7
7
7
7
7
DS97Z8X1104P R E L I M I N A R Y9
Page 10
Z86E04/E08
CMOS Z8 OTP MicrocontrollersZilog
DC ELECTRICAL CHARACTERISTICS (Continued)
Sym Parameter
I
Standby Current
CC1
TA = 0°C to +70°C
V
CC
[4]
MinMax@ 25°CUnitsConditionsNotes
4.5V4.02.5mAHALT Mode V
Typical
(Low Noise Mode)
5.5V4.02.5mAHALT Mode VIN = 0V,
4.5V4.52.8mAHALT Mode VIN = 0V,
5.5V4.52.8mAHALT Mode VIN = 0V,
4.5V5.03.0mAHALT Mode VIN = 0V,
5.5V5.03.0mAHALT Mode VIN = 0V,
Standby Current4.5V10.01.0µASTOP Mode VIN = 0V, V
I
CC2
5.5V10.01.0µASTOP Mode VIN = 0V,VCC
I
Auto Latch Low
ALL
Current
I
Auto Latch High
ALH
Current
Notes:
1. Port 2 and Port 0 only
2. V
= 0V = GND
SS
3. The device operates down to V
the voltage VLV at the ambient temperature. The VLV increases as the temperature decreases.
4. V
= 4.5 to 5.5V, typical values measured at VCC = 5.0V.
CC
The V
5. Standard Mode (not Low EMI Mode)
6. Z86E08 only
7. All outputs unloaded and all inputs are at V
8. If analog comparator is selected, then the comparator inputs must be at V
voltage specification of 5.5 V guarantees 5.0 V ± 0.5V with typical values measured at VCC = 5.0V.
CC
4.5V32.016µA0V < VIN < V
5.5V32.016µA0V < VIN < V
4.5V–16.0–8.0µA0V < VIN < V
5.5V–16.0–8.0µA0V < VIN < V
of the specified frequency for VLV . The minimum operational VCC is determined on the value of
LV
or VSS level.
CC
level.
CC
= 0V,
IN
@ 1 MHz
V
CC
VCC @ 1 MHz
VCC @ 2 MHz
VCC @ 2 MHz
VCC @ 4 MHz
VCC @ 4 MHz
WDT is not Running
WDT is not Running
CC
CC
CC
CC
CC
7
7
7
7
7
7
7,8
7,8
10P R E L I M I N A R YDS97Z8X1104
Page 11
Z86E04/E08
1
ZilogCMOS Z8 OTP Microcontrollers
DC ELECTRICAL CHARACTERISTICS
Extended Temperature
SymParameter
V
INMAX
V
CH
Max Input Voltage4.5V12.0VIIN < 250 µA1
Clock Input High
Voltage
V
CL
Clock Input Low
Voltage
V
IH
V
IL
V
OH
V
OL1
V
OL2
V
OFFSET
Input High Voltage4.5V0.7 V
Input Low Voltage4.5VVSS–0.30.2 V
Output High Voltage4.5VVCC–0.44.8VIOH = –2.0 mA5
Output Low Voltage4.5V0.40.1VIOL = +4.0 mA5
Output Low Voltage4.5V1.00.3VIOL = +12 mA,5
Comparator Input
Offset V oltage
V
LV
VCC Low Voltage
Auto Reset
I
IL
Input Leakage
(Input Bias Current
of Comparator)
I
OL
V
ICR
Output Leakage4.5V–1.01.0µAVIN = 0V, V
Comparator Input
Common Mode
Voltage Range
TA = –40°C to
+105°CTypical
V
CC
[4]
MinMax@ 25°CUnitsConditionsNotes
5.5V12.0VIIN < 250 µA1
4.5V0.8 V
CCVCC
+0.32.8VDriven by External
Clock Generator
5.5V0.8 V
CCVCC
+0.32.8VDriven by External
Clock Generator
4.5VVSS–0.30.2 V
CC
1.7VDriven by External
Clock Generator
5.5VVSS–0.30.2 V
CC
1.7VDriven by External
Clock Generator
CCVCC
5.5V0.7 V
CCVCC
5.5VVSS–0.30.2 V
+0.32.8V
+0.32.8V
CC
CC
1.5V
1.5V
5.5VVCC–0.44.8VIOH = –2.0 mA5
4.5VVCC–0.4VLow Noise @ IOH = –0.5 mA
5.5VVCC–0.4VLow Noise @ IOH = –0.5 mA
5.5V0.40.1VI
= +4.0 mA5
OL
4.5V0.40.1VLow Noise @ IOL = 1.0 mA
5.5V0.40.1VLow Noise @ IOL = 1.0 mA
5.5V1.00.3VIOL = +12 mA,5
4.5V25.010.0mV
5.5V25.010.0mV
1.83.82.8V@ 6 MHz Max. Int.
3
CLK Freq.
4.5V–1.01.0µAVIN = 0V, V
5.5V–1.01.0µAVIN = 0V, V
5.5V–1.01.0µAVIN = 0V, V
CC
CC
CC
CC
0 VCC –1.5V
DS97Z8X1104P R E L I M I N A R Y11
Page 12
Z86E04/E08
CMOS Z8 OTP MicrocontrollersZilog
DC ELECTRICAL CHARACTERISTICS (Continued)
T
= –40°C to
A
+105°CTypical
V
SymParameter
I
CC
I
CC1
I
CC
Supply Current4.5V11.0 6.8mAAll Output and I/O Pins
Standby Current4.5V5.02.5mAHALT Mode VIN = 0V,
Supply Current
(Low Noise Mode)
CC
[4]
MinMax@ 25°CUnitsConditionsNotes
Floating @ 2 MHz
5.5V11.06.8mAAll Output and I/O Pins
Floating @ 2 MHz
4.5V15.08.2mAAll Output and I/O Pins
Floating @ 8 MHz
5.5V15.08.2mAAll Output and I/O Pins
Floating @ 8 MHz
4.5V20.012.0mAAll Output and I/O Pins
Floating @ 12 MHz
5.5V20.012.0mAAll Output and I/O Pins
Floating @ 12 MHz
VCC @ 2 MHz
5.5V5.02.5mAHALT Mode VIN = 0V,
VCC @ 2 MHz
4.5V5.03.0mAHALT Mode VIN = 0V,
VCC @ 8 MHz
5.5V5.03.0mAHALT Mode VIN = 0V,
VCC @ 8 MHz
4.5V7.04.0mAHALT Mode VIN = 0V,
VCC @ 12 MHz
5.5V7.04.0mAHALT Mode VIN = 0V,
@ 12 MHz
V
CC
4.5V11.06.8mAAll Output and I/O Pins
Floating @ 1 MHz
5.5V11.06.8mAAll Output and I/O Pins
Floating @ 1 MHz
4.5V13.07.5mAAll Output and I/O Pins
Floating @ 2 MHz
5.5V13.07.5mAAll Output and I/O Pins
Floating @ 2 MHz
4.5V15.08.2mAAll Output and I/O Pins
Floating @ 4 MHz
5.5V15.08.2mAAll Output and I/O Pins
Floating @ 4 MHz
5,7
5,7
5,7
5,7
5,7
5,7
5,7
5,7
5,7
5,7
5,7
5,7
7
7
7
7
7
7
12P R E L I M I N A R YDS97Z8X1104
Page 13
Z86E04/E08
1
ZilogCMOS Z8 OTP Microcontrollers
SymParameter
I
CC1
Standby Current
(Low Noise Mode)
TA = –40°C to +105°C
VCC [4]
MinMax@ 25°CUnits ConditionsNotes
4.5V4.02.5mAHALT Mode V
Typical
@ 1 MHz
V
CC
= 0V,
IN
5.5V4.02.5mAHALT Mode VIN = 0V,
VCC @ 1 MHz
4.5V4.52.8mAHALT Mode VIN = 0V,
VCC @ 2 MHz
5.5V4.52.8mAHALT Mode VIN = 0V,
VCC @ 2 MHz
4.5V5.03.0mAHALT Mode VIN = 0V,
VCC @ 4 MHz
5.5V5.03.0mAHALT Mode VIN = 0V,
VCC @ 4 MHz
I
CC2
Standby Current4.5V201.0µASTOP Mode VIN = 0V, VCC
7,8
WDT is not Running
5.5V201.0µASTOP Mode VIN = 0V, VCC
7,8
WDT is not Running
I
ALL
I
ALH
Notes:
1. Port 2 and Port 0 only
2. V
3. The device operates down to VLV of the specified frequency for VLV . The minimum operational VCC is determined on the value of
4. V
5. Standard Mode (not Low EMI Mode)
6. Z86E08 only
7. All outputs unloaded and all inputs are at V
8. If analog comparator is selected, then the comparator inputs must be at V
Auto Latch Low
Current
Auto Latch High
Current
= 0V = GND
SS
the voltage V
= 4.5V to 5.5V, typical values measured at VCC = 5.0V
CC
at the ambient temperature. The VLV increases as the temperature decreases.
LV
4.5V4016µA0V < VIN < V
5.5V4016µA0V < VIN < V
4.5V–20.0–8.0µA0V < VIN < V
5.5V–20.0–8.0µA0V < VIN < V
or VSS level.
CC
CC
CC
CC
CC
CC
level.
7
7
7
7
7
7
DS97Z8X1104P R E L I M I N A R Y13
Page 14
Z86E04/E08
CMOS Z8 OTP MicrocontrollersZilog
AC ELECTRICAL CHARACTERISTICS
Clock
T
IN
IRQ
1
2
7
N
7
4
8
5
6
9
3
2
3
Figure 6. AC Electrical Timing Diagram
14P R E L I M I N A R YDS97Z8X1104
Page 15
Z86E04/E08
1
ZilogCMOS Z8 OTP Microcontrollers
AC ELECTRICAL CHARACTERISTICS
Timing Table (Standard Mode for SCLK/TCLK = XTAL/2)
Standard Temperature
15
8 MHz12 MHz
NoSymbolParameter
1TpCInput Clock Period4.5V125DC83DCns1
2TrC,TfCClock Input Rise
and Fall Times
3TwCInput Clock Width4.5V6241ns1
4TwTinLTimer Input Low Width4.5V100100ns1
5TwTinHTimer Input High Width4.5V5TpC5TpC1
6TpTinTimer Input Period4.5V8TpC8TpC1
7TrTin,
TtTin
8TwILInt. Request Input
9TwIHInt. Request Input
10TwdtWatch-Dog Timer
11Tpor
Notes:
1. Timing Reference uses 0.7 V
2. Interrupt request through Port 3 (P33–P31).
Timer Input Rise
and Fall Time
Low Time
High Time
Delay Time for Timeout
Power-On Reset Time4.5V20802080ms1
for a logic 1 and 0.2 VCC for a logic 0.
CC
V
CC
5.5V125DC83DCns1
4.5V2515ns1
5.5V2515ns1
5.5V6241ns1
5.5V7070ns1
5.5V5TpC5TpC1
5.5V8TpC8TpC1
4.5V100100ns1
5.5V100100ns1
4.5V7070ns1,2
5.5V7070ns1,2
4.5V5TpC5TpC1,2
5.5V5TpC5TpC1,2
4.5V1212ms1
5.5V1212ms1
5.5V20802080ms1
TA= 0 °C to +70 °C
MinMaxMinMaxUnitsNotes
DS97Z8X1104P R E L I M I N A R Y15
Page 16
Z86E04/E08
CMOS Z8 OTP MicrocontrollersZilog
AC ELECTRICAL CHARACTERISTICS
Timing Table (Standard Mode for SCLK/TCLK = XTAL/2)
Extended Temperature
TA= –40 °C to +105 °C
8 MHz12 MHz
NoSymbolParameter
V
CC
1TpCInput Clock Period4.5V125DC83DCns1
5.5V125DC83DCns1
2TrC,TfCClock Input Rise
and Fall Times
4.5V2515ns1
5.5V2515ns1
3TwCInput Clock Width4.5V6241ns1
5.5V6241ns1
4TwTinLTimer Input Low Width4.5V7070ns1
5.5V7070ns1
5TwTinHTimer Input High Width4.5V5TpC5TpC1
5.5V5TpC5TpC1
6TpTinTimer Input Period4.5V8TpC8TpC1
5.5V8TpC8TpC1
7TrTin,
TtTin
8TwILInt. Request Input
9TwIHInt. Request Input
10T wdtWatch-Dog Timer
11Tpor
Notes:
1. Timing Reference uses 0.7 V
2. Interrupt request made through Port 3 (P33–P31).
Timer Input Rise
and Fall Time
4.5V100100ns1
5.5V100100ns1
4.5V7070ns1,2
Low Time
5.5V7070ns1,2
4.5V5TpC5TpC1,2
High Time
5.5V5TpC5TpC1,2
4.5V1010ms1
Delay Time for Timeout
5.5V1010ms1
Power-On Reset Time4.5V1210012100ms1
5.5V1210012100ms1
for a logic 1 and 0.2 VCC for a logic 0.
CC
MinMaxMinMaxUnitsNotes
16P R E L I M I N A R YDS97Z8X1104
Page 17
Z86E04/E08
1
ZilogCMOS Z8 OTP Microcontrollers
AC ELECTRICAL CHARACTERISTICS
Low Noise Mode, Standard Temperature
TA= 0 °C to +70 °C
1 MHz4 MHz
NoSymbolParameter
1TPCInput Clock Period4.5V1000DC250DCns1
2TrC
TfC
3TwCInput Clock Width4.5V500125ns1
4.TwTinLTimer Input Low Width4.5V7070ns1
5TwTinHTimer Input High Width4.5V2.5TpC2.5TpC1
6TpTinTimer Input Period4.5V4TpC4TpC1
7TrTin,
TtTin
8TwIL
Low Time
9TwIH
High Time
10T wdtWatch-Dog Timer
Notes:
1. Timing Reference uses 0.7 V
2. Interrupt request through Port 3 (P33–P31).
Clock Input Rise
and Fall Times
Timer Input Rise
and Fall Time
Int. Request Input4.5V7070ns1,2
Int. Request Input4.5V2.5TpC2.5TpC1,2
Delay Time for Timeout
for a logic 1 and 0.2 VCC for a logic 0.
CC
V
CC
5.5V1000DC250DCns1
4.5V2525ns1
5.5V2525ns1
5.5V500125ns1
5.5V7070ns1
5.5V2.5TpC2.5TpC1
5.5V4TpC4TpC1
4.5V100100ns1
5.5V100100ns1
5.5V7070ns1,2
5.5V2.5TpC2.5TpC1,2
4.5V1212ms1
5.5V1212ms1
MinMaxMinMaxUnitsNotes
DS97Z8X1104P R E L I M I N A R Y17
Page 18
Z86E04/E08
CMOS Z8 OTP MicrocontrollersZilog
AC ELECTRICAL CHARACTERISTICS (Continued)
Low Noise Mode, Extended Temperature
TA= –40 °C to +105 °C
1 MHz4 MHz
NoSymbolParameter
1TPCInput Clock Period4.5V1000DC250DCns1
2TrC
TfC
Clock Input Rise
and Fall Times
3TwCInput Clock Width4.5V500125ns1
4.TwTinLTimer Input Low Width4.5V7070ns1
5TwTinHTimer Input High Width4.5V2.5TpC2.5TpC1
6TpTinTimer Input Period4.5V4TpC4TpC1
7TrTin,
TtTin
Timer Input Rise
and Fall Time
8TwILInt. Request Input
Low Time
9TwIHInt. Request Input
High Time
10T wdtWatch-Dog Timer
Delay Time for Timeout
Notes:
1. Timing Reference uses 0.7 V
2. Interrupt request through Port 3 (P33–P31).
for a logic 1 and 0.2 VCC for a logic 0.
CC
V
CC
MinMaxMinMaxUnitsNotes
5.5V1000DC250DCns1
4.5V2525ns1
5.5V2525ns1
5.5V500125ns1
5.5V7070ns1
5.5V2.5TpC2.5TpC1
5.5V4TpC4TpC1
4.5V100100ns1
5.5V100100ns1
4.5V7070ns1,2
5.5V7070ns1,2
4.5V2.5TpC2.5TpC1,2
5.5V2.5TpC2.5TpC1,2
4.5V1010ms1
5.5V1010ms1
18P R E L I M I N A R YDS97Z8X1104
Page 19
Z86E04/E08
1
ZilogCMOS Z8 OTP Microcontrollers
LOW NOISE VERSION
Low EMI Emission
The Z86E04/E08 can be programmed to operate in a Low
EMI Emission Mode by means of a mask ROM bit option.
Use of this feature results in:
■All pre-driver slew rates reduced to 10 ns typical.
■Internal SCLK/TCLK operation limited to a maximum of
4 MHz–250 ns cycle time.
PIN FUNCTIONS
OTP Programming Mode
D7–D0
EPROM through this data bus.
VCC
Mode and 6.4V during the other modes (Program, Program Verify, and so on).
CE
EPROM Read Mode, Program Mode, and Program Verify
Mode.
OE
Bus direction. When this pin is Low, the Data Bus is output.
When High, the Data Bus is input.
EPM
ent EPROM Program Modes by applying different
voltages.
Data Bus.
Power Supply.
Chip Enable
Output Enable
Data can be read from, or written to, the
It is typically 5V during EPROM Read
(active Low). This pin is active during
(active Low). This pin drives the Data
EPROM Program Mode.
This pin controls the differ-
■Output drivers have resistances of 500 Ohms (typical).
■Oscillator divide-by-two circuitry eliminated.
The Low EMI Mode is mask-programmable to be selected
by the customer at the time the ROM code is submitted.
Clock
Address Clock.
address counter increases by one with one clock cycle.
PGM
Program Mode
programs the data to the EPROM through the Data Bus.
This pin is a clock input. The internal
(active Low). A Low level at this pin
Application Precaution
The production test-mode environment may be enabled
accidentally during normal operation if
surges above VCC occur on the XTAL1 pin.
In addition, processor operation of Z8 OTP devices may be
affected by
OE pins while the microcontroller is in Standard Mode.
Recommendations for dampening voltage surges in both
test and OTP Mode include the following:
■Using a clamping diode to V
excessive noise
surges on the VPP, CE, EPM,
CC
excessive noise
.
V
Program Voltage.
PP
age.
Clear
Clear
(active High). This pin resets the internal ad-
dress counter at the High Level.
This pin supplies the program volt-
■Adding a capacitor to the affected pin.
Note: Programming the EPROM/Test Mode Disable
option will prevent accidental entry into EPROM Mode or
Test Mode.
DS97Z8X1104P R E L I M I N A R Y19
Page 20
Z86E04/E08
CMOS Z8 OTP MicrocontrollersZilog
PIN FUNCTIONS (Continued)
XTAL1, XTAL2
and output, respectively). These pins connect a parallelresonant crystal, LC, or an external single-phase clock
(8 MHz or 12 MHz max) to the on-chip clock oscillator and
buffer.
Port 0, P02–P00. Port 0 is a 3-bit bidirectional, Schmitttriggered CMOS-compatible I/O port. These three I/O lines
can be globally configured under software control to be inputs or outputs (Figure 7).
Crystal In, Crystal Out
(time-based input
Z8
Auto Latch. The Auto Latch puts valid CMOS levels on all
CMOS inputs (except P33, P32, P31) that are not externally driven. A valid CMOS level, rather than a floating node,
reduces excessive supply current flow in the input buffer.
On Power-up and Reset, the Auto Latch will set the ports
to an undetermined state of 0 or 1. Default condition is
Auto Latches enabled.
Port 0 (I/O)
OE
Out
In
1.5 2.3 Hysteresis
Figure 7. Port 0 Configuration
V @ 5.0V
CC
R 500 kΩ
PAD
Auto Latch Option
20P R E L I M I N A R YDS97Z8X1104
Page 21
Z86E04/E08
1
ZilogCMOS Z8 OTP Microcontrollers
Port 2, P27–P20. Port 2 is an 8-bit, bit programmable, bi-
directional, Schmitt-triggered CMOS-compatible I/O port.
These eight I/O lines can be configured under software
Z8
control to be inputs or outputs, independently. Bits programmed as outputs can be globally programmed as either push-pull or open-drain (Figure 8).
Port 2 (I/O)
Open-Drain
/OE
Out
In
1.5 2.3 Hysteresis
Figure 8. Port 2 Configuration
PAD
VCC @ 5.0V
Auto Latch Option
R 500 kΩ
DS97Z8X1104P R E L I M I N A R Y21
Page 22
Z86E04/E08
CMOS Z8 OTP MicrocontrollersZilog
PIN FUNCTIONS (Continued)
Port 3, P33–P31. Port 3 is a 3-bit, CMOS-compatible port
with three fixed input (P33–P31) lines. These three input
lines can be configured under software control as digital
Schmitt-trigger inputs or analog inputs.
Z86E04
and
Z8
Z86E08
R247 = P3M
0 = Digital
1 = Analog
D1
These three input lines are also used as the interrupt
sources IRQ0–IRQ3, and as the timer input signal TIN (Figure 9).
ZilogCMOS Z8 OTP Microcontrollers
Comparator Inputs. Two analog comparators are added
to input of Port 3, P31, and P32, for interface flexibility. The
comparators reference voltage P33 (REF) is common to
both comparators.
Typical applications for the on-board comparators; Zero
crossing detection, A/D conversion, voltage scaling, and
threshold detection. In Analog Mode, P33 input functions
serve as a reference voltage to the comparators.
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
into the Z8 devices to enhance the standard Z8 core architecture to provide the user with increased design flexibility.
INT OSCXTAL OSC
Mode. The common voltage range is 0–4 V when the V
CC
is 5.0V; the power supply and common mode rejection ratios are 90 dB and 60 dB, respectively.
Interrupts are generated on either edge of Comparator 2's
output, or on the falling edge of Comparator 1's output.
The comparator output is used for interrupt generation,
Port 3 data inputs, or TIN through P31. Alternatively, the
comparators can be disabled, freeing the reference input
(P33) for use as IRQ1 and/or P33 input.
RESET. This function is accomplished by means of a Power-On Reset or a Watch-Dog Timer Reset. Upon powerup, the Power-On Reset circuit waits for T
ms, plus 18
POR
clock cycles, then starts program execution at address
000C (Hex) (Figure 10). The Z8 control registers' reset value is shown in Table 3.
POR
(Cold Start)
Delay Line
TPOR msec
P27
(Stop Mode)
Figure 10. Internal Reset Configuration
Power-On Reset (POR). A timer circuit clocked by a ded-
icated on-board RC oscillator is used for a POR timer function. The POR time allows VCC and the oscillator circuit to
stabilize before instruction execution begins. The POR
timer circuit is a one-shot timer triggered by one of the four
following conditions:
■Power-bad to power-good status
■Stop-Mode Recovery
■WDT time-out
18 CLK
Reset Filiter
Chip Reset
Watch-Dog Timer Reset. The WDT is a retriggerable
one-shot timer that resets the Z8 if it reaches its terminal
count. The WDT is initially enabled by executing the WDT
instruction and is retriggered on subsequent execution of
the WDT instruction. The timer circuit is driven by an onboard RC oscillator.
■WDH time-out
DS97Z8X1104P R E L I M I N A R Y23
Page 24
Z86E04/E08
CMOS Z8 OTP MicrocontrollersZilog
FUNCTIONAL DESCRIPTION (Continued)
Table 3. Control Registers
Reset Condition
Addr.Reg.D7D6D5D4D3D2D1D0Comments
FFSPL00000000
FDRP00000000
FCFLAGSUUUUUUUU
FBIMR0UUUUUUU
FAIRQUU000000IRQ3 is used for positive edge
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.
24P R E L I M I N A R YDS97Z8X1104
Page 25
Z86E04/E08
1
ZilogCMOS Z8 OTP Microcontrollers
Program Memory. The Z86E04/E08 addresses up to
1K/2KB of Internal Program Memory (Figure 11). The first
12 bytes of program memory are reserved for the interrupt
vectors. These locations contain six 16-bit vectors that correspond to the six available interrupts. Bytes 0–1024/2048
are on-chip one-time programmable ROM.
Register File. The Register File consists of three I/O port
registers, 124 general-purpose registers, and 14 control
and status registers R0–R3, R4–R127 and R241–R255,
respectively (Figure 12). General-purpose registers occupy the 04H to 7FH address space. I/O ports are mapped
as per the existing CMOS Z8.
Location
255 (FFH)
254 (FE)
253 (FD)
252 (FC)
251 (FB)
250 (FA)
249 (F9)
248 (F8)
247 (F7)
246 (F6)
245 (F5)
244 (F4)
243 (F3)
242 (F2)
241 (F1H)
General-Purpose Register
Register Pointer
Program Control Flags
Interrupt Mask Register
Interrupt Request Register
Interrupt Priority Register
Ports 0-1 Mode
Port 3 Mode
Port 2 Mode
T0 Prescaler
Timer/Counter 0
T1 Prescaler
Timer/Counter 1
Timer Mode
Identifiers
SPLStack Pointer (Bits 7-0)
GPR
RP
FLAGS
IMR
IRQ
IPR
P01M
P3M
P2M
PRE0
T0
PRE1
T1
TMR
Figure 11. Program Memory Map
128
127 (7FH)
4
3
2
1
0 (00H)
Not Implemented
General-Purpose
Registers
Port 3
Port 2
Reserved
Port 0
Figure 12. Register File
P3
P2
P1
P0
DS97Z8X1104P R E L I M I N A R Y25
Page 26
Z86E04/E08
CMOS Z8 OTP MicrocontrollersZilog
FUNCTIONAL DESCRIPTION (Continued)
The Z8 instructions can access registers directly or indirectly through an 8-bit address field. This allows short 4-bit
register addressing using the Register Pointer.
In the 4-bit mode, the register file is divided into eight working register groups, each occupying 16 continuous locations. The Register Pointer (Figure 13) addresses the
starting location of the active working-register group.
r7 r6 r5 r4R253
The upper nibble of the register file address
provided by the register pointer specifies
the active working-register group.
FF
F0
7F
70
6F
60
5F
50
4F
40
3F
30
2F
20
1F
10
0F
00
*Expanded Register Group (0) is selected in this figure
by handling bits D3 to D0 as "0" in Register R253(RP).
Register Group F
Specified Working
Register Group
Register Group 1
Register Group 0
I/O Ports
r3 r2 r1 r0
(Register Pointer)
R15 to R0
The lower nibble
of the register
file address
provided by the
instruction points
to the specified
register.
R15 to R0
R15 to R4*
R3 to R0
Stack Pointer. The Z8 has an 8-bit Stack Pointer (R255)
used for the internal stack that resides within the 124 general-purpose registers.
General-Purpose Registers (GPR). These registers are
undefined after the device is powered up. The registers
keep their last value after any reset, as long as the reset
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.
Counter/Timer. There are two 8-bit programmable
counter/timers (T0 and T1), each driven by its own 6-bit
programmable prescaler. The T1 prescaler is driven by internal or external clock sources; however, the T0 can be
driven by the internal clock source only (Figure 14).
The 6-bit prescalers 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 both counter
and prescaler reach the end of count, a timer interrupt request IRQ4 (T0) or IRQ5 (T1) is generated.
The counter can be programmed to start, stop, restart to
continue, or restart from the initial value. The counters are
also 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 internal microprocessor clock divided by four, or an external signal input through Port 3. The Timer Mode register configures the
external timer input (P31) as an external clock, a trigger input that is retriggerable or non-retriggerable, or used as a
gate input for the internal clock.
Figure 13. Register Pointer
26P R E L I M I N A R YDS97Z8X1104
Page 27
Z86E04/E08
1
ZilogCMOS Z8 OTP Microcontrollers
Internal Data Bus
OSC
÷ 2
Clock
Logic
TIN P31
*
Internal Clock
External Clock
÷ 4
Internal Clock
Gated Clock
Triggered Clock
WriteWriteRead
PRE0
Initial Value
Register
6-Bit
÷ 4
WriteWriteRead
Down
Counter
6-Bit
Down
Counter
PRE1
Initial Value
Register
T0
Initial Value
Register
8-bit
Down
Counter
8-Bit
Down
Counter
T1
Initial Value
Register
T0
Current Value
Register
IRQ4
IRQ5
T1
Current Value
Register
* Note: By passed, if Low EMI Mode is selected.
Figure 14. Counter/Timers Block Diagram
Internal Data Bus
DS97Z8X1104P R E L I M I N A R Y27
Page 28
Z86E04/E08
CMOS Z8 OTP MicrocontrollersZilog
FUNCTIONAL DESCRIPTION (Continued)
Interrupts. The Z8 has six interrupts from six different
sources. These interrupts are maskable and prioritized
(Figure 15). The sources are divided as follows: the falling
edge of P31 (AN1), P32 (AN2), P33 (REF), the rising edge
of P32 (AN2), and two counter/timers. The Interrupt Mask
Register globally or individually enables or disables the six
interrupt requests (Table 4).
When more than one interrupt is pending, priorities are resolved by a programmable priority encoder that is controlled by the Interrupt Priority register. All Z8 interrupts are
vectored through locations in program memory. When an
Interrupt machine cycle is activated, an Interrupt Request
is granted. This disables all subsequent interrupts, saves
the Program Counter and Status Flags, and then branches
to the program memory vector location reserved for that interrupt. This memory location and the next byte contain the
16-bit starting 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 needs service.
Note: User must select any Z86E08 mode in Zilog's C12
ICEBOX™ emulator. The rising edge interrupt is not supported on the CCP emulator (a hardware/software
workaround must be employed).
F = Falling edge triggered
R = Rising edge triggered
Interrupt
Request
Global
Interrupt
Enable
IRQ0 - IRQ5
IRQ
IMR
6
IPR
PRIORITY
LOGIC
Vector Select
Figure 15. Interrupt Block Diagram
28P R E L I M I N A R YDS97Z8X1104
Page 29
Z86E04/E08
1
ZilogCMOS Z8 OTP Microcontrollers
Clock. The Z8 on-chip oscillator has a high-gain, parallel-
resonant amplifier for connection to a crystal, LC, RC, ceramic resonator, or any suitable external clock source
(XTAL1 = INPUT, XTAL2 = OUTPUT). The crystal should
be AT cut, up to 12 MHz max., with a series resistance
(RS) of less than or equal to 100 Ohms.
XTAL1
C1
*
XTAL2
C2
*
Ceramic Resonator or
Crystal
C1, C2 = 47 pF TYP *
F = 8 MHz
C1
*
C2
*
LC
XTAL1
L
XTAL2
The crystal should be connected across XTAL1 and
XTAL2 using the vendors crystal recommended capacitors
from each pin directly to device ground pin 14 (Figure 16).
Note that the crystal capacitor loads should be connected
to VSS, Pin 14 to reduce Ground noise injection.
A = STD Mode Frequency.
B = Low EMI Mode Frequency.
30P R E L I M I N A R YDS97Z8X1104
Page 31
Z86E04/E08
1
ZilogCMOS Z8 OTP Microcontrollers
HALT Mode. This instruction turns off the internal CPU
clock but not the crystal oscillation. The counter/timers and
external interrupts IRQ0, IRQ1, IRQ2 and IRQ3 remain active. The device is recovered by interrupts, either externally or internally generated. An interrupt request must be executed (enabled) to exit HALT Mode. After the interrupt
service routine, the program continues from the instruction
after the HALT.
Note: On the C12 ICEBOX, the IRQ3 does not wake the
device out of HALT Mode.
STOP Mode. This instruction turns off the internal clock
and external crystal oscillation and reduces the standby
current to 10 µA. The STOP Mode is released by a RESET
through a Stop-Mode Recovery (pin P27). A Low input
condition on P27 releases the STOP Mode. Program execution begins at location 000C(Hex). However, when P27
is used to release the STOP Mode, the I/O port Mode registers are not reconfigured to their default power-on conditions. This prevents any I/O, configured as output when the
STOP instruction was executed, from glitching to an unknown state. To use the P27 release approach with STOP
Mode, use the following instruction:
Watch-Dog Timer (WDT). The Watch-Dog Timer is enabled by instruction WDT. When the WDT is enabled, it
cannot be stopped by the instruction. With the WDT instruction, the WDT is refreshed when it is enabled within
every 1 Twdt period; otherwise, the controller resets itself,
The WDT instruction affects the flags accordingly; Z=1,
S=0, V=0.
WDT = 5F (Hex)
Opcode WDT (5FH). The first time Opcode 5FH is executed, the WDT is enabled and subsequent execution clears
the WDT counter. This must be done at least every T
otherwise, the WDT times out and generates a reset. The
generated reset is the same as a power-on reset of T
plus 18 XTAL clock cycles. The software enabled WDT
does not run in STOP Mode.
Opcode WDH (4FH). When this instruction is executed it
enables the WDT during HALT. If not, the WDT stops
when entering HALT. This instruction does not clear the
counters, it just makes it possible to have the WDT running
during HALT Mode. A WDH instruction executed without
executing WDT (5FH) has no effect.
WDT
POR
;
,
LDP2M, #1XXX XXXXB
NOP
STOP
X = Dependent on user's application.
Note: A low level detected on P27 pin will take the device
out of STOP Mode even if configured as an output.
In order to enter STOP or HALT Mode, it is necessary to
first flush the instruction pipeline to avoid suspending execution in mid-instruction. To do this, the user executes a
NOP (opcode=FFH) immediately before the appropriate
SLEEP instruction, such as:
FFNOP; clear the pipeline
6FSTOP; enter STOP Mode
or
FFNOP; clear the pipeline
7FHALT; enter HALT Mode
Permanent WDT. Selecting the hardware enabled Permanent WDT option, will automatically enable the WDT upon
exiting reset. The permanent WDT will always run in HALT
Mode and STOP Mode, and it cannot be disabled.
Auto Reset Voltage (VLV). The Z8 has an auto-reset built-
in. The auto-reset circuit resets the Z8 when it detects the
VCC below VLV.
Figure 17 shows the Auto Reset Voltage versus temperature. If the VCC drops below the VCC operating voltage
range, the Z8 will function down to the VLV unless the internal clock frequency is higher than the specified maximum
VLV frequency.
DS97Z8X1104P R E L I M I N A R Y31
Page 32
Z86E04/E08
CMOS Z8 OTP MicrocontrollersZilog
FUNCTIONAL DESCRIPTION (Continued)
Vcc
(Volts)
2.9
2.8
2.7
2.6
2.5
2.4
2.3
–40°C
–20°C0°C20°C
Figure 17. Typical Auto Reset Voltage
(VLV) vs. Temperature
40°C
60°C80°C
Temp
100°C
32P R E L I M I N A R YDS97Z8X1104
Page 33
Z86E04/E08
1
ZilogCMOS Z8 OTP Microcontrollers
Low EMI Emission
The Z8 can be programmed to operate in a low EMI Emission (Low Noise) Mode by means of an EPROM programmable bit option. Use of this feature results in:
■Less than 1 mA consumed during HALT Mode.
■All drivers slew rates reduced to 10 ns (typical).
■Internal SCLK/TCLK = XTAL operation limited to a
maximum of 4 MHz–250 ns cycle time.
■Output drivers have resistances of 500 ohms (typical).
■Oscillator divide-by-two circuitry eliminated.
In addition to VDD and GND (VSS), the Z8 changes all its pin
functions in the EPROM Mode. XTAL2 has no function,
XTAL1 functions as CE
tions as EPM, P33 functions as VPP, and P02 functions as
PGM.
, P31 functions as OE, P32 func-
ROM Protect. ROM Protect fully protects the Z8 ROM
code from being read externally. When ROM Protect is selected, the instructions LDC and LDCI are supported
(Z86E04/E08 and Z86C04/C08 do not support the instructions of LDE and LDEI). When the device is programmed
for ROM Protect, the Low Noise feature will not automatically be enabled.
Please note that when using the device in a noisy environment, it is suggested that the voltages on the EPM and CE
pins be clamped to VCC through a diode to VCC to prevent
accidentally entering the OTP Mode. The VPP requires
both a diode and a 100 pF capacitor.
Auto Latch Disable. Auto Latch Disable option bit when
programmed will globally disable all Auto Latches.
WDT Enable. The WDT Enable option bit, when programmed, will have the hardware enabled Permanent
WDT enabled after exiting reset and can not be stopped in
Halt or Stop Mode.
EPROM/Test Mode Disable. The EPROM/Test Mode
Disable option bit, when programmed, will disable the
EPROM Mode and the Factory Test Mode. Reading, verifying, and programming the Z8 will be disabled. To fully
verify that this mode is disabled, the device must be power
cycled.
Table 7. OTP Programming Table
Programming Modes
V
PP
EPMCEOEPGMADDRDATA
EPROM READNUV
PROGRAMV
PROGRAM VERIFYV
EPROM PROTECTV
LOW NOISE SELECTV
AUTO LATCH DISABLEV
WDT ENABLEV
EPROM/TEST MODEV
Notes:
1. V
=12.75V ± 0.25 VDC .
H
2. V
= As per specific Z8 DC specification.
IH
3. V
= As per specific Z8 DC specification.
IL
4. X = Not used, but must be set to V
5. NU = Not used, but must be set to either V
6. I
during programming = 40 mA maximum.
PP
7. I
during programming, verify, or read = 40 mA maximum.
CC
8. * V
has a tolerance of ±0.25V.
CC
H
H
H
H
H
H
H
or VIH level.
H
IH
H
V
IH
V
IH
V
H
V
IH
V
IH
V
IL
V
IL
or VIL level.
User Modes. Table 7 shows the programming voltage of
each mode.
V
IL
V
IL
V
IL
V
H
V
H
V
H
V
H
V
H
V
IL
V
IH
V
IL
V
IH
V
IH
V
IL
V
IH
V
IL
V
IH
V
IL
V
IH
V
IL
V
IL
V
IL
V
IL
V
IL
ADDROut5.0V
ADDRIn6.4V
ADDROut6.4V
NUNU6.4V
NUNU6.4V
NUNU6.4V
NUNU6.4V
NUNU6.4V
VCC*
DS97Z8X1104P R E L I M I N A R Y33
Page 34
Z86E04/E08
CMOS Z8 OTP MicrocontrollersZilog
FUNCTIONAL DESCRIPTION (Continued)
Internal Address Counter. The address of Z8 is generat-
ed internally with a counter clocked through pin P01
(Clock). Each clock signal increases the address by one
Programming Waveform. Figures 19, 20, 21 and 22
show the programming waveforms of each mode. Table 8
shows the timing of programming waveforms.
and the “high” level of pin P00 (Clear) will reset the address to zero. Figure 18 shows the setup time of the serial
address input.
Programming Algorithm. Figure 23 shows the flow chart
ZILOG, INC. MAKES NO WARRANTY, EXPRESS,
STATUTORY, IMPLIED OR BY DESCRIPTION,
REGARDING THE INFORMATION SET FORTH HEREIN
OR REGARDING THE FREEDOM OF THE DESCRIBED
DEVICES FROM INTELLECTUAL PROPERTY
INFRINGEMENT. ZILOG, INC. MAKES NO WARRANTY
OF MERCHANTABILITY OR FITNESS FOR ANY
PURPOSE.
44P R E L I M I N A R YDS97Z8X1104
Zilog, Inc. shall not be responsible for any errors that may
appear in this document. Zilog, Inc. makes no commitment
to update or keep current the information contained in this
document.
Zilog’s products are not authorized for use as critical
components in life support devices or systems unless a
specific written agreement pertaining to such intended use
is executed between the customer and Zilog prior to use.
Life support devices or systems are those which are
intended for surgical implantation into the body, or which
sustains life whose failure to perform, when properly used
in accordance with instructions for use provided in the
labeling, can be reasonably expected to result in
significant injury to the user.
Zilog, Inc. 210 East Hacienda Ave.
Campbell, CA 95008-6600
Telephone (408) 370-8000
FAX 408 370-8056
Internet: http://www.zilog.com
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.