Z86E30/E31/E40 1 Z8 4K OTP MICROCONTROLLER

Similar documents
Z86E30/E31/E40 1 Z8 4K OTP MICROCONTROLLER

CMOS Z8 OTP Microcontrollers

Z8 Low Voltage ROM MCUs with Infrared Timers

Z86CCP00ZEM 1 IN-CIRCUIT EMULATOR

3. The MC6802 MICROPROCESSOR

4-Megabit (512K x 8) 5-volt Only CMOS Flash Memory AT49F040 AT49F040T AT49F040/040T AT49F040/040T. Features. Description. Pin Configurations

DS1238A MicroManager PIN ASSIGNMENT PIN DESCRIPTION V BAT V CCO V CC

1-Megabit (128K x 8) 5-volt Only Flash Memory AT29C010A. Features. Description. Pin Configurations


CHIP ON BOARD (COB) MODULE 1 WITH 8-BIT MCU KEYBOARD CONTROLLER

DS1306. Serial Alarm Real Time Clock (RTC)

P3C1256 HIGH SPEED 32K x 8 3.3V STATIC CMOS RAM

DS1305EN. Serial Alarm Real-Time Clock

16COM / 40SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD

8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52

1-megabit (64K x 16) 5-volt Only Flash Memory AT49F1024A Features Description Pin Configurations

16COM / 80SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD

AT49BV004(T) TSOP Top View Type 1 1. AT49BV4096A(T) TSOP Top View Type 1 A16 BYTE GND I/O7 I/O14 I/O6 I/O13 I/O5 I/O12 I/O4 VCC I/O11 I/O3 I/O10 I/O2

DS1305EN. Serial Alarm Real-Time Clock

Am27C Megabit (256 K x 8-Bit) CMOS EPROM DISTINCTIVE CHARACTERISTICS GENERAL DESCRIPTION BLOCK DIAGRAM V CC V SS V PP

Am27C Kilobit (8 K x 8-Bit) CMOS EPROM DISTINCTIVE CHARACTERISTICS GENERAL DESCRIPTION BLOCK DIAGRAM V CC V SS V PP

INTEGRATED CIRCUITS. TPM749 Microcontroller with TrackPoint microcode from IBM. Product specification 1996 May 01 Data Handbook IC20

DS1305 Serial Alarm Real Time Clock (RTC)

FXL6408 Fully Configurable 8-Bit I 2 C-Controlled GPIO Expander

DS1302. Trickle Charge Timekeeping Chip FEATURES PIN ASSIGNMENT PIN DESCRIPTION

DatasheetArchive.com. Request For Quotation

12 Push-Pull Outputs and 4 Inputs

Z87010/Z87L10 2 AUDIO ENCODER/DECODERS

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an

and 8 Open-Drain I/Os

DP8571A Timer Clock Peripheral (TCP)

HT1621. RAM Mapping 32 4 LCD Controller for I/O µc. Features. General Description. Selection Table

DS1305. Serial Alarm Real Time Clock (RTC) FEATURES PIN ASSIGNMENT ORDERING INFORMATION

AT89S4D12. 8-Bit Microcontroller with 132K Bytes Flash Data Memory AT89S4D12. Features. Description. Pin Configurations

CAT22C Bit Nonvolatile CMOS Static RAM

DS2252T. Secure Microcontroller Module PACKAGE OUTLINE FEATURES

CAT28C17A 16K-Bit CMOS PARALLEL EEPROM

1-Megabit (128K x 8) Low Voltage Paged Parallel EEPROMs AT28LV010

I 2 C Port Expander with Eight Inputs. Features

Am27C Megabit (128 K x 16-Bit) CMOS EPROM DISTINCTIVE CHARACTERISTICS GENERAL DESCRIPTION BLOCK DIAGRAM V CC V SS V PP

80C51FA/83C51FA EVENT-CONTROL CHMOS SINGLE-CHIP 8-BIT MICROCONTROLLER Automotive

DS2405. Addressable Switch PIN ASSIGNMENT

+Denotes a lead(pb)-free/rohs-compliant package.

PART MAX5544CSA MAX5544ESA REF CS DIN SCLK. Maxim Integrated Products 1

MC68HC05J1A/D Rev. 1.0 HC 5 MC68HC05J1A MC68HCL05J1A MC68HSC05J1A. HCMOS Microcontroller Units TECHNICAL DATA


1 Megabit Serial Flash EEPROM SST45LF010

2-Megabit (256K x 8) 5-volt Only CMOS Flash Memory AT29C020. Features. Description. Pin Configurations

4-Megabit 2.7-volt Only Serial DataFlash AT45DB041. Features. Description. Pin Configurations

LC75808E, 75808W. 1/8 to 1/10 Duty LCD Display Drivers with Key Input Function

Description INPUT INTERFACING

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

Lecture (02) PIC16F84 (I)

256K x 18 Synchronous 3.3V Cache RAM

DS1814/DS1819 5V and 3.3V MicroMonitor

PI4IOE5V bit I 2 C-bus and SMBus low power I/O port with interrupt and reset


DS1673 Portable System Controller

DS1215. Phantom Time Chip FEATURES PIN ASSIGNMENT PIN DESCRIPTION

Dot Matrix LCD Controller Driver

ATF20V8B. High Performance Flash PLD. Features. Block Diagram. Pin Configurations

3.3 Volt, Byte Alterable E 2 PROM

I 2 C Serial EEPROM Family Data Sheet

DS1220AB/AD 16k Nonvolatile SRAM

PY291A DESCRIPTION. Windowed devices for reprogramming. EPROM Technology for reprogramming. Fully TTL Compatible Inputs and Outputs

DS1216B. SmartWatch/RAM 16K/64K FEATURES PIN ASSIGNMENT PIN DESCRIPTION

UNISONIC TECHNOLOGIES CO., LTD 6621 Preliminary LINEAR INTEGRATED CIRCUIT

DS1831C/D/E. 3.3V/2.5V Multisupply MicroMonitor

CAT28C K-Bit Parallel EEPROM

M68HC08 Microcontroller The MC68HC908GP32. General Description. MCU Block Diagram CPU08 1

DS1830/A Reset Sequence Pushbutton

Course Introduction. Content: 21 pages 4 questions. Learning Time: 35 minutes

DS1682 Total-Elapsed-Time Recorder with Alarm

Remote 16-bit I/O expander for Fm+ I 2 C-bus with interrupt and reset. Description

DS2401 Silicon Serial Number

Preliminary Data MOS IC. Type Ordering Code Package SDA Q67100-H5092 P-DIP-8-1

Features. Ordering Information. Selector Guide. Applications. Pin Configurations. I 2 C Port Expander with 8 Open-Drain I/Os

PART TOP VIEW ADDR2 ADDR3 ADDR4 SELECT S/H CONFIG V L DGND V SS AGND IN CH. Maxim Integrated Products 1

DS28CM00. I²C/SMBus Silicon Serial Number

SST 29EE V-only 1 Megabit Page Mode EEPROM

NS32FX211 Microprocessor Compatible Real Time Clock

PRODUCT OVERVIEW OVERVIEW DEVELOPMENT SUPPORT0 S MSUNG ELECTRONICS

Features. Description. Applications. Block Diagram PT7M3808. Fixed Voltage Diagram. Adjustable Voltage Diagram(PT7M3808G01)

Preliminary Data MOS IC. Type Ordering Code Package SDA Q67100-H5096 P-DIP-8-1


2-Bit Bidirectional Voltage-Level Translator with Auto Direction sensing and ±15kV ESD Protection UM3302H CSP UM3302Q QFN

24C08/24C16. Two-Wire Serial EEPROM. Preliminary datasheet 8K (1024 X 8)/16K (2048 X 8) General Description. Pin Configuration

OTP MATRIX 3-D MEMORY - 32PIN TSOP 16MB, 32MB, 64MB DATA SHEET DOCUMENT NUMBER: DS004 REVISION: 1.11 REVISION DATE:

DS1676 Total Elapsed Time Recorder, Erasable

MIC826. General Description. Features. Applications. Typical Application

DS1225Y 64k Nonvolatile SRAM

Pin diagram Common SignalS Architecture: Sub: 8086 HARDWARE

Am27C Megabit (131,072 x 8-Bit) CMOS EPROM DISTINCTIVE CHARACTERISTICS GENERAL DESCRIPTION BLOCK DIAGRAM

Pm39F010 / Pm39F020 / Pm39F040

16COM/40SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD

commodore semiconductor group NMOS 950 Rittenhouse Rd., Norristown, PA Tel.: 215/ TWX: 510/ (MEMORY, I/O, TIMER ARRAY)

TC9256APG, TC9256AFG, TC9257APG, TC9257AFG

Am27C020. Advanced Micro Devices. 2 Megabit (262,144 x 8-Bit) CMOS EPROM DISTINCTIVE CHARACTERISTICS GENERAL DESCRIPTION BLOCK DIAGRAM FINAL

DS Real Time Clock FEATURES PIN ASSIGNMENT PIN DESCRIPTION

DS1232 MicroMonitor Chip

Transcription:

PRELIMINARY PRODCT SPECIFICATION Z86E3/E3/E4 Z8 4K OTP MICROCONTROLLER FEATRES Device ROM (KB) Standard Temperature ( CC = to ) Extended Temperature ( CC = 4.5 to ) Available Packages: 28-Pin DIP/SOIC/PLCC OTP (Z86E3/3 only) 28-Pin DIP Window (Z86E3/3 only) 4-Pin DIP OTP/Window (Z86E4 only) 44-Pin PLCC/QFP OTP (Z86E4 only) 44-Pin PLCC Window (Z86E4 only) Software Enabled Watch-Dog Timer (WDT) Push-Pull/Open-Drain Programmable on Port, Port, and Port 2 24/32 Input/Output Lines Auto Latches RAM* (Bytes) I/O Lines Speed (MHz) Z86E3 4 237 24 6 Z86E3 2 25 24 6 Z86E4 4 236 32 6 Note: *General-Purpose Programmable OTP Optio: RC Oscillator EPROM Protect Auto Latch Disable Permanently Enabled WDT Crystal Oscillator Feedback Resistor Disable RAM Protect Low-Power Coumption: 6 mw Fast Itruction Pointer:.75 µs Two Standby Modes: STOP and HALT Digital Inputs CMOS Levels, Schmitt-Triggered Software Programmable Low EMI Mode Two Programmable 8-Bit Counter/Timers Each with a 6-Bit Programmable Prescaler Six ectored, Priority Interrupts from Six Different Sources Two Comparators On-Chip Oscillator that Accepts a Crystal, Ceramic Resonator, LC, RC, or External Clock Drive Auto Power-On Reset (POR) GENERAL DESCRIPTION The Z86E3/E3/E4 8-Bit One-Time Programmable (OTP) Microcontrollers are members of 's single-chip Z8 MC family featuring enhanced wake-up circuitry, programmable Watch-Dog Timers, Low Noise EMI optio, and easy hardware/software system expaion capability. Four basic address spaces support a wide range of memory configuratio. The designer has access to three additional control registers that allow easy access to register mapped peripheral and I/O circuits. For applicatio demanding powerful I/O capabilities, the Z86E3/E3 have 24 pi, and the Z86E4 has 32 pi of dedicated input and output. These lines are grouped into four ports, eight lines per port, and are configurable under software control to provide timing, status signals, and par- DS97Z8X5 P R E L I M I N A R Y

Z86E3/E3/E4 allel I/O with or without handshake, and address/data bus for interfacing external memory. Notes: All Signals with a preceding front slash, "/", are active Low, for example, B//W (WORD is active Low); /B/W (BYTE is active Low, only). Power connectio follow conventional descriptio below: Connection Circuit Device Power CC DD Ground GND SS (E4 Only) Output Input CC GND XTAL /AS /DS R//W /RESET Port 3 Counter/ Timers (2) AL Machine Timing & Itruction Control RESET WDT, POR Interrupt Control Two Analog Comparators FLAGS Register Pointer Register File OTP Program Counter Port 2 Port Port 4 4 8 I/O (Bit Programmable) Address or I/O (Nibble Programmable) Address/Data or I/O (Byte Programmable) (E4 Only) Figure. Z86E3/E3/E4 Functional Block Diagram 2 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 D7 - Z8 MC AD - AD - MSN Port 3 Address MX AD - EPROM D7 - Data MX Z8 Port TEST ROM OTP Optio D7 - Z8 Port 2 PGM + Test Mode Logic PP P33 EPM P32 /CE XT /PGM P3 /OE P3 Figure 2. EPROM Programming Block Diagram DS97Z8X5 P R E L I M I N A R Y 3

Z86E3/E3/E4 PIN IDENTIFICATION R//W P25 P26 P27 P4 P5 P6 P4 P5 P7 CC P6 P7 XTAL2 XTAL P3 P32 P33 P34 /AS 4-Pin DIP 4 2 2 /DS P24 P23 P22 P2 P2 P3 P3 P2 GND P2 P P P P P3 P36 P37 P35 /RESET Figure 3. 4-Pin DIP Pin Configuration* Standard Mode Table. 4-Pin DIP Pin Identification Standard Mode Pin # Symbol Function Direction R//W Read/Write Output 2-4 P25-P27 Port 2, Pi 5,6,7 In/Output 5-7 P4-P6 Port, Pi 4,5,6 In/Output 8-9 P4-P5 Port, Pi 4,5 In/Output P7 Port, Pin 7 In/Output CC Power Supply 2-3 P6-P7 Port, Pi 6,7 In/Output 4 XTAL2 Crystal Oscillator Output 5 XTAL Crystal Oscillator Input 6-8 P3-P33 Port 3, Pi,2,3 Input 9 P34 Port 3, Pin 4 Output 2 /AS Address Strobe Output 2 /RESET Reset Input 22 P35 Port 3, Pin 5 Output 23 P37 Port 3, Pin 7 Output 24 P36 Port 3, Pin 6 Output 25 P3 Port 3, Pin Input 26-27 P-P Port, Pi, In/Output 28-29 P-P Port, Pi, In/Output 3 P2 Port, Pin 2 In/Output 3 GND Ground 32-33 P2-P3 Port, Pi 2,3 In/Output 34 P3 Port, Pin 3 In/Output 35-39 P2-P24 Port 2, Pi In/Output,,2,3,4 4 /DS Data Strobe Output Notes: *Pin Configuration and Identification identical on DIP and Cerdip Window Lid style packages. 4 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 P2 P3 P3 P2 GND GND P2 P P P P P2 P22 P23 P24 /DS R//W P25 P26 P27 P4 6 7 7 8 44-Pin PLCC P3 P36 P37 P35 /RESET R//RL /AS P34 P33 P32 P3 P5 P6 P4 P5 P7 CC CC P6 P7 XTAL2 XTAL 4 39 29 28 Figure 4. 44-Pin PLCC Pin Configuration Standard Mode Table 2. 44-Pin PLCC Pin Identification Pin # Symbol Function Direction -2 GND Ground 3-4 P2-P3 Port, Pi 2,3 In/Output 5 P3 Port, Pin 3 In/Output 6- P2-P24 Port 2, Pi In/Output,,2,3,4 /DS Data Strobe Output 2 No Connection 3 R//W Read/Write Output 4-6 P25-P27 Port 2, Pi 5,6,7In/Output 7-9 P4-P6 Port, Pi 4,5,6In/Output 2-2 P4-P5 Port, Pi 4,5 In/Output 22 P7 Port, Pin 7 In/Output 23-24 CC Power Supply 25-26 P6-P7 Port, Pi 6,7 In/Output 27 XTAL2 Crystal Oscillator Output 28 XTAL Crystal Oscillator Input 29-3 P3-P33 Port 3, Pi,2,3Input 32 P34 Port 3, Pin 4 Output Table 2. 44-Pin PLCC Pin Identification Pin # Symbol Function Direction 33 /AS Address Strobe Output 34 R//RL ROM/ROMless Input select 35 /RESET Reset Input 36 P35 Port 3, Pin 5 Output 37 P37 Port 3, Pin 7 Output 38 P36 Port 3, Pin 6 Output 39 P3 Port 3, Pin Input 4-4 P-P Port, Pi, In/Output 42-43 P-P Port, Pi, In/Output 44 P2 Port, Pin 2 In/Output DS97Z8X5 P R E L I M I N A R Y 5

Z86E3/E3/E4 P2 P22 P23 P24 /DS R//W P25 P26 P27 P4 33 34 44 P3 P36 P37 P35 /RESET R//RL /AS P34 P33 P32 P3 P5 P6 P4 P5 P7 CC CC P6 P7 XTAL2 XTAL P2 P3 P3 P2 GND GND P2 P P P P 44-Pin QFP 23 22 2 Figure 5. 44-Pin QFP Pin Configuration Standard Mode Table 3. 44-Pin QFP Pin Identification Pin # Symbol Function Direction -2 P5-P6 Port, Pi 5,6 In/Output 3-4 P4-P5 Port, Pi 4,5 In/Output 5 P7 Port, Pin 7 In/Output 6-7 CC Power Supply 8-9 P6-P7 Port, Pi 6,7 In/Output XTAL2 Crystal Oscillator Output XTAL Crystal Oscillator Input 2-4 P3-P3 Port 3, Pi,2,3 Input 5 P34 Port 3, Pin 4 Output 6 /AS Address Strobe Output 7 R//RL ROM/ROMless select Input 8 /RESET Reset Input 9 P35 Port 3, Pin 5 Output 2 P37 Port 3, Pin 7 Output 2 P36 Port 3, Pin 6 Output 22 P3 Port 3, Pin Input 23-24 P-P Port, Pin, In/Output 25-26 P-P Port, Pi, In/Output Table 3. 44-Pin QFP Pin Identification Pin # Symbol Function Direction 27 P2 Port, Pin 2 In/Output 28-29 GND Ground 3-3 P2-P3 Port, Pi 2,3 In/Output 32 P3 Port, Pin 3 In/Output 33-37 P2-4 Port 2, Pi,,2,3,4 In/Output 38 /DS Data Strobe Output 39 No Connection 4 R//W Read/Write Output 4-43 P25-P27 Port 2, Pi 5,6,7 In/Output 44 P4 Port, Pin 4 In/Output 6 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 D5 D6 D7 A4 A5 A6 A7 CC /CE /OE EPM PP A8 4-Pin DIP 4 2 2 D4 D3 D2 D D A3 GND A2 A A /PGM A A A9 Figure 6. 4-Pin DIP Pin Configuration* EPROM Mode Table 4. 4-Pin DIP Package Pin Identification EPROM Mode Pin # Symbol Function Direction No Connection 2-4 D5-D7 Data 5,6,7 In/Output 5-7 A4-A6 Address 4,5,6 Input 8-9 No Connection A7 Address 7 Input CC Power Supply 2-4 No Connection 5 /CE Chip Select Input 6 /OE Output Enable Input 7 EPM EPROM Prog. Mode Input 8 PP Prog. oltage Input 9 A8 Address 8 Input 2-2 No Connection 22 A9 Address 9 Input 23 A Address Input 24 A Address Input 25 /PGM Prog. Mode Input 26-27 A-A Address, Input 28-29 No Connection 3 A2 Address 2 Input 3 GND Ground 32-33 No Connection 34 A3 Address 3 Input 35-39 D-D4 Data,,2,3,4 In/Output 4 No Connection Note: *Pin Configuration and Description identical on DIP and Cerdip Window Lid style packages. DS97Z8X5 P R E L I M I N A R Y 7

Z86E3/E3/E4 D D2 D3 D4 D5 D6 D7 A4 6 7 7 8 44 -Pin PLCC /PGM A A A9 A8 PP EPM /OE A5 A6 A7 CC CC /CE D A3 GND GND A2 A A 4 39 29 28 Figure 7. 44-Pin PLCC Pin Configuration EPROM Programming Mode Table 5. 44-Pin PLCC Pin Configuration EPROM Programming Mode Pin # Symbol Function Direction -2 GND Ground 3-4 No Connection 5 A3 Address 3 Input 6- D-D4 Data,,2,3,4 In/Output -3 No Connection 4-6 D5-D7 Data 5,6,7 In/Output 7-9 A4-A6 Address 4,5,6 Input 2-2 No Connection 22 A7 Address 7 Input 23-24 CC Power Supply 25-27 No Connection 28 /CE Chip Select Input 29 /OE Output Enable Input 3 EPM EPROM Prog. Mode Input Table 5. 44-Pin PLCC Pin Configuration EPROM Programming Mode Pin # Symbol Function Direction 3 PP Prog. oltage Input 32 A8 Address 8 Input 33-35 No Connection 36 A9 Address 9 Input 37 A Address Input 38 A Address Input 39 /PGM Prog. Mode Input 4-4 A,A Address, Input 42-43 No Connection 44 A2 Address 2 Input 8 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 D A3 GND GND A2 A A D D2 D3 D4 D5 D6 D7 A4 33 34 44 /PGM A A A9 A8 PP EPM /OE A5 A6 A7 CC CC /CE 44 -Pin QFP 23 22 2 Figure 8. 44-Pin QFP Pin Configuration EPROM Programming Mode Table 6. 44-Pin QFP Pin Identification EPROM Programming Mode Pin # Symbol Function Direction -2 A5-A6 Address 5,6 Input 3-4 No Connection 5 A7 Address 7 Input 6-7 CC Power Supply 8- No Connection /CE Chip Select Input 2 /OE Output Enable Input 3 EPM EPROM Prog. Input Mode 4 PP Prog. oltage Input 5 A8 Address 8 Input 6-8 No Connection 9 A9 Address 9 Input 2 A Address Input 2 A Address Input 22 /PGM Prog. Mode Input Table 6. 44-Pin QFP Pin Identification EPROM Programming Mode Pin # Symbol Function Direction 23-24 A,A Address, Input 25-26 No Connection 27 A2 Address 2 Input 28-29 GND Ground 3-3 No Connection 32 A3 Address 3 Input 33-37 D-D4 Data,,2,3,4 In/Output 38-4 No Connection 4-43 D5-D7 Data 5,6,7 In/Output 44 A4 Address 4 Input DS97Z8X5 P R E L I M I N A R Y 9

Z86E3/E3/E4 P25 P26 P27 P4 P5 P6 P7 CC XTAL2 XTAL P3 P32 P33 P34 28 28-Pin DIP 4 5 P24 P23 P22 P2 P2 P3 SS P2 P P P3 P36 P37 P35 D5 D6 D7 A4 A5 A6 A7 CC /CE /OE EPM PP A8 28 28-Pin DIP 4 5 D4 D3 D2 D D A3 SS A2 A A /PGM A A A9 Figure 9. Standard Mode 28-Pin DIP/SOIC Pin Configuration* Figure. EPROM Programming Mode 28-Pin DIP/SOIC Pin Configuration* Table 7. 28-Pin DIP/SOIC/PLCC Pin Identification* Pin # Symbol Function Direction -3 P25-P27 Port 2, Pi 5,6, In/Output 4-7 P4-P7 Port, Pi 4,5,6,7 In/Output 8 CC Power Supply 9 XTAL2 Crystal Oscillator Output XTAL Crystal Oscillator Input -3 P3-P33 Port 3, Pi,2,3 Input 4-5 P34-P35 Port 3, Pi 4,5 Output 6 P37 Port 3, Pin 7 Output 7 P36 Port 3, Pin 6 Output 8 P3 Port 3, Pin Input 9-2 P-P2 Port, Pi,,2 In/Output 22 SS Ground 23 P3 Port, Pin 3 In/Output 24-28 P2-P24 Port 2, Pi,,2,3,4 In/Output Notes: *Pin Identification and Configuration identical on DIP and Cerdip Window Lid style packages. XXX P5 XXX P6 XXX P7 CC XXX XXX XT2 XXX XT XXX P3 5 P4 P27 P26 P25 P24 P23 P22 4 2 28-Pin PLCC 26 25 9 8 Figure. Standard Mode 28-Pin PLCC Pin Configuration P32 P33 P34 P35 P37 P36 P3 XXX P2 XXX P2 XXX P3 XXX SS XXX P2 XXX P XXX P P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 XXX A5 XXX A6 XXX A7 CC XXX XXX XXX /CE XXX /OE 5 A4 D7 D6 D5 D4 D3 D2 4 2 28-Pin PLCC 26 25 9 8 Figure 2. EPROM Programming Mode 28-Pin PLCC Pin Configuration EPM PP A8 A9 A A /PGM XXX D XXX D XXX A3 XXX SS XXX A2 XXX A XXX A Table 8. 28-Pin EPROM Pin Identification* Pin # Symbol Function Direction -3 D5-D7 Data 5,6,7 In/Output 4-7 A4-A7 Address 4,5,6,7 Input 8 CC Power Supply 9 No connection /CE Chip Select Input /OE Output Enable Input 2 EPM EPROM Prog. Input Mode 3 PP Prog. oltage Input 4-5 A8-A9 Address 8,9 Input 6 A Address Input 7 A Address Input 8 /PGM Prog. Mode Input 9-2 A-A2 Address,,2 Input 22 SS Ground 23 A3 Address 3 Input 24-28 D-D4 Data,,2,3,4 In/Output Notes: *Pin Identification and Configuration identical on DIP and Cerdip Window Lid style packages. DS97Z8X5 P R E L I M I N A R Y

Z86E3/E3/E4 ABSOLTE MAXIMM RATINGS Parameter Min Max nits Ambient Temperature under Bias 4 +5 C Storage Temperature 65 +5 C oltage on any Pin with Respect to SS [Note ].6 +7 oltage on DD Pin with Respect to SS.3 +7 oltage on XTAL and /RESET Pi with Respect to SS [Note 2].6 DD + Total Power Dissipation.2 W Maximum Allowable Current out of SS 22 ma Maximum Allowable Current into DD 8 ma Maximum Allowable Current into an Input Pin [Note 3] 6 +6 µa Maximum Allowable Current into an Open-Drain Pin [Note 4] 6 +6 µa Maximum Allowable Output Current Sinked by Any I/O Pin 25 ma Maximum Allowable Output Current Sourced by Any I/O Pin 25 ma Maximum Allowable Output Current Sinkedd by /RESET Pin 3 ma Notes:. This applies to all pi except XTAL pi and where otherwise noted. 2. There is no input protection diode from pin to DD. 3. This excludes XTAL pi. 4. Device pin is not at an output Low state. Stresses greater than those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only; functional operation of the device at any condition above those indicated in the operational sectio of these specificatio is not implied. Exposure to absolute maximum rating conditio for an extended period may affect device reliability. Total power dissipation should not exceed.2 W for the package. Power dissipation is calculated as follows: Total Power Dissipation = DD x [ I DD (sum of I OH ) ] + sum of [ ( DD OH ) x I OH ] + sum of ( L x I L ) STANDARD TEST CONDITIONS The characteristics listed below apply for standard test conditio as noted. All voltages are referenced to Ground. Positive current flows into the referenced pin (Test Load). From Output nder Test 5 pf Figure 3. Test Load Diagram 2 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 CAPACITAE T A = 25 C, CC = GND =, f =. MHz; unmeasured pi returned to GND. Parameter Min Max Input capacitance 2 pf Output capacitance 2 pf I/O capacitance 2 pf DC ELECTRICAL CHARACTERISTICS CH CL Sym Parameter Clock Input High oltage Clock Input Low oltage T A = C to +7 C CC Note [3] Min Max 4.5 IH Input High oltage IL Input Low oltage OH Output High oltage Low EMI Mode OH Output High oltage OL Output Low oltage Low EMI Mode 4.5 OL Output Low oltage 4.5 OL2 Output Low oltage 4.5 RH RL OLR OFFSET ICR Reset Input High oltage Reset Input Low oltage Reset Output Low oltage Comparator Input Offset oltage Input Common Mode oltage Range 4.5 I IL Input Leakage 4.5 I OL Output Leakage 4.5 I IR Reset Input Current 4.5.7 CC CC +.3.7 CC CC +.3 GND-.3 GND-.3.7 CC CC +.3.7 CC CC +.3 GND-.3 GND-.3 CC.4 CC -.4 CC.4 CC.4 Typical @ 25 C nits Conditio Notes.8 2.5.2 CC.9.2 CC.5 2.5 2.5.2 CC.5.2 CC.5.4.4.4.4.2.2 3.3 4.8 3.3 4.8.2.2...5.5.8 CC CC.7.8 CC CC 2. GND.3 GND.3-2 2.2 CC.3.2 CC.7.6.6 25 25 CC -. CC -. 2 2 2 2 3 8.3.2.32.32.32.32 65 2 m m µa µa µa µa µa µa Driven by External Clock Generator Driven by External Clock Generator I OH =.5 ma I OH = -2. ma I OH = -2. ma I OL =. ma I OL =. ma I OL = + 4. ma I OL = + 4. ma I OL = + 2 ma I OL = + 2 ma I OL =. ma I OL =. ma IN =, CC IN =, CC IN =, CC IN =, CC 8 8 8 8 3 DS97Z8X5 P R E L I M I N A R Y 3

Z86E3/E3/E4 I CC Supply Current I CC Standby Current Halt Mode I CC2 I ALL I ALH Sym Parameter Standby Current Stop Mode Auto Latch Low Current Auto Latch High Current T A = C to +7 C CC Note [3] Min Max.7.4.6 2 25 8 8 7. 7. 8 8 8 5 5 8 7 2 3.7 3.7 2.9 2.9 2 3 6 6 2.4 4.7.8 3.8 ma ma ma ma ma ma µa µa µa µa µa µa µa µa @ 6 MHz @ 6 MHz IN =, CC @ 6 MHz Clock Divide by 6 @ 6 MHz IN =, CC IN =, CC IN =, CC IN =, CC < IN < CC 9 < IN < CC 9 4,5 4,5 4,5 4,5 4,5 4,5 6, 6, 6,,4 6,,4 < IN < CC 9 < IN < CC 9 T POR Power On Reset 3. 2. 24 3 7 4 ms ms L Auto Reset oltage 2.3 3. 2.9,7 Notes:. Device does not function down to the Auto Reset voltage 2. GND= 3. The CC voltage specification of guarantees 5. ±.5 and the CC voltage specification of guarantees only. 4. All outputs unloaded, I/O pi floating, inputs at rail. 5. CL= CL2 = 22 pf 6. Same as note [4] except inputs at CC 7. Max. temperature is 7 C 8. STD Mode (not Low EMI Mode) 9. Auto Latch (mask option) selected. For analog comparator inputs when analog comparators are enabled. Clock must be forced Low, when XTAL is clock driven and XTAL2 is floating 2. Typicals are at CC = 5. and CC = 3. Z86C4 only 4. WDT running Typical @ 25 C nits Conditio Notes 4 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 CH CL Sym Parameter Clock Input High oltage Clock Input Low oltage T A = 4 C to +5 C CC Note [3] Min Max 4.5 4.5 IH Input High oltage 4.5 IL Input Low oltage 4.5 OH Output High oltage Low EMI Mode 4.5 OH Output High oltage 4.5 4.5 OL Output Low oltage Low EMI Mode 4.5 OL Output Low oltage 4.5 OL2 Output Low oltage 4.5 RH Reset Input High oltage OLR Reset Output Low oltage OFFSET Comparator Input Offset oltage ICR Input Common Mode oltage Range 4.5 4.5 I IL Input Leakage 4.5 I OL Output Leakage 4.5 I IR Reset Input Current 4.5 I CC Supply Current 4.5 I CC Standby Current 4.5 Halt Mode I CC2 I ALL Standby Current (Stop Mode) Auto Latch Low Current 4.5 4.5.7 CC CC +.3.7 CC CC +.3 GND-.3 GND-.3.7 CC CC +.3.7 CC CC +.3 GND-.3 GND-.3 CC.4 CC.4 CC.4 CC.4 Typical @ 25 C nits Conditio Notes 2.5 2.5.2 CC.5.2 CC.5 2.5 2.5.2 CC.5.2 CC.5.4.4.4.4.2.2 4.8 4.8 4.8 4.8.2.2...5.5.8 CC CC.7.8 CC CC 2. 8 8.4.4.6.6 25 25 CC -.5 CC -.5 2 2 2 2 8 8 25 25 8 8 2 2.3.2 < < < < 2 2 2 2 3.7 3.7 2 3 4.7 4.7 m m µa µa µa µa µa µa ma ma ma ma µa µa µa µa Driven by External Clock Generator Driven by External Clock Generator I OH =.5 ma I OH =.5 ma I OH = -2. ma I OH = -2. ma I OL =. ma I OL =. ma I OL = + 4. ma I OL = +4. ma I OL = + 2 ma I OL = + 2 ma I OL =. ma I OL =. ma IN =, CC IN =, CC IN =, CC IN =, CC 8 8 8 8 8 8 8 8 3 3 3 3 @ 6 MHz 4,5 @ 6 MHz 4,5 IN =, CC 4,5 @ 6 MHz IN =, CC 4,5 @ 6 MHz IN =, CC 6,,4 IN =, CC 6,,4 < IN < CC 9 < IN < CC 9 DS97Z8X5 P R E L I M I N A R Y 5

Z86E3/E3/E4 I ALH Sym Parameter Auto Latch High Current 4.5 T A = 4 C to +5 C CC Note [3] Min Max.. Typical @ 25 C nits Conditio Notes 3.8 3.8 µa µa < IN < CC 9 < IN < CC 9 T POR Power On Reset 4.5 2. 4 4 ms 2. 4 4 ms L Auto Reset oltage 2. 3.3 2.9. Device does not function down to the Auto Reset voltage 2. GND= 3. The CC voltage spec. of guarantees 5. +/- ±.5 4. All outputs unloaded, I/O pi floating, inputs at rail 5. CL= CL2 = 22 pf 6. Same as note [4] except inputs at CC 7. Max. temperature is 7 C 8. STD Mode (not Low EMI Mode) 9. Auto Latch (mask option) selected. For analog comparator inputs when analog comparators are enabled. Clock must be forced Low, when XTAL is clock driven and XTAL2 is floating 2. Typicals are at CC = 5. 3. Z86C4 only 4. WDT is not running 6 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 R//W, /DM Port 2 3 9 6 8 3 2 Port A7 - A D7 - D IN 2 9 /AS 8 4 5 6 /DS (Read) 7 Port A7 - A D7 - D OT 4 5 7 /DS (W rite) Figure 4. External I/O or Memory Read/Write Timing Z86C4 Only DS97Z8X5 P R E L I M I N A R Y 7

Z86E3/E3/E4 No Symbol Parameter TdA(AS) Address alid to /AS Rise Delay 2 TdAS(A) /AS Rise to Address Float Delay 3 TdAS(DR) /AS Rise to Read Data Req d alid 4 TwAS /AS Low Width 5 TdAS(DS) Address Float to /DS Fall 6 TwDSR /DS (Read) Low Width 7 TwDSW /DS (Write) Low Width 8 TdDSR(DR) /DS Fall to Read Data Req d alid 9 ThDR(DS) Read Data to /DS Rise Hold Time TdDS(A) /DS Rise to Address Active Delay TdDS(AS) /DS Rise to /AS Fall Delay 2 TdR/W(AS) R//W alid to /AS Rise Delay 3 TdDS(R/W) /DS Rise to R//W Not alid 4 TdDW(DSW) Write Data alid to /DS Fall (Write) Delay 5 TdDS(DW) /DS Rise to Write Data Not alid Delay 6 TdA(DR) Address alid to Read Data Req d alid 7 TdAS(DS) /AS Rise to /DS Fall Delay 8 TdDM(AS) /DM alid to /AS Fall Delay 2 ThDS(AS) /DS alid to Address alid Hold Time T A = C to 7 C 6 MHz Note [3] CC Min Max nits Notes Notes:. When using extended memory timing add 2 TpC 2. Timing numbers given are for minimum TpC 3. The CC voltage specification of guarantees 5. +/- ±.5 and the CC voltage specification of guarantees only Standard Test Load All timing references use.7 CC for a logic and.2 CC for a logic For Standard Mode (not Low-EMI Mode for outputs) with SMR D =, D = 25 25 35 35 4 4 35 35 8 8 5 5 35 35 25 25 35 35 55 55 35 35 45 45 3 3 35 35 8 8 75 75 25 25 23 23 2 2,2 2,2,2,2 2 2 2 2 2 2 2,2 2 2 8 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 T A = -4 C to 5 C 6 MHz Note [3] No Symbol Parameter CC Min Max nits Notes TdA(AS) Address alid to /AS Rise 4.5 25 2 Delay 25 2 TdAS(A) /AS Rise to Address Float 4.5 35 2 Delay 35 3 TdAS(DR) /AS Rise to Read Data 4.5 8,2 Req d alid 8 4 TwAS /AS Low Width 4.5 4 2 4 5 TdAS(DS) Address Float to /DS Fall 4.5 6 TwDSR /DS (Read) Low Width 4.5 35,2 35 7 TwDSW /DS (Write) Low Width 4.5 8,2 8 8 TdDSR(DR) /DS Fall to Read Data Req d 4.5 75,2 alid 75 9 ThDR(DS) Read Data to /DS Rise Hold 4.5 2 Time TdDS(A) /DS Rise to Address Active 4.5 5 2 Delay 5 TdDS(AS) /DS Rise to /AS Fall Delay 4.5 35 2 35 2 TdR/W(AS) R//W alid to /AS Rise 4.5 25 2 Delay 25 3 TdDS(R/W) /DS Rise to R//W Not alid 4.5 35 2 35 4 TdDW(DSW) Write Data alid to /DS Fall 4.5 55 25 2 (Write) Delay 55 25 5 TdDS(DW) /DS Rise to Write Data Not 4.5 35 2 alid Delay 35 6 TdA(DR) Address alid to Read Data 4.5 23,2 Req d alid 23 7 TdAS(DS) /AS Rise to /DS Fall Delay 4.5 45 2 45 8 TdDM(AS) /DM alid to /AS Fall Delay 4.5 3 3 2 2 ThDS(AS) /DS alid to Address alid Hold Time 4.5 Notes:. When using extended memory timing add 2 TpC 2. Timing numbers given are for minimum TpC 3. The CC voltage specification of guarantees 5. +/-.5 and the CC voltage specification of guarantees only Standard Test Load All timing references use.7 CC for a logic and.2 CC for a logic For Standard Mode (not Low-EMI Mode for outputs) with SMR D =, D = 35 35 DS97Z8X5 P R E L I M I N A R Y 9

Z86E3/E3/E4 3 Clock 2 2 3 7 7 TIN 4 5 6 IRQN 8 9 Clock Setup Stop Mode Recovery Source Figure 5. Additional Timing Diagram 2 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 Additional Timing Table (Divide-By-One Mode) T A = C to +7 C T A = -4 C to +5 C 4 MHz 4 MHz No Symbol Parameter TpC Input Clock Period 2 TrC,TfC Clock Input Rise & Fall Times 3 TwC Input Clock Width 4 TwTinL Timer Input Low Width 5 TwTinH Timer Input High Width 6 TpTin Timer Input Period 7 TrTin, TfTin Timer Input Rise & Fall Timer 8A TwIL Int. Request Low Time 8B TwIL Int. Request Low Time 9 TwIH Int. Request Input High Time Twsm STOP Mode Recovery Width Spec Tost Oscillator Startup Time CC Note [6] Min Max Min Max nits Notes 25 25 7 5TpC 5TpC 8TpC 8TpC 7 5TpC 5TpC 5TpC 5TpC 2 2 Notes:. Timing Reference uses.7 CC for a logic and.2 CC for a logic. 2. Interrupt request via Port 3 (P3-P33). 3. Interrupt request via Port 3 (P3). 4. SMR-D5 =, POR STOP Mode Delay is on. 5. Reg. WDTMR. 6. The CC voltage specification of guarantees 5. ±+/-.5 and the CC voltage specification of guarantees only. 7. SMR D =. 8. Maximum frequency for internal system clock is 4 MHz when using XTAL divide-by-one mode. 9. For RC and LC oscillator, and for oscillator driven by clock driver. DC DC 25 25 5TpC 5TpC 25 25 7 5TpC 5TpC 8TpC 8TpC 7 5TpC 5TpC 5TpC 5TpC 2 2 DC DC 25 25,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,2,7,8,2,7,8,3,7,8,3,7,8,2,7,8,2,7,8 4,8 4,8 5TpC 4,8,9 DS97Z8X5 P R E L I M I N A R Y 2

Z86E3/E3/E4 Handshake Timing Diagrams Data In Data In alid Next Data In alid 2 /DA (Input) 3 Delayed DA 4 5 6 RDY (Output) Delayed RDY Figure 6. Input Handshake Timing Data Out Data Out alid Next Data Out alid 7 /DA (Output) Delayed DA 8 9 RDY (Input) Delayed RDY Figure 7. Output Handshake Timing 22 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 Additional Timing Table T A = -4 C to +5 C 6 MHz No Symbol Parameter CC Note [6] Min Max nits Conditio Notes TpC Input Clock Period 62.5 62.5 DC DC,7,8,7,8 2 TrC,TfC Clock Input Rise & Fall Times 5 5,7,8,7,8 3 TwC Input Clock Width 3 3,7,8,7,8 4 TwTinL Timer Input Low Width 7 7,7,8,7,8 5 TwTinH Timer Input High Width 5TpC 5TpC,7,8,7,8 6 TpTin Timer Input Period 8TpC 8TpC [,7,8,7,8 7 TrTin, TfTin Timer Input Rise & Fall Timer,7,8,7,8 8A TwIL Int. Request Low Time 7 7,2,7,8,2,7,8 8B TwIL Int. Request Low Time 5TpC 5TpC,3,7,8,3,7,8 9 TwIH Int. Request Input High Time 5TpC,2,7,8 Twsm STOP Mode Recovery Width Spec Tost Oscillator Startup Time 2 Twdt Watch-Dog Timer Delay Time Before Timeout 2 2 5 2 4 2 6 8 Notes:. Timing Reference uses.7 CC for a logic and.2 CC for a logic 2. Interrupt request via Port 3 (P3-P33) 3. Interrupt request via Port 3 (P3) 4. SMR-D5 =, POR STOP Mode Delay is on 5. Reg. WDTMR 6. The CC voltage spec. of guarantees 5. +/- ±.5 7. SMR D = 8. Maximum frequency for internal system clock is 4 MHz when using XTAL divide-by-one mode. 9. For RC and LC oscillator, and for oscillator driven by clock driver.. Standard Mode (not Low EMI output ports). sing internal RC 5TpC 5TpC ms ms ms ms ms ms ms ms D = D = D = D = D = D = D = D = 4,8 4,8 4,8 4,8 5, 5, 5, 5, 5, 5, 5, 5, DS97Z8X5 P R E L I M I N A R Y 23

Z86E3/E3/E4 PIN FTIONS EPROM Programming Mode D7-D Data Bus. The data can be read from or written to external memory through the data bus. A-A Address Bus. During programming, the EPROM address is written to the address bus. CC Power Supply. This pin must supply 5 during the EPROM read mode and 6 during other modes. /CE Chip Enable (active Low). This pin is active during EPROM Read Mode, Program Mode, and Program erify Mode. /OE Output Enable (active Low). This pin drives the direction of the Data Bus. When this pin is Low, the Data Bus is output, when High, the Data Bus is input. EPM EPROM Program Mode. This pin controls the different EPROM Program Mode by applying different voltages. PP Program oltage. This pin supplies the program voltage. /PGM Program Mode (active Low). When this pin is Low, the data is programmed to the EPROM through the Data Bus. Application Precaution The production test-mode environment may be enabled accidentally during normal operation if excessive noise surges above CC occur on pi XTAL and /RESET. In addition, processor operation of Z8 OTP devices may be affected by excessive noise surges on the PP, /CE, /EPM, /OE pi while the microcontroller is in Standard Mode. Recommendatio for dampening voltage surges in both test and OTP mode include the following: R//W Read/Write (output, write Low). The R//W signal is Low when the CCP is writing to the external program or data memory (Z86E4 only). /RESET Reset (input, active Low). Reset will initialize the MC. Reset is accomplished either through Power-On, Watch-Dog Timer reset, STOP-Mode Recovery, or external reset. During Power-On Reset and Watch-Dog Timer Reset, the internally generated reset drives the reset pin low for the POR time. Any devices driving the reset line must be open-drain in order to avoid damage from a possible conflict during reset conditio. Pull-up is provided internally. After the POR time, /RESET is a Schmitt-triggered input. To avoid asynchronous and noisy reset problems, the Z86E4 is equipped with a reset filter of four external clocks (4TpC). If the external reset signal is less than 4TpC in duration, no reset occurs. On the fifth clock after the reset is detected, an internal RST signal is latched and held for an internal register count of 8 external clocks, or for the duration of the external reset, whichever is longer. During the reset cycle, /DS is held active Low while /AS cycles at a rate of TpC/2. Program execution begi at location CH, 5- TpC cycles after /RESET is released. For Power-On Reset, the reset output time is 5 ms. The Z86E4 does not reset WDTMR, SMR, P2M, and P3M registers on a STOP-Mode Recovery operation. /ROMless (input, active Low). This pin, when connected to GND, disables the internal ROM and forces the device to function as a Z86C9/C89 ROMless Z8. (Note that, when left unconnected or pulled High to CC, the device functio normally as a Z8 ROM version). Note: When using in ROM Mode in High EMI (noisy) environment, the ROMless pi should be connected directly to CC. sing a clamping diode to CC Adding a capacitor to the affected pin Standard Mode XTAL Crystal (time-based input). This pin connects a parallel-resonant crystal, ceramic resonator, LC, RC network, or external single-phase clock to the on-chip oscillator input. XTAL2 Crystal 2 (time-based output). This pin connects a parallel-resonant crystal, ceramic resonator, LC, or RC network to the on-chip oscillator output. 24 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 Port (P7-P). Port is an 8-bit, bidirectional, CMOScompatible I/O port. These eight I/O lines can be configured under software control as a nibble I/O port, or as an address port for interfacing external memory. The input buffers are Schmitt-triggered and nibble programmed. Either nibble output that can be globally programmed as push-pull or open-drain. Low EMI output buffers can be globally programmed by the software. Port can be placed under handshake control. In Handshake Mode, Port 3 lines P32 and P35 are used as handshake control lines. The handshake direction is determined by the configuration (input or output) assigned to Port 's upper nibble. The lower nibble must have the same direction as the upper nibble. For external memory references, Port provides address bits A-A8 (lower nibble) or A5-A8 (lower and upper nibble) depending on the required address space. If the address range requires 2 bits or less, the upper nibble of Port can be programmed independently as I/O while the lower nibble is used for addressing. If one or both nibbles are needed for I/O operation, they must be configured by writing to the Port mode register. In ROMless mode, after a hardware reset, Port is configured as address lines A5-A8, and extended timing is set to accommodate slow memory access. The initialization routine can include reconfiguration to eliminate this extended timing mode. In ROM mode, Port is defined as input after reset. Port can be set in the High-Impedance Mode if selected as an address output state, along with Port and the control signals /AS, /DS, and R//W (Figure 8). DS97Z8X5 P R E L I M I N A R Y 25

Z86E3/E3/E4 4 Port (I/O) 4 Handshake Controls /DA and RDY (P32 and P35) Open-Drain OEN PAD Out.5 2.3 Hysteresis In Auto Latch R 5 kω Figure 8. Port Configuration 26 P R E L I M I N A R Y DS97Z8X5

Port (P7-P). Port is an 8-bit, bidirectional, CMOScompatible port with multiplexed Address (A7-A) and Data (D7-D) ports. These eight I/O lines can be programmed as inputs or outputs or can be configured under software control as an Address/Data port for interfacing external memory. The input buffers are Schmitt-triggered and the output buffers can be globally programmed as either push-pull or open-drain. Low EMI output buffers can be globally programmed by the software. Port can be placed under handshake control. In this configuration, Port 3, lines P33 and P34 are used as the handshake controls Z86E3/E3/E4 RDY and /DA (Ready and Data Available). To interface external memory, Port must be programmed for the multiplexed Address/Data mode. If more than 256 external locatio are required, Port outputs the additional lines (Figure 9). Port can be placed in the high-impedance state along with Port, /AS, /DS, and R//W, allowing the Z86E4 to share common resources in multiprocessor and DMA applicatio. MC Port 2 (I/O) Handshake Controls /DA and RDY (P33 and P34) Open-Drain OEN PAD Out In.5 2.3 Hysteresis Auto Latch R 5 kω Figure 9. Port Configuration (Z86E4 Only) DS97Z8X5 P R E L I M I N A R Y 27

Z86E3/E3/E4 Port 2 (P27-P2). Port 2 is an 8-bit, bidirectional, CMOScompatible I/O port. These eight I/O lines can be configured under software control as an input or output, independently. All input buffers are Schmitt-triggered. Bits programmed as outputs can be globally programmed as either push-pull or open-drain. Low EMI output buffers can be globally programmed by the software. When used as an I/O port, Port 2 can be placed under handshake control. In Handshake Mode, Port 3 lines P3 and P36 are used as handshake control lines. The handshake direction is determined by the configuration (input or output) assigned to bit 7 of Port 2 (Figure 2). Z86E4 MC Port 2 (I/O) Handshake Controls /DA2 and RDY2 (P3 and P36) Open-Drain OEN PAD Out TTL Level Shifter In Auto Latch R 5 KΩ Figure 2. Port 2 Configuration 28 P R E L I M I N A R Y DS97Z8X5

Port 3 (P37-P3). Port 3 is an 8-bit, CMOS-compatible port with four fixed inputs (P33-P3) and four fixed outputs (P37-P34). These eight lines can be configured by software for interrupt and handshake control functio. Port 3, Pin is Schmitt- triggered. P3, P32 and P33 are standard CMOS inputs with single trip point (no Auto Latches) and P34, P35, P36 and P37 are push-pull output lines. Low EMI output buffers can be globally programmed by the software. Two on-board comparators can process analog signals on P3 and P32 with reference to the voltage on P33. The analog function is enabled by setting the D of Port 3 Mode Register (P3M). The comparator output can be outputted from P34 and P37, respectively, by setting PCON register Bit D to state. For the interrupt function, P3 and P33 are falling edge triggered interrupt inputs. P3 and P32 can be programmed as falling, rising or both edges triggered interrupt inputs (Figure 2). Access to Counter/Timer is made through P3 (T IN ) and P36 (T OT ). Handshake lines for Port, Port, and Port 2 are also available on Port 3 (Table 9). Z86E3/E3/E4 Note: P33-P3 differs from the Z86C3/C3/C4 in that there is no clamping diode to CC due to the EPROM highvoltage circuits. Exceeding the IH maximum specification during standard operating mode may cause the device to enter EPROM mode. DS97Z8X5 P R E L I M I N A R Y 29

Z86E3/E3/E4 Z86E4 MC Port 3 (I/O or Control) Auto Latch P3 R247 = P3M R 5 KΩ D = Analog = Digital P3 Data Latch IRQ3 P3 (AN) DIG. IRQ2, Tin, P3 Data Latch + - AN. P32 (AN2) IRQ, P32 Data Latch P33 (REF) + - From Stop Mode Recovery Source IRQ, P33 Data Latch Figure 2. Port 3 Configuration 3 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 Table 9. Port 3 Pin Assignments Pin I/O CTC Analog Interrupt P HS P HS P2 HS Ext P3 IN IRQ3 P3 IN T IN AN IRQ2 D/R P32 IN AN2 IRQ D/R P33 IN REF IRQ D/R P34 OT AN-Out R/D /DM P35 OT R/D P36 OT T OT R/D P37 OT An2-Out Comparator Inputs. Port 3, P3, and P32, each have a comparator front end. The comparator reference voltage P33 is common to both comparators. In analog mode, P3 and P32 are the positive input of the comparators and P33 is the reference voltage of the comparators. Auto Latch. The Auto Latch puts valid CMOS levels on all CMOS inputs (except P33-P3) that are not externally driven. Whether this level is or, cannot be determined. A valid CMOS level, rather than a floating node, reduces excessive supply current flow in the input buffer. Auto Latches are available on Port, Port 2, and P3. There are no Auto Latches on P3, P32, and P33. Low EMI Emission. The Z86E4 can be programmed to operate in a low EMI Emission Mode in the PCON register. The oscillator and all I/O ports can be programmed as low EMI emission mode independently. se of this feature results in: The pre-drivers slew rate reduced to typical. Low EMI output drivers have resistance of 2 Ohms (typical). Low EMI Oscillator. Internal SCLK/TCLK= XTAL operation limited to a maximum of 4 MHz - 25 cycle time, when Low EMI Oscillator is selected and system clock (SCLK = XTAL, SMR Reg. Bit D =). Note for emulation only: Do not set the emulator to emulate Port in low EMI mode. Port must always be configured in Standard Mode. DS97Z8X5 P R E L I M I N A R Y 3

Z86E3/E3/E4 FTIONAL DESCRIPTION The MC incorporates the following special functio to enhance the standard Z8 architecture to provide the user with increased design flexibility. RESET. The device is reset in one of three ways:. Power-On Reset 2. Watch-Dog Timer 3. STOP-Mode Recovery Source Note: Having the Auto Power-on Reset circuitry built-in, the MC does not need to be connected to an external power-on reset circuit. The reset time is 5 ms (typical). The MC does not re-initialize WDTMR, SMR, P2M, and P3M registers to their reset values on a STOP-Mode Recovery operation. Note: The device CC must rise up to the operating CC specification before the TPOR expires. Program Memory. The MC can address up to 4 KB of Internal Program Memory (Figure 22). The first 2 bytes of program memory are reserved for the interrupt vectors. These locatio contain six 6-bit vectors that correspond to the six available interrupts. For EPROM mode, byte 2 (CH) to address 495 (FFFH) coists of programmable EPROM. After reset, the program counter points at the address CH, which is the starting address of the user program. In ROMless mode, the Z86E4 can address up to 64 KB of External Program Memory. The ROM/ROMless option is only available on the 44-pin devices. 65535 496 495 EPROM External ROM and RAM On-Chip One Time PROM ROMless External ROM and RAM Location of First Byte of Itruction Executed After RESET 2 IRQ5 IRQ5 IRQ5 IRQ5 9 IRQ4 IRQ4 8 IRQ4 IRQ4 Interrupt ector (Lower Byte) 7 6 5 IRQ3 IRQ3 IRQ2 IRQ3 IRQ3 IRQ2 Interrupt ector (pper Byte) 4 3 2 IRQ2 IRQ IRQ IRQ2 IRQ IRQ IRQ IRQ IRQ IRQ Figure 22. Program Memory Map (ROMless Z86E4 Only) 32 P R E L I M I N A R Y DS97Z8X5

EPROM Protect. When in ROM Protect Mode, and executing out of External Program Memory, itructio LDC, LDCI, LDE, and LDEI cannot read Internal Program Memory. When in ROM Protect Mode and executing out of Internal Program Memory, itructio LDC, LDCI, LDE, and LDEI can read Internal Program Memory. Data Memory (/DM). In EPROM Mode, the Z86E4 can address up to 6 KB of external data memory beginning at Z86E3/E3/E4 location 496. In ROMless mode, the Z86E4 can address up to 64 KB of data memory. External data memory may be included with, or separated from, the external program memory space. /DM, an optional I/O function that can be programmed to appear on pin P34, is used to distinguish between data and program memory space (Figure 23). The state of the /DM signal is controlled by the type of itruction being executed. An LDC opcode references PROGRAM (/DM inactive) memory, and an LDE itruction references data (/DM active Low) memory. 65535 EPROM ROMless External Data Memory External Data Memory 496 495 Not Addressable Figure 23. Data Memory Map DS97Z8X5 P R E L I M I N A R Y 33

Z86E3/E3/E4 Expanded Register File (ERF). The register file has been expanded to allow for additional system control registers, mapping of additional peripheral devices and input/output ports into the register address area. The Z8 register address space R through R5 is implemented as 6 groups of 6 registers per group (Figure 26). These register groups are known as the Expanded Register File (ERF). The low nibble (D3-D) of the Register Pointer (RP) select the active ERF group, and the high nibble (D7-D4) of register RP select the working register group. Three system configuration registers reside in the Expanded Register File at bank FH: PCON, SMR, and WDTMR. The rest of the Expanded Register is not physically implemented and is reserved for future expaion. Register File. The register file coists of three I/O port registers, 236/25 general-purpose registers, 5 control and status registers, and three system configuration registers in the expanded register group. The itructio can access registers directly or indirectly through an 8-bit address field. This allows a short 4-bit register address using the Register Pointer (Figure 24). In the 4-bit mode, the register file is divided into 6 working register groups, each occupying 6 continuous locatio. The Register Pointer addresses the starting location of the active working-register group. Note: Register Bank E-EF can only be accessed through working register and indirect addressing modes. (This bank is available in Z86E3/E4 only.) R253 RP D7 D6 D5 D4 D3 D2 D D Expanded Register Group Working Register Group Default setting after RESET = Figure 24. Register Pointer Register 34 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 r7 r6 r5 r4 r3 r2 r r R253 (Register Pointer) The upper nibble of the register file address provided by the register pointer specifies the active working-register group. FF F EF 8 7F 7 6F Register Group F Note: Registers 8H through EFH are available in the Z86C3 only. 6 5F 5 4F 4 3F 3 2F 2 F F Specified Working Register Group Register Group Register Group I/O Ports * Expanded Register Group () is selected in this figure by handling bits D3 to D as "" in Register R253 (RP). The lower nibble of the register file address provided by the itruction points to the specified register. R5 to R R5 to R4* R3 to R* Figure 25. Register Pointer DS97Z8X5 P R E L I M I N A R Y 35

Z86E3/E3/E4 Z8 STANDARD CONTROL REGISTERS RESET CONDITION REGISTER POINTER REGISTER % FF SPL D7 D6 D5 D4 D3 D2 D D 7 6 5 4 3 2 % FE SPH Working Register Group Pointer Expanded Register Group Pointer % FD % FC RP FLAGS % FB IMR % FA IRQ % F9 IPR %FF %FO Z8 Reg. File Z86E3/E4 Only * * % F8 % F7 % F6 % F5 % F4 % F3 % F2 PM P3M P2M PRE T PRE T % F TMR % F Reserved %7F Z86E3/E4 Only * EXPANDED REG. GROP (F) REGISTER RESET CONDITION % (F) F WDTMR % (F) E Reserved * % (F) D SMR2 ** % (F) C % (F) B Reserved SMR % (F) A Reserved % (F) 9 Reserved Reserved % (F) 8 % (F) 7 Reserved Reserved %F % % (F) 6 % (F) 5 Reserved Reserved % (F) 4 Reserved % (F) 3 Reserved % (F) 2 Reserved % (F) Reserved % (F) PCON Notes: = nknown * ** For Z86E4 (ROMless) reset condition: "" Will not be reset with a STOP Mode Recovery Will not be reset with a STOP Mode Recovery, except Bit D. * * EXPANDED REG. GROP () REGISTER % () 3 P3 % () 2 P2 % () P % () P RESET CONDITION Figure 26. Expanded Register File Architecture 36 P R E L I M I N A R Y DS97Z8X5

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 CC voltage-specified operating range. The register R254 is general-purpose on Z86E3/E3. R254 and R255 are set to H after any reset or STOP-Mode recovery. RAM Protect. The upper portion of the RAM's address spaces 8H to EFH (excluding the control registers) can be protected from reading and writing. This option can be selected during the EPROM Programming Mode. After this option is selected, the user can activate this feature from the internal EPROM. D6 of the IMR control register (R25) is used to turn off/on the RAM protect by loading a or, respectively. A in D6 indicates RAM Protect enabled. RAM Protect is not available on the Z86E3. Stack. The Z86E4 external data memory or the internal register file can be used for the stack. The 6-bit Stack Pointer (R254-R255) is used for the external stack, which can reside anywhere in the data memory for ROMless mode, but only from 496 to 65535 in ROM mode. An 8-bit Stack Pointer (R255) is used for the internal stack on the Z86E3/E3/E4 that resides within the 236 general-purpose registers (R4-R239). SPH (R254) can be used as a general-purpose register when using internal stack only. R254 and R255 are set to H after any reset or STOP- Mode Recovery. Z86E3/E3/E4 Counter/Timers. There are two 8-bit programmable counter/timers (T and T), each driven by its own 6-bit programmable prescaler. The T prescaler is driven by internal or external clock sources; however, the T prescaler is driven by the internal clock only (Figure 27). The 6-bit prescalers can divide the input frequency of the clock source by any integer number from to 64. Each prescaler drives its counter, which decrements the value ( to 256) that has been loaded into the counter. When the counter reaches the end of count, a timer interrupt request, IRQ4 (T) or IRQ5 (T), is generated. DS97Z8X5 P R E L I M I N A R Y 37

Z86E3/E3/E4 38 P R E L I M I N A R Y DS97Z8X5

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, can be read at any time without disturbing their value or count mode. The clock source for T is user-definable and can be either the Z86E3/E3/E4 internal microprocessor clock divided by four, or an external signal input through Port 3. The Timer Mode register configures the external timer input (P3) as an external clock, a trigger input that can be retriggerable or non-retriggerable, or as a gate input for the internal clock. Port 3 line P36 serves as a timer output (T OT ) through which T, T or the internal clock can be output. The counter/timers can be cascaded by connecting the T output to the input of T. OSC D (SMR) Internal Data Bus D (SMR) 2 Write Write Read PRE Initial alue Register T Initial alue Register T Current alue Register 6 4 6-Bit Down Counter 8-bit Down Counter IRQ4 Internal Clock External Clock 2 TOT P36 Clock Logic 4 6-Bit Down Counter 8-Bit Down Counter IRQ5 Internal Clock Gated Clock Triggered Clock PRE Initial alue Register T Initial alue Register T Current alue Register TIN P3 Write Write Read Internal Data Bus Figure 27. Counter/Timer Block Diagram DS97Z8X5 P R E L I M I N A R Y 39

Z86E3/E3/E4 Interrupts. The MC has six different interrupts from six different sources. The interrupts are maskable and prioritized (Figure 28). The six sources are divided as follows: four sources are claimed by Port 3 lines P33-P3) and two in counter/timers. The Interrupt Mask Register globally or individually enables or disables the six interrupt requests (Table ). IRQ IRQ2 IRQ, 3, 4, 5 Interrupt Edge Select IRQ (D6, D7) IRQ IMR 6 Global Interrupt Enable IPR Interrupt Request Priority Logic ector Select Figure 28. Interrupt Block Diagram Table. Interrupt Types, Sources, and ectors Name Source ector Location Comments IRQ /DA, IRQ, External (P32), Rising/Falling Edge Triggered IRQ IRQ 2, 3 External (P33), Falling Edge Triggered IRQ2 /DA2, IRQ2, T IN 4, 5 External (P3), Rising/Falling Edge Triggered IRQ3 IRQ3 6, 7 External (P3), Falling Edge Triggered IRQ4 T 8, 9 Internal IRQ5 TI, Internal 4 P R E L I M I N A R Y DS97Z8X5

When more than one interrupt is pending, priorities are resolved by a programmable priority encoder that is controlled by the Interrupt Priority Register (IPR). An interrupt machine cycle is activated when an interrupt request is granted. Thus, disabling all subsequent interrupts, saves the Program Counter and Status Flags, and then branches to the program memory vector location reserved for that interrupt. All interrupts are vectored through locatio in the program memory. This memory location and the next byte contain the 6-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 need service. An interrupt resulting from AN is mapped into IRQ2, and an interrupt from AN2 is mapped into IRQ. Interrupts IRQ2 and IRQ may be rising, falling or both edge triggered, and are programmable by the user. The software may poll to identify the state of the pin. Z86E3/E3/E4 Programming bits for the Interrupt Edge Select are located in bits D7 and D6 of the IRQ Register (R25). The configuration is shown in Table. Table. IRQ Register Configuration IRQ Interrupt Edge D7 D6 P3 P32 F F F R R F R/F R/F Notes: F = Falling Edge R = Rising Edge Clock. The on-chip oscillator has a high-gain, parallel-resonant amplifier for connection to a crystal, RC, ceramic resonator, or any suitable external clock source (XTAL = Input, XTAL2 = Output). The crystal should be AT cut, KHz to 6 MHz max, with a series resistance (RS) less than or equal to Ohms. The crystal should be connected across XTAL and XTAL2 using the vendor's recommended capacitor values from each pin directly to device pin Ground. The RC oscillator option can be selected in the programming mode. The RC oscillator configuration must be an external resistor connected from XTAL to XTAL2, with a frequency-setting capacitor from XTAL to Ground (Figure 29). C XTAL C XTAL C XTAL XTAL L R C2 XTAL2 C2 XTAL2 XTAL2 XTAL2 Ceramic Resonator or Crystal C, C2 = 47 pf TYP * F = 8 MHz LC C, C2 = 22 pf L = 3 µh * F = 3 MHz * * Typical value including pin parasitics RC @ 5 cc (TYP) C = pf R = 2K F = 6 MHz External Clock Figure 29. Oscillator Configuration DS97Z8X5 P R E L I M I N A R Y 4

Z86E3/E3/E4 Power-On Reset (POR). A timer circuit clocked by a dedicated on-board RC oscillator is used for the Power-On Reset (POR) timer function. The POR timer allows CC and the oscillator circuit to stabilize before itruction execution begi. The POR timer circuit is a one-shot timer triggered by one of three conditio:. Power fail to Power OK status 2. STOP-Mode Recovery (if D5 of SMR=) 3. WDT time-out The POR time is a nominal 5 ms. Bit 5 of the STOP mode Register (SMR) determines whether the POR timer is bypassed after STOP-Mode Recovery (typical for an external clock and RC/LC oscillators with fast start up times). HALT. Tur off the internal CP clock, but not the XTAL oscillation. The counter/timers and external interrupt IRQ, IRQ, and IRQ2 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 itruction after the HALT. In order to enter STOP or HALT mode, it is necessary to first flush the itruction pipeline to avoid suspending execution in mid-itruction. To do this, the user must execute a NOP (opcode=ffh) immediately before the appropriate sleep itruction, that is: FF NOP ; clear the pipeline 6F STOP ; enter STOP ;mode or FF NOP ; clear the pipeline 7F HALT ; enter HALT mode STOP. This itruction tur off the internal clock and external crystal oscillation and reduces the standby current to microamperes or less. STOP mode is terminated by one of the following resets: either by WDT time-out, POR, a STOP-Mode Recovery Source, which is defined by the SMR register or external reset. This causes the processor to restart the application program at address CH. Port Configuration Register (PCON). The PCON register configures the ports individually; comparator output on Port 3, open-drain on Port and Port, low EMI on Ports,, 2 and 3, and low EMI oscillator. The PCON register is located in the expanded register file at Bank F, location (Figure 3). 42 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 PCON (FH) H D7 D6 D5 D4 D3 D2 D D Comparator Output Port 3 P34, P37 Standard Output* P34, P37 Comparator Output * Default Setting After Reset Port Open Drain Port Push-pull Active* Port Open Drain Port Push-pull Active* Port Low EMI Port Standard* Port Low EMI Port Standard* Port 2 Low EMI Port 2 Standard* Port 3 Low EMI Port 3 Standard* Low EMI Oscillator Low EMI Standard* Figure 3. Port Configuration Register (PCON) (Write Only) Comparator Output Port 3 (D). Bit controls the comparator output in Port 3. A "" in this location brings the comparator outputs to P34 and P37, and a "" releases the Port to its standard I/O configuration. The default value is. Port Open-Drain (D). Port can be configured as an open-drain by resetting this bit (D=) or configured as push-pull active by setting this bit (D=). The default value is. Port Open-Drain (D2). Port can be configured as an open-drain by resetting this bit (D2=) or configured as push-pull active by setting this bit (D2=). The default value is. Low EMI Port (D3). Port can be configured as a Low EMI Port by resetting this bit (D3=) or configured as a Standard Port by setting this bit (D3=). The default value is. Low EMI Port (D4). Port can be configured as a Low EMI Port by resetting this bit (D4=) or configured as a Standard Port by setting this bit (D4=). The default value is. Note: The emulator does not support Port low EMI mode and must be set D4 =. Low EMI Port 2 (D5). Port 2 can be configured as a Low EMI Port by resetting this bit (D5=) or configured as a Standard Port by setting this bit (D5=). The default value is. Low EMI Port 3 (D6). Port 3 can be configured as a Low EMI Port by resetting this bit (D6=) or configured as a Standard Port by setting this bit (D6=). The default value is. Low EMI OSC (D7). This bit of the PCON Register controls the low EMI noise oscillator. A "" in this location configures the oscillator with standard drive. While a "" configures the oscillator with low noise drive, however, it does not affect the relatiohip of SCLK and XTAL. The low EMI DS97Z8X5 P R E L I M I N A R Y 43

Z86E3/E3/E4 mode will reduce the drive of the oscillator (OSC). The default value is. Note: 4 MHz is the maximum external clock frequency when running in the low EMI oscillator mode. STOP-Mode Recovery Register (SMR). This register selects the clock divide value and determines the mode of STOP-Mode Recovery (Figure 3). All bits are Write Only except bit 7 which is a Read Only. Bit 7 is a flag bit that is hardware set on the condition of STOP Recovery and reset by a power-on cycle. Bit 6 controls whether a low or high level is required from the recovery source. Bit 5 controls the reset delay after recovery. Bits 2, 3, and 4 of the SMR register specify the STOP-Mode Recovery Source. The SMR is located in Bank F of the Expanded Register Group at address BH. SMR (F) B D7 D6 D5 D4 D3 D2 D D SCLK/TCLK Divide by 6 OFF ** ON External Clock Divide by 2 SCLK/TCLK =XTAL/2* SCLK/TCLK =XTAL Stop Mode Recovery Source POR and/or External Reset* P3 P3 P32 P33 P27 P2 NOR :3 P2 NOR :7 Stop Delay OFF ON * Stop Recovery Level Low * High Stop Flag POR * Stop Recovery * Default setting after RESET. ** Default setting after RESET and STOP-Mode Recovery. Figure 3. STOP-Mode Recovery Register (Write-Only Except Bit D7, Which is Read-Only) 44 P R E L I M I N A R Y DS97Z8X5

SCLK/TCLK Divide-by-6 Select (D). This bit of the SMR controls a divide-by-6 prescaler of SCLK/TCLK. The purpose of this control is to selectively reduce device power coumption during normal processor execution (SCLK control) and/or HALT mode (where TCLK sources counter/timers and interrupt logic). External Clock Divide-by-Two (D). This bit can eliminate the oscillator divide-by-two circuitry. When this bit is, the System Clock (SCLK) and Timer Clock (TCLK) are equal to the external clock frequency divided by two. The SCLK/TCLK is equal to the external clock frequency when this bit is set (D=). sing this bit together with D7 of Z86E3/E3/E4 PCON further helps lower EMI (i.e., D7 (PCON) =, D (SMR) = ). The default setting is zero. STOP-Mode Recovery Source (D2, D3, and D4). These three bits of the SMR register specify the wake up source of the STOP-Mode Recovery (Figure 32). Table 2 shows the SMR source selected with the setting of D2 to D4. P33- P3 cannot be used to wake up from STOP mode when programmed as analog inputs. When the STOP-Mode Recovery sources are selected in this register then SMR2 register bits D, D must be set to zero. Note: If the Port2 pin is configured as an output, this output level will be read by the SMR circuitry.. SMR2 D D DD SMR2 D D SMR2 D D P2 P2 P23 P27 SMR D4 D3 D2 DD P3 P3 P32 SMR D4 D3 D2 SMR D4 D3 D2 SMR D4 D3 D2 P2 P33 P27 P23 SMR D4 D3 D2 P2 P27 SMR D4 D3 D2 To POR RESET Stop-Mode Recovery Edge Select (SMR) P33 From Pads MX To P33 Data Latch and IRQ Digital/Analog Mode Select (P3M) Figure 32. STOP-Mode Recovery Source DS97Z8X5 P R E L I M I N A R Y 45

Z86E3/E3/E4 Table 2. STOP-Mode Recovery Source D4 D3 D2 SMR Source selection POR recovery only P3 traition P3 traition (Not in analog mode) P32 traition (Not in analog mode) P33 traition (Not in analog mode) P27 traition Logical NOR of Port 2 bits -3 Logical NOR of Port 2 bits -7 STOP-Mode Recovery Delay Select (D5). The 5 ms RE- SET delay after STOP-Mode Recovery is disabled by programming this bit to a zero. A in this bit will cause a 5 ms RESET delay after STOP-Mode Recovery. The default condition of this bit is. If the fast wake up mode is selected, the STOP-Mode Recovery source needs to be kept active for at least 5TpC. STOP-Mode Recovery Level Select (D6). A in this bit defines that a high level on any one of the recovery sources wakes the MC from STOP mode. A defines low level recovery. The default value is. Cold or Warm Start (D7). This bit is set by the device upon entering STOP mode. A "" in this bit indicates that the device has been reset by POR (cold). A "" in this bit indicates the device was awakened by a SMR source (warm). STOP-Mode Recovery Register 2 (SMR2). This register contai additional Stop-Mode Recovery sources. When the Stop-Mode Recovery sources are selected in this register then SMR Register. Bits D2, D3, and D4 must be. SMR: Operation D D Description of Action POR and/or external reset recovery Logical AND of P2 through P23 Logical AND of P2 through P27 Watch-Dog Timer Mode Register (WDTMR). The WDT is a retriggerable one-shot timer that resets the Z8 if it reaches its terminal count. The WDT is disabled after Power-On Reset and initially enabled by executing the WDT itruction and refreshed on subsequent executio of the WDT itruction. The WDT is driven either by an on-board RC oscillator or an external oscillator from XTAL pin. The POR clock source is selected with bit 4 of the WDT register. Note: Execution of the WDT itruction affects the Z (Zero), S (Sign), and (Overflow) flags. WDT Time-Out Period (D and D). Bits and control a tap circuit that determines the time-out periods that can beobtained (Table 3). The default value of D and D are and, respectively. D Table 3. Time-out Period of WDT D Time-out of the Internal RC OSC Time-out of the System Clock 5 ms 28 SCLK ms* 256 SCLK* 2 ms 52 SCLK 8 ms 248 SCLK Notes: *The default setting is ms. WDT During HALT Mode (D2). This bit determines whether or not the WDT is active during HALT mode. A "" indicates that the WDT is active during HALT. A "" disables the WDT in HALT mode. The default value is. WDT During STOP Mode (D3). This bit determines whether or not the WDT is active during STOP mode. A indicates active during STOP. A "" disables the WDT during STOP mode. This is applicable only when the WDT clock source is the internal RC oscillator. Clock Source For WDT (D4). This bit determines which oscillator source is used to clock the internal POR and WDT counter chain. If the bit is a, the internal RC oscillator is bypassed and the POR and WDT clock source is driven from the external pin, XTAL, and the WDT is stopped in STOP mode. The default configuration of this bit is, which selects the RC oscillator. Permanent WDT. When this feature is enabled, the WDT is enabled after reset and will operate in Run and Halt mode. The control bits in the WDTMR do not affect the WDT operation. If the clock source of the WDT is the internal RC oscillator, then the WDT will run in STOP mode. If the clock source of the WDT is the XTAL pin, then the WDT will not run in STOP mode. Note: WDT time-out in Stop-Mode will not reset SMR,SMR2,PCON, WDTMR, P2M, P3M, Ports 2 & 3 Data Registers. WDTMR Register Accessibility. The WDTMR register is accessible only during the first 6 internal system clock cycles from the execution of the first itruction after Power-On Reset, Watch-Dog reset or a STOP-Mode Recovery 46 P R E L I M I N A R Y DS97Z8X5

(Figures 33 and 34). After this point, the register cannot be modified by any mea, intentional or otherwise. The WDTMR (F) F D7 D6 D5 D4 D3 D2 D D Z86E3/E3/E4 WDTMR cannot be read and is located in Bank F of the Expanded Register Group at address location FH. WDT TAP INT RC OSC System Clock 5 ms 28 SCLK * ms 256 SCLK 2 ms 52 SCLK 8 ms 248 SCLK WDT During HALT OFF ON * WDT During STOP OFF ON * XTAL/INT RC Select for WDT On-Board RC * XTAL Reserved (Must be ) * Default setting after RESET Figure 33. Watch-Dog Timer Mode Register Write Only DS97Z8X5 P R E L I M I N A R Y 47

Z86E3/E3/E4 /Reset 4 Clock Filter /Clear CLK 8 Clock RESET Generator RESET Internal /RESET WDT Select (WDTMR) WDT TAP SELECT CLK Source Select (WDTMR) XTAL Internal RC OSC. M X 5ms POR 5ms 5ms 25ms ms CK WDT/POR Counter Chain /CLR DD L + - 2 Operating oltage Det. /WDT From Stop Mode Recovery Source Stop Delay Select (SMR) Figure 34. Resets and WDT Auto Reset oltage. An on-board oltage Comparator checks that CC is at the required level to eure correct operation of the device. Reset is globally driven if CC is below L (Figure 35). Note: CC must be in the allowed operating range prior to the minimum Power-On Reset time-out (T POR ). 48 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 CC (olts) 3.7 3.5 3.3 3. 2.9 2.7 2.5 2.3-6 -4-2 2 4 6 8 2 4 Temperature ( C) Figure 35. Typical Z86E4 L oltage vs Temperature DS97Z8X5 P R E L I M I N A R Y 49

Z86E3/E3/E4 EPROM MODE. Table 4 shows the programming voltages of each programming mode. Table 5, Figures 38, 39, and 4 show the programming timing of each programming mode. Figure 4 shows the circuit diagram of a Z86E4 programming adaptor, which adapts from 2764A to Z86E4. Figure 43 shows the flow-chart of an Intelligent Programming Algorithm, which is compatible with 2764A EPROM (Z86E4 is 4K EPROM, 2764A is 8K EPROM). Since the EPROM size of Z86E3/E3/E4 differs from 2764A, the programming address range has to be set from H to FFFH for the Z86E3/E4 and H to 7FFH for Z86E3. Otherwise, the upper portion of EPROM data will overwrite the lower portion of EPROM data. Figure 39 shows the adaptation from the 2764A to Z86E3/E3. Note: EPROM Protect feature allows the LDC, LDCI, LDE, and LDEI itructio from internal program memory. A ROM look-up table can be used with this feature. During programming, the PP input pin supplies the programming voltage and current to the EPROM. This pin is also used to latch which EPROM mode is to be used (R/W EPROM or R/W Option bits). The mode is set by placing the correct mode number on the least significant bits of the address and raising the EPM pin above. After a setup time, the PP pin can then be raised or lowered. The latched EPROM mode will remain until the EPM pin is reduced below H. Mode Name Mode # LSB Addr EPROM R/W Option Bit R/W 3 EPROM R/W mode allows the programming of the user mode program ROM. Option Bit R/W allows the programming of the Z8 option bits. When the device is latched into Option Bit R/W mode, the address must then be changed to 63 decimals ( Binary). The Optio are mapped into this address as follows: Bit Option 7 nused 6 nused 5 32 KHz XTAL Option 4 Permanent WDT 3 Auto Latch Disable 2 RC Oscillator Option RAM Protect ROM Protect Table 4. EPROM Programming Table Table 4 gives the proper conditio for EPROM R/W operatio, once the mode is latched. Programming Modes PP EPM /CE /OE /PGM ADDR DATA CC * EPROM READ X H IL IL IH ADDR Out 4.5 EPROM READ2 X H IL IL IH ADDR Out PROGRAM PP H IL IH IL ADDR In 6.4 PROGRAM PP H IL IL IH ADDR Out 6. ERIFY OPTION BIT PGM PP H IL IH IL 63 IN 6.4 OPTION BIT READ X H IL IL IH 63 OT 6. Notes: H = 3. ±. IH = As per specific Z8 DC specification. IL= As per specific Z8 DC specification. X=Not used, but must be set to H, IH, or IL level. N = Not used, but must be set to either IH or IL level. I PP during programming = 4 ma maximum. I CC during programming, verify, or read = 4 ma maximum. * CC has a tolerance of ±.25. recommends an EPROM read at CC = 4.5 and 5.5 to eure proper device operatio during the CC after programming, but CC = 5. is acceptable. 5 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 Table 5. EPROM Programming Timing Parameters Name Min Max nits Address Setup Time 2 µsµ 2 Data Setup Time 2 µs 3 PP Setup 2 µs 4 CC Setup Time 2 µs 5 Chip Enable Setup Time 2 µs 6 Program Pulse Width.95.5 ms 7 Data Hold Time 2 µs 8 /OE Setup Time 2 µs 9 Data Access Time 2 Data Output Float Time Overprogram Pulse 2.85 ms Width/Option Program Pulse Width 2 EPM Setup Time 2 µs 3 /PGM Setup Time 2 µs 4 Address to /OE Setup Time 2 µsµ 5 /OE Width 25 6 Address to /OE Low 25 DS97Z8X5 P R E L I M I N A R Y 5

Z86E3/E3/E4 IH Address IL Address Stable Address Stable Data PP IH IL H IL 6 Invalid alid Invalid alid 9 H EPM CC IL 4.5 2 IH /CE IL IH 5 5 /OE IL IH 5 5 /PGM IL 3 Figure 36. EPROM Read Mode Timing Diagram 52 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 Z86E4 TIMING DIAGRAMS IH Address IL Address Stable IH Data IL Data Stable Data Out alid 2 9 PP H IH 3 EPM H IL CC 6 4.5 IH 4 7 /CE IL IH 5 /OE IL IH /PGM IL 6 8 5 Program Cycle erify Cycle Figure 37. Timing Diagram of EPROM Program and erify Modes DS97Z8X5 P R E L I M I N A R Y 53

Z86E3/E3/E4 2 D D D2 D3 D4 D5 D6 D7 A A A2 A3 A4 A5 A6 A7 GND 35 P2 36 P2 37 P22 38 P23 39 P24 2 P25 3 P26 4 P27 26 P 27 P 3 P2 34 P3 5 P4 6 P5 7 2 4 2 P6 P7 R//W /AS /DS /RESET P P P2 P3 P4 P5 P6 P7 P3 P3 P32 P33 P34 P35 P36 P37 XTAL XTAL2 28 29 32 33 8 9 2 3 25 /PGM 6 /E 7 EPM 8 PP 9 A8 22 A9 24 A 23 A 3 GND CC 5 /CE 4 A A A2 A3 A4 A5 A6 A7 A8 A9 A A KOhm R2 2 R KOhm 2 9 8 7 6 5 4 3 A A A2 A3 A4 A5 A6 A7 2 3 4 5 6 7 25 A8 24 A9 2 A 23 A 2 A2 27 /PGM GND 2 /CS 22 /OE 2764 Pi CC PP 2 3 5 6 7 8 9 D D D2 D3 D4 D5 D6 D7 4 GND 28 CC PP C 2.µF GND Z86E4 4-Pin DIP Socket 2.5 6 X 3 D 2.5.µF C2 2 R4 2 KOhm N5243 2 D R3 2 KOhm GND CC 4 X3 5 IX D3 3 EPM GND 5. GND 2 P R5 2 2.5 olt 4 X S2 5 X S4 X IX2 D2 3 X D4 6 X CC 5. GND N523 2 D2 KOhm IH543 Figure 38. Z86E4 Z8 OTP Programming Adapter For use with Standard EPROM Programmers 54 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 A A A2 A3 A4 A5 A6 A7 D D D2 D3 D4 D5 D6 D7 24 P2 25 P2 26 P22 27 P23 28 P24 P25 2 P26 3 P27 9 P 2 P 2 P2 23 P3 4 P4 5 P5 6 7 P6 P7 P3 P3 P32 P33 P34 P35 P36 P37 8 2 3 4 5 7 6 /PGM /OE EPM PP A8 A9 A A A A A2 A3 A4 A5 A6 A7 A4 A5 A6 A7 KOhm R2 2 R KOhm 2 A 9 A 8 A2 7 A3 6 A4 5 A5 4 A6 3 A7 25 A8 24 A9 2 A 23 A 2 A2 27 /PGM 2 /CS 22 /OE 2 2 3 4 5 6 7 GND CC PP 2 3 5 6 7 8 9 D D D2 D3 D4 D5 D6 D7 4 GND 28 CC PP XTAL XTAL2 9 /CE 2764 Pi C 2.µF GND Z86E3/3 28-Pin DIP Socket 2.5 R4 2 R3 2 KOhm KOhm 3.µF C2 2 N5243 2 D 2.5 6 X GND CC 4 X3 5 IX 4 S2 X D D3 3 D2 3 X EPM GND 5. N523 GND 2 D2 2 KOhm P R5 2 2.5 olt 5 S4 X D4 6 X GND X IX2 IH543 CC 5. Note: The programming address must be set to H - FFFH (Lower 4K Byte Memory). For Z86E3 H - 7FFH (Lower 2K Byte Memory). For Z86E3 Figure 39. Z86E3/E3 Programming Adaptor Circuitry DS97Z8X5 P R E L I M I N A R Y 55

Z86E3/E3/E4 Start Addr = First Location cc = 6. pp = 2.5 N = Program ms Pulse Increment N N = 25? Yes No Fail erify One Byte erify Byte Fail Pass Pass Prog. One Pulse 3xN ms Duration Increment Address No Last Addr? Yes cc = pp = 4.5 * Note: * To eure proper operaton, recommends cc range of the device cc specification, But cc = 5. is acceptable. Pass erify All Bytes Fail cc = pp = * Device Failed Pass erify All Bytes Fail Device Passed Figure 4. Z86E4 Programming Algorithm 56 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 EXPANDED REGISTER FILE CONTROL REGISTERS PCON (FH) H D7 D6 D5 D4 D3 D2 D D WDTMR (F) F D7 D6 D5 D4 D3 D2 D D * Default Setting After Reset Must Be for Z86E3/E3 Comparator Output Port 3 P34, P37 Standard* P34, P37 Comparator Output Port Open-Drain Port Push-Pull Active* Port Open-Drain Port Push-pull Active* Port Low EMI Port Standard* Port Low EMI Port Standard* Port 2 Low EMI Port 2 Standard* Port 3 Low EMI Port 3 Standard* Low EMI Oscillator Low EMI Standard* * Default setting after RESET WDT TAP INT RC OSC System Clock 5 ms 28 SCLK * ms 256 SCLK 2 ms 52 SCLK 8 ms 248 SCLK WDT During HALT OFF ON * WDT During STOP OFF ON * XTAL/INT RC Select for WDT On-Board RC * XTAL Reserved (Must be ) Figure 43. Watch-Dog Timer Mode Register Write Only Figure 4. Port Configuration Register Write Only SMR2 (F) DH D7 D6 D5 D4 D3 D2 D D SMR (FH) B D7 D6 D5 D4 D3 D2 D D SCLK/TCLK Divide-by-6 OFF ** ON External Clock Divide by 2 SCLK/TCLK =XTAL/2* SCLK/TCLK =XTAL Stop Mode Recovery Source POR Only and/or External Reset* P3 P3 P32 P33 P27 P2 NOR -3 P2 NOR -7 Stop Delay OFF ON* Stop Recovery Level Low* High Stop Flag POR* Stop Recovery * Default setting after RESET. ** Default setting after RESET and STOP-Mode Recovery. Note: Not used in conjunction with SMR Source Stop-Mode Recovery Source 2 POR only* AND P2,P2,P22,P23 AND P2,P2,P22,P23,P24, P25,P26,P27 Reserved (Must be ) Figure 44. STOP-Mode Recovery Register 2 Write Only Figure 42. STOP-Mode Recovery Register Write Only Except Bit D7, Which is Read Only DS97Z8X5 P R E L I M I N A R Y 57

Z86E3/E3/E4 Z8 CONTROL REGISTER DIAGRAMS R24 D7 D6 D5 D4 D3 D2 D D R243 PRE D7 D6 D5 D4 D3 D2 D D Figure 45. Reserved R24 TMR D7 D6 D5 D4 D3 D2 D D Reserved (Must be ) *Default After Reset Count Mode T Single Pass* T Modulo N Clock Source T Internal T External Timing Input (TIN Mode) Prescaler Modulo (Range: -64 Decimal - HEX) No Function* Load T Disable T Count* Enable T Count No Function* Load T Disable T Count* Enable T Count TIN Modes External Clock Input* Gate Input Trigger Input (Non-retriggerable) Trigger Input (Retriggerable) TOT Modes Not sed* T Out T Out Internal Clock Out R244 T Figure 48. Prescaler Register F3H: Write Only D7 D6 D5 D4 D3 D2 D D T Initial alue (When Written) (Range: -256 Decimal - HEX) T Current alue (When Read) Figure 49. Counter/Timer Register F4H; Read/Write Default After Reset = H Figure 46. Timer Mode Register FH: Read/Write R245 PRE D7 D6 D5 D4 D3 D2 D D R242 T D7 D6 D5 D4 D3 D2 D D T Initial alue (When Written) (Range: -256 Decimal - HEX) T Current alue (When Read) Figure 5. Prescaler Register F5H: Write Only Count Mode T Single Pass T Modulo N Reserved (Must be ) Prescaler Modulo (Range: -64 Decimal - HEX) Figure 47. Counter/Timer Register F2H: Read/Write 58 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 R246 P2M D7 D6 D5 D4 D3 D2 D D * Default After Reset P2 - P27 I/O Definition Defines Bit as Output Defines Bit as Input* R248 PM D7 D6 D5 D4 D3 D2 D D P3 - P Mode Output Input X A - A8 Stack Selection External Internal R247 P3M Figure 5. Port 2 Mode Register F6H: Write Only P7 - P Mode Byte Output Byte Input AD7 - AD High-Impedance AD7 - AD, /AS, /DS, /R//W, A - A8, A5 - A2, If Selected D7 D6 D5 D4 D3 D2 D D External Memory Timing Normal Extended Port 2 Open-Drain Port 2 Push-pull Active P3, P32 Digital Mode P3, P32 Analog Mode P32 = Input P35 = Output P32 = /DA/RDY P35 = RDY//DA P33 = Input P34 = Output P33 = Input P34 = /DM P33 = /DA/RDY P34 = RDY//DA Reset Condition = B For ROMless Condition = B Z86E3/E3 Must be P7 - P4 Mode Output Input X A5 - A2 Figure 53. Port and Mode Register F8H: Write Only Z86E3/E3 Only Default After Reset = H Z86E3/E3 Must Be P3 = Input (TIN) P36 = Output (TOT) P3 = /DA2/RDY2 P36 = RDY2//DA2 P3 = Input P37 = Output Reserved (Must be ) Figure 52. Port 3 Mode Register F7H: Write Only R249 IPR D7 D6 D5 D4 D3 D2 D D Interrupt Group Priority Reserved C > A > B A > B > C A > C > B B > C > A C > B > A B > A > C Reserved IRQ, IRQ4 Priority (Group C) IRQ > IRQ4 IRQ4 > IRQ IRQ, IRQ2 Priority (Group B) IRQ2 > IRQ IRQ > IRQ2 IRQ3, IRQ5 Priority (Group A) IRQ5 > IRQ3 IRQ3 > IRQ5 Reserved (Must be ) Figure 54. Interrupt Priority Register F9H: Write Only DS97Z8X5 P R E L I M I N A R Y 59

Z86E3/E3/E4 R25 IRQ D7 D6 D5 D4 D3 D2 D D R253 RP D7 D6 D5 D4 D3 D2 D D IRQ = P32 Input IRQ = P33 Input IRQ2 = P3 Input IRQ3 = P3 Input IRQ4 = T IRQ5 = T Default After Reset = H Expanded Register File Working Register Pointer Default After Reset = H Inter Edge P3 P32 = P3 P32 = P3 P32 = P3 P32 = Figure 58. Register Pointer FDH: Read/Write Figure 55. Interrupt Request Register FAH: Read/Write R254 SPH D7 D6 D5 D4 D3 D2 D D R25 IMR D7 D6 D5 D4 D3 D2 D D (Z86E4) Stack Pointer pper Byte (SP8 - SP5) (Z86E3/E3) = State = State Enables IRQ5-IRQ (D = IRQ) Enables RAM Protect Enables Interrupts Figure 59. Stack Pointer High FEH: Read/Write This option must be selected when ROM code is submitted for ROM Masking, otherwise this control bit is disabled permanently. R252 FLAGS Figure 56. Interrupt Mask Register FBH: Read/Write R255 SPL D7 D6 D5 D4 D3 D2 D D Stack Pointer Lower Byte (SP - SP7) D7 D6 D5 D4 D3 D2 D D Figure 6. Stack Pointer Low FFH: Read/Write ser Flag F ser Flag F2 Half Carry Flag Decimal Adjust Flag Overflow Flag Sign Flag Zero Flag Carry Flag Figure 57. Flag Register FCH: Read/Write 6 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 PACKAGE INFORMATION Figure 6. 4-Pin DIP Package Diagram Figure 62. 44-Pin PLCC Package Diagram DS97Z8X5 P R E L I M I N A R Y 6

Z86E3/E3/E4 Figure 63. 44-Pin QFP Package Diagram Figure 64. 4-Pin Cerdip Window Lid Package Diagram 62 P R E L I M I N A R Y DS97Z8X5

Z86E3/E3/E4 Figure 65. 28-Pin DIP Package Diagram Figure 66. 28-Pin Window Cerdip Package Diagram DS97Z8X5 P R E L I M I N A R Y 63