Z86K15
KEYBOARD CONTROLLER
PRODUCT SPECIFICATION
PS004301-PER0100
ZiLOG WORLDWIDE HEADQUARTERS • 910 E. HAMILTON AVENUE • CAMPBELL, CA 95008
TELEPHONE: 408.558.8500 • FAX: 408.558.8300 • INTERNET: HTTP://WWW.ZILOG.COM
©2000 by ZiLOG, Inc. All rights reserved. Information in this publication concerning the devices, applications, or technology described is intended to suggest possible uses and may be superseded. ZiLOG, INC.
DOES NOT ASSUME LIABILITY FOR OR PROVIDE A REPRESENTATION OF ACCURACY OF
THE INFORMATION, DEVICES, OR TECHNOLOGY DESCRIBED IN THIS DOCUMENT. ZiLOG
ALSO DOES NOT ASSUME LIABILITY FOR INTELLECTUAL PROPERTY INFRINGEMENT
RELATED IN ANY MANNER TO USE OF INFORMATION, DEVICES, OR TECHNOLOGY
DESCRIBED HEREIN OR OTHERWISE. Except with the express written approval of ZiLOG, use of
information, devices, or technology as critical components of life support systems is not authorized. No
licenses are conveyed, implicitly or otherwise, by this document under any intellectual property rights.
Z86K15 Keyboard Controller
PS004301-PER0100
TABLE OF CONTENTS
1.
ARCHITECTURAL OVERVIEW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 Z86K15 KEYBOARD CONTROLLER FEATURES . . . . . . . . . . . . . . . . . . . . 1
1.2 FUNCTIONAL BLOCK DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.
PIN DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3.
ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1 ABSOLUTE MAXIMUM RATINGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2 STANDARD TEST CONDITIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.3 CAPACITANCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4 DC CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.5 AC ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.
PIN FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5.
FUNCTIONAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
6.
CONTROL REGISTERS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
7.
PACKAGE INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
8.
ORDERING INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
8.1 PART NUMBER DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
9.
DOCUMENT INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
9.1 DOCUMENT NUMBER DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
9.2 CHANGE LOG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
CUSTOMER FEEDBACK FORM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Z86K15 KEYBOARD CONTROLLER PRODUCT SPECIFICATION . . . . . . . .
CUSTOMER INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PRODUCT INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RETURN INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PROBLEM DESCRIPTION OR SUGGESTION . . . . . . . . . . . . . . . . . . . . . .
PS004301-PER0100
Z86K15 Keyboard Controller
5
5
5
6
6
7
29
29
29
29
29
29
iii
iv
Z86K15 Keyboard Controller
PS004301-PER0100
LIST OF FIGURES
FIGURE 1.
Z86K15 FUNCTIONAL BLOCK DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . . 2
FIGURE 2.
40-PIN DIP CONFIGURATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
FIGURE 3.
44-PIN PLCC CONFIGURATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
FIGURE 4.
TEST LOAD DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
FIGURE 5.
ADDITIONAL TIMING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
FIGURE 6.
PORTS 0 AND 1 CONFIGURATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
FIGURE 7.
PORT 2 CONFIGURATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
FIGURE 8.
PORT 3 CONFIGURATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
FIGURE 9.
PROGRAM MEMORY MAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
FIGURE 10. REGISTER FILE CONFIGURATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
FIGURE 11. REGISTER FILE ARCHITECTURE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
FIGURE 12. COUNTER/TIMERS BLOCK DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . 14
FIGURE 13. INTERRUPT BLOCK DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
FIGURE 14. RC OSCILLATOR CONFIGURATIONS . . . . . . . . . . . . . . . . . . . . . . . . . . 16
FIGURE 15. WDT TURN-ON TIMING AFTER RESET . . . . . . . . . . . . . . . . . . . . . . . . 17
FIGURE 16. STOP-MODE RECOVERY SOURCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
FIGURE 17. 40-PIN DIP PACKAGE DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
FIGURE 18. 44-PIN PLCC PACKAGE DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
PS004301-PER0100
Z86K15 Keyboard Controller
v
vi
Z86K15 Keyboard Controller
PS004301-PER0100
LIST OF TABLES
PS004301-PER0100
TABLE 1.
Z86K15 KEYBOARD CONTROLLER FEATURES . . . . . . . . . . . . . . . . . . . . 1
TABLE 2.
POWER CONNECTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
TABLE 3.
40-PIN DIP PIN IDENTIFICATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
TABLE 4.
44-PIN PLCC PIN IDENTIFICATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
TABLE 5.
ABSOLUTE MAXIMUM RATINGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
TABLE 6.
CAPACITANCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
TABLE 7.
DC CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
TABLE 8.
AC ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
TABLE 9.
REGISTER POINTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
TABLE 10.
INTERRUPT REQUEST REGISTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
TABLE 11.
TIMER MODE REGISTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
TABLE 12.
COUNTER/TIMER 0 REGISTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
TABLE 13.
PRESCALER 0 REGISTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
TABLE 14.
PORT 2 MODE REGISTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
TABLE 15.
PORT 2 OPEN DRAIN MODE REGISTER . . . . . . . . . . . . . . . . . . . . . . . 21
TABLE 16.
INTERRUPT PRIORITY REGISTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
TABLE 17.
INTERRUPT REQUEST REGISTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
TABLE 18.
INTERRUPT MASK REGISTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
TABLE 19.
FLAG REGISTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
TABLE 20.
REGISTER POINTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
TABLE 21.
STACK POINTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
TABLE 22.
ORDERING INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
TABLE 23.
PART NUMBER DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
TABLE 24.
PACKAGE DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Z86K15 Keyboard Controller
vii
viii
Z86K15 Keyboard Controller
PS004301-PER0100
ARCHITECTURAL OVERVIEW
Z86K15 KEYBOARD CONTROLLER FEATURES
1
ARCHITECTURAL OVERVIEW
The Z86K15 Keyboard Controller is a full-featured member of the Z8 ® MCU
family, offering a unique register-to-register architecture that avoids accumulator
bottlenecks. The Z86K15 is more code-efficient than RISC processors.
For keyboard applications demanding powerful I/O capabilities, the Z86K15 provides 32 pins dedicated to input and output for row, column, clock, data, and
LEDs.
An on-chip counter/timer is available to relieve the system of administering realtime tasks.
5 different internal or external interrupt sources are maskable and prioritized to
provide a vectored address for efficient interrupt subroutine handling and multitasking functions.
The Z86K15 achieves low EMI by means of several modifications in the clock
circuitry and output drivers.
1.1
Z86K15 KEYBOARD CONTROLLER FEATURES
Table 1 lists the features of the Z86K15 Keyboard Controller.
TABLE 1. Z86K15 KEYBOARD CONTROLLER FEATURES
Device
ROM
(KB)
Z86K15
4
•
•
•
•
•
•
•
•
•
•
•
•
PS004301-PER0100
I/O Speed
Lines (MHz)
32
3–5
Pin Count/Package
40-Pin DIP, 44-Pin PLCC, Chip On Board
4.5 V to 5.5 V Operating Range
0ºC to +70ºC Operating Temperature Range
188 Bytes of RAM
Low Power Consumption: 40 mW @ 5 MHz
5 Vectored, Priority Interrupts from 5 Different Sources
Programmable 8-Bit Counter/Timer, with 6-Bit Programmable Prescaler
Power-On Reset (POR) Timer, Hardware Watch-Dog Timer (WDT)
Digital-Input CMOS Levels with Internal Pull-Up Resistors
4 Direct-Connect LED Drive Ports
On-Chip RC Oscillator
Low System EMI Emission
Z86E15 Emulation OTP
Z86K15
1
ARCHITECTURAL OVERVIEW
FUNCTIONAL BLOCK DIAGRAM
Power connections follow the conventional descriptions outlined in Table 2.
TABLE 2. POWER CONNECTIONS
1.2
Connection
Circuit
Device
Power
Ground
VCC
GND
VDD
VSS
FUNCTIONAL BLOCK DIAGRAM
Figure 1 illustrates the functional block layout of the Z86K15 Keyboard Controller.
FIGURE 1. Z86K15 FUNCTIONAL BLOCK DIAGRAM
Output
Input
4
4
VCC
GND
RC IN
GND
Machine
Timing & Inst.
Control
Port 3
WDT
ALU
POR
Counter/
Timer
Flags
4 KB Program
Memory
Interrupt
Control
Register
Pointer
Register File
188 x 8-Bit
Program
Counter
Port 0
Port 1
Port 2
4
Input
I/O
(Bit Programmable)
2
4
4
Open-Drain Output
with weak pull-up
Z86K15
8
Open-Drain Output
with weak pull-up
PS004301-PER0100
PIN DESCRIPTION
FUNCTIONAL BLOCK DIAGRAM
2
PIN DESCRIPTION
Figure 2 illustrates the 40-pin DIP configuration for the Z86K15 Keyboard Controller and Table 3 describes the pin functions.
FIGURE 2. 40-PIN DIP CONFIGURATION
P30
P31
P32
P33
GND
GND
P27
P26
P25
P24
GND
VCC
P00
P01
P02
P03
P04
P05
P06
P07
1
40
Z86K15
40-Pin DIP
20
21
P23
P22
P21
P20
P37
P36
P35
P34
RCIN
GND
GND
VCC
P17
P16
P15
P14
P13
P12
P11
P10
TABLE 3. 40-PIN DIP PIN IDENTIFICATION
PS004301-PER0100
Pin #
Symbol
Function
Direction
1–4
5–6
7–10
11
12
13–20
21–28
29
30
31
32
33–36
37–40
P30–P33
GND
P27–P24
GND
VCC
P00–P07
P10–P17
VCC
GND
GND
RCIN
P34–P37
P20–P23
Port 3, Pins 0,1,2,3
Ground
Port 2, Pins 7,6,5,4
Ground
Power Supply
Port 0, Pins 0,1,2,3,4,5,6,7
Port 1, Pins 0,1,2,3,4,5,6,7
Power Supply
Ground
Ground
RCIN
Port 3, Pins 4,5,6,7
Port 2, Pins 0,1,2,3
Input
Z86K15
In/Output
Power
Output
Output
Power
Input
Output
Input
3
PIN DESCRIPTION
FUNCTIONAL BLOCK DIAGRAM
Figure 3 illustrates the 44-pin PLCC configuration and Table 4 describes the pin
functions.
GND
GND
P33
P32
P31
P30
P23
P22
P21
P20
P37
FIGURE 3. 44-PIN PLCC CONFIGURATION
6
1
7
40
39
Z86K15
44-Pin PLCC
17
29
28
18
NC
P36
P35
P34
RCIN
NC
AGND
GND
VCC
P17
NC
P04
P05
P06
P07
P10
P11
P12
P13
P14
P15
P16
NC
P27
P26
P25
P24
GND
VCC
P00
P01
P02
P03
TABLE 4. 44-PIN PLCC PIN IDENTIFICATION
4
Pin #
Symbol
Function
Direction
1–4
5–7
8–11
12
13
14–21
22–28
29
30
31
32
33
34
35
36–38
39
40
41–44
P30–P33
GND
P27–P24
GND
VCC
P00–P07
P10–P16
NC
P17
VCC
GND
AGND
NC
RCIN
P34–P36
NC
P37
P20–P23
Port 3, Pins 0,1,2,3
Test Pins—Ground
Port 2, Pins 4,5,6,7
Ground
Power Supply
Port 0, Pins 0,1,2,3,4,5,6,7
Port 1, Pins 0,1,2,3,4,5,6
Not Connected
Port 1, Pin 7
Power Supply
Ground
Ground
Not Connected
RCIN
Port 3, Pins 4,5,6
Not Connected
Port 3, Pin 7
Port 2, Pins 0,1,2,3
Input
Z86K15
In/Output
Power
Output
Output
Output
Power
Input
Output
Output
In/Output
PS004301-PER0100
ELECTRICAL CHARACTERISTICS
ABSOLUTE MAXIMUM RATINGS
3
ELECTRICAL CHARACTERISTICS
3.1 ABSOLUTE MAXIMUM RATINGS
Table 5 provides Absolute Maximum Ratings for the Z86K15 Keyboard Controller.
TABLE 5. ABSOLUTE MAXIMUM RATINGS
Symbol
Description
Min
Max
Units
VCC
TSTG
IA
Supply Voltage*
Storage Temp
Operating Ambient Temperature
–0.3
–65
0
+7.0
+150
+105
V
ºC
°C
NOTE: *Voltage on all pins with respect to GND.
Stresses greater than those listed under Absolute Maximum Ratings may cause
permanent damage to the device. This rating 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 dissipation should not exceed 1.21 W for the package. Power dissipation is calculated as follows:
Total Power Dissipation = VDD x [IDD – (sum of IOH),
+ sum of [(VDD – VOH) x IOH]
+ sum of (VOL x IOL)
3.2
STANDARD TEST CONDITIONS
The characteristics listed here apply for standard test conditions as noted. All voltages are referenced to GND. Positive current flows into the referenced pin (Figure 4).
FIGURE 4. TEST LOAD DIAGRAM
From Output
Under Test
150 pF
PS004301-PER0100
Z86K15
5
ELECTRICAL CHARACTERISTICS
3.3
CAPACITANCE
CAPACITANCE
TA = 25ºC; VCC = GND = 0 V; f = 1.0 MHz; unmeasured pins returned to GND
(see Table 6).
TABLE 6. CAPACITANCE
3.4
Parameter
Max
Input Capacitance
Output Capacitance
I/O Capacitance
12 pF
12 pF
12 pF
DC CHARACTERISTICS
Table 7 provides Direct Current characteristics for the Z86K15 Keyboard Controller.
TABLE 7. DC CHARACTERISTICS
Sym Parameter
Min
Max
Unit Condition
VCH
Clock Input High Voltage
0.7 VCC
VCC + 0.3 V
V
Driven by External Clock
Generator
VCL
Clock Input Low Voltage
GND –0.3
0.2 VCC
V
Driven by External Clock
Generator
VIH
Input High Voltage
0.7 VCC
VCC + 0.3
V
VIL
Input Low Voltage
GND – 0.3
0.2 VCC
V
VOH
Output High Voltage
VCC – 0.4
V
IOH = –2.0 mA
VOH
Output High Voltage
VCC – 0.6
V
IOH = –2.0 mA1
VOL
Output Low Voltage
.4
V
IOL = 4 mA
VOL
Output Low Voltage
.8
V
IOL = 4 mA1
IOL
Output Low Current
10
20
mA
VOL = VCC –2.2 V1,2
IOL
Output Leakage Current
–1
1
µA
VIN = 0 V, 5.25 V
ICC
VCC Supply Current
8
mA
@ 5.0 MHz
ICC1
Halt Mode Current
3
mA
@ 5.0 MHz
ICC2
Stop Mode Current
60
µA
RP
Pull-Up Resistor
6.76
14.04
RP
Pull-Up Resistor (P26–P27)
1.8
3
KΩ
KΩ
NOTES:
1. VCC = 5.0 V ± 10% @ 0°C to + 70°C.
2. Ports P37–P34. These may be used for LEDs or as general-purpose outputs requiring high sink current.\
6
Z86K15
PS004301-PER0100
ELECTRICAL CHARACTERISTICS
AC ELECTRICAL CHARACTERISTICS
3.5
AC ELECTRICAL CHARACTERISTICS
The ambient temperature (TA) range for the Z86K15 Keyboard Controller’s alternating current (AC) characteristics is 0ºC to 70ºC, at 5 MHz (Table 8).
TABLE 8. AC ELECTRICAL CHARACTERISTICS
No
Symbol
Parameter
VCC
Min
Max
Units
Notes
1
TpC
Input Clock Period
5.0 V
200
333
ns
1
2
TrC, TfC
Clock Input Rise & Fall Times
5.0 V
25
ns
1
3
TwC
Input Clock Width
5.0 V
37
ns
1
4
TwIL
Interrupt Request Low Time
5.0 V
3TpC
1,2
5
TwIH
Interrupt Request Input High Time
5.0 V
3TpC
1,3
6
Tost
Oscillator Start-Up Time
5.0 V
7
Twsm
Stop-Mode Recovery Width Spec
5.0 V
5TpC
ns
8
Twdt
Watch-Dog Timer Delay Time
5.0 V
53
ms
9
Tpor
Power-On Reset
5.0 V
50
5TpC
200
4
ms
NOTES:
1. Timing Reference uses 0.7 VCC for a logic 1 and 0.2 VCC for a logic 0.
2. Interrupt request through Port 3 (P30).
3. Interrupt request through Port 3 (P31–P33).
4. After Stop-Mode Recovery.
Additional timing characteristics of the Z86K15 are illustrated in Figure 5.
FIGURE 5. ADDITIONAL TIMING
3
1
Clock
2
2
3
IRQN
4
5
Clock
Stop-Mode
Recovery
6
Stop-Mode
Recovery
Source
7
PS004301-PER0100
Z86K15
7
PIN FUNCTIONS
4
PIN FUNCTIONS
Port 0 (P07–P00). Port 0 is an 8-bit, CMOS-compatible, high-impedance pull-up/
low-impedance pull-down output (Figure 6).
Port 1 (P17–P10). Port 1 is an 8-bit, CMOS-compatible, high-impedance pull-up/
low-impedance pull-down output port (Figure 6).
FIGURE 6. PORTS 0 AND 1 CONFIGURATION
Z86K15
H/L Output
8
Ports 0, 1
VCC
PAD
Output
8
Z86K15
PS004301-PER0100
PIN FUNCTIONS
Port 2 (P27–P20). Port 2 is an 8-bit CMOS-compatible Port with 4-bit input and
4-bit programmable I/O (Figure 7). P20–P25 feature 10.4-KΩ (±35%) pull-up
resistors. P26–P27 feature 2.4-KΩ (±25%) pull-up resistors.
NOTE: Only 1 bit is used to program all 4 bits of P2OUT (P24–P27; Open-Drain/Push-
Pull). To meet keyboard application requirements, all 4 bits are open-drain.
FIGURE 7. PORT 2 CONFIGURATION
Input
4
Z86K15
I/O
VCC
(a) Ports P20-–P23
10.4 KΩ
Input
PAD
VCC
(b) Ports P24–P25
10.4 KΩ
(a) Ports P20–P23
OEN
Open-Drain
PAD
Out
Input
In
VCC
(c) Ports P26–P27
2.4 KΩ
OEN
PAD
Out
Input
In
PS004301-PER0100
Z86K15
9
PIN FUNCTIONS
Port 3 (P37–P30). Port 3 is an 8-bit, CMOS-compatible 4-fixed input (P33–P30)
and 4-fixed output (P37–P34) I/O port. Port 3 inputs feature 10.4-KΩ pull-up
resistors. Outputs are capable of directly driving LEDs. See Figure 8.
Port 3 is configured under software control to provide 4 external interrupt request
signals (IRQ0–IRQ3).
FIGURE 8. PORT 3 CONFIGURATION
Port 3
Z86K15
VCC
(a) Port 3 P34-–P37
10.4 kΩ
Output
PAD
VCC
10.4 KΩ
(b) Port 3 P30–P33
Input
10
PAD
Z86K15
PS004301-PER0100
FUNCTIONAL DESCRIPTION
5
FUNCTIONAL DESCRIPTION
Program Memory. The 12-bit program counter addresses 4 KB of internal pro-
gram memory space (Figure 9).
The first 12 bytes of program memory are reserved for the interrupt vectors. These
locations provide six 16-bit vectors that correspond to the 5 available interrupts.
Byte 12 to byte 4095 consist of on-chip, mask-programmed ROM. Addresses
4096 and greater are reserved.
FIGURE 9. PROGRAM MEMORY MAP
65535
Reserved
4096
4095
Location of
First Byte of
Instruction
Executed
After RESET
Interrupt
Vector
(Lower Byte)
Interrupt
Vector
(Upper Byte)
PS004301-PER0100
FFFh
On-Chip
ROM
12
0Ch
11
Reserved
10
Reserved
9
IRQ4
8
IRQ4
7
IRQ3
6
IRQ3
5
IRQ2
4
IRQ2
3
IRQ1
2
IRQ1
1
IRQ0
0
IRQ0
Z86K15
11
FUNCTIONAL DESCRIPTION
Register File. The register file (Figure 10) consists of 4 I/O port registers, 188
general-purpose registers, and 11 control and status registers (R3–R0, R191–R4,
and R255–R240, respectively). The instructions can access registers directly or
indirectly through an 8-bit address field. This access allows short, 4-bit register
addressing using the Register Pointer (Table 9). In the 4-bit mode, the register file
is divided into 13 working-register groups, each occupying 16 continuous locations. The Register Pointer addresses the starting location of the active workingregister group.
For the complete Register File Assignment, refer to Figure 10.
FIGURE 10. REGISTER FILE CONFIGURATION
LOCATION
IDENTIFIERS
SPL
R255
Stack Pointer (Bits 7-0)
R254
Reserved
R253
Register Pointer
R252
Program Control Flags
FLAGS
R251
Interrupt Mask Register
IMR
R250
Interrupt Request Register
IRQ
R249
Interrupt Priority Register
IPR
R248
Reserved
R247
Port 2OP*
P2P
R246
Port 2 DIR*
P2D
R245
T0 Prescaler
R244
Timer/Counter0
R243
Reserved
R242
Reserved
R241
Timer Mode
R240
Reserved
RP
PREQ
T0
TMR
Not Implemented
R191
General-Purpose
Registers
R4
R3
Port 3
P3
R2
Port 2
P2
R1
Port 1
P1
R0
Port 0
P0
Note: *Does not reset with a Stop-Mode Recovery.
12
Z86K15
PS004301-PER0100
FUNCTIONAL DESCRIPTION
TABLE 9. REGISTER POINTER—R253 (FDH: READ/WRITE)
Bit
R/W
Reset
D7
D6
D5
D4
R/W
R/W
R/W
R/W
0
0
0
0
D3
D2
D1
D0
X
X
X
X
NOTE: R = Read, W = Write, X = Indeterminate.
Bit
Bit
Position Field
R/W
Reset
Value Description
D7
r7
R/W
0
Register Pointer
D6
r6
R/W
0
Register Pointer
D5
r5
R/W
0
Register Pointer
D4
r4
R/W
0
Register Pointer
D3–D0
Reserved
X
Reserved; must be 0
The complete Register File Architecture is illustrated in Figure 11.
FIGURE 11. REGISTER FILE ARCHITECTURE
Z8 Standard Control Registers
Register Pointer
7
6
5
4
3
2
1
Working Register
Group Pointer
Register
0
Reserved Register
Z8 Register File
%FF
%FO
Not
available
%BF
*
*
% FF
SPL
% FE
Reserved
% FD
RP
% FC
FLAGS
% FB
IMR
% FA
IRQ
% F9
IPR
% F8
Reserved
% F7
P2P
% F6
P2D
% F5
PRE0
% F4
T0
% F3
Reserved
% F2
Reserved
% F1
TMR
% F0
Reserved
Register Group (0)
Port Registers
% (0) 03
P3
% (0) 02
P2
% (0) 01
P1
% (0) 00
P0
%0F
%00
Note: *Does not reset with a Stop-Mode Recovery.
PS004301-PER0100
Z86K15
13
FUNCTIONAL DESCRIPTION
Counter/Timers. There is an 8-bit programmable counter/timer (T0) driven by its
own 6-bit programmable prescaler (Figure 12).
The 6-bit prescaler can divide the input frequency of the clock by any integer
number from 1 to 64. The prescaler drives its counter, which decrements the value
(1 to 256) on the prescaler overflow. When both the counter and prescaler reach
the end of count, a timer interrupt request, IRQ4, is generated.
The counter can be programmed to start, stop, restart to continue, or restart from
the initial value. The counter 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 counter, but not the prescaler,
can be read at any time without disturbing its value or COUNT mode.
FIGURE 12. COUNTER/TIMERS BLOCK DIAGRAM
Internal Data Bus
WRITE
OSC
÷4
14
WRITE
READ
PRE0
Initial Value
Register
T0
Initial Value
Register
6-Bit
Down
Counter
Prescaler
8-Bit
Down
Counter
Z86K15
T0
Current Value
Register
IRQ4
PS004301-PER0100
FUNCTIONAL DESCRIPTION
Interrupts. The Z86K15 features 5 different interrupts from 5 different sources.
These interrupts are maskable and prioritized (Figure 13). The 5 sources are
divided as follows: 4 sources are claimed by Port 3 lines P33–P30, and the other
is claimed by the counter/timer. The Interrupt Mask Register globally or individually enables or disables the 5 interrupt requests.
FIGURE 13. INTERRUPT BLOCK DIAGRAM
IRQ0–IRQ4
5
IRQ
IMR
5
Global
Interrupt
Enable
Interrupt
Request
IPR
Priority
Logic
Vector Select
When more than 1 interrupt is pending, priorities are resolved by a programmable
priority encoder that is controlled by the Interrupt Priority register. All interrupts
are vectored through locations in the program memory. When an interrupt
machine cycle is activated, an interrupt request is granted, thus disabling all of the
subsequent interrupts. The program counter and status flags are saved. The interrupt machine cycle then branches to the program memory vector location reserved
for the interrupt. This memory location and the next byte contain the 16-bit
address of the interrupt service routine for this 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 request
requires service.
PS004301-PER0100
Z86K15
15
FUNCTIONAL DESCRIPTION
RC Oscillator. The Z86K15 provides an internal capacitor to accommodate an
RC oscillator configuration. A 1% precision resistor is necessary to achieve ±10%
accurate frequency oscillation. For a nominal 4-MHz signal, use a 7.68 KΩ resistor.
RCIN. A precision resistor is connected between this pin and the power supply to
form the RC oscillator.
The Z86K15 also accepts an external clock from (RCIN) with AGND connected
to VCC (Figure 14).
FIGURE 14. RC OSCILLATOR CONFIGURATIONS
VCC
1% Precision, typically
7.68KΩ ±1%
RCIN
GND
CLKOUT
RC Oscillator
External Clock
RCIN
VCC
AGND
External Clock
16
Z86K15
PS004301-PER0100
FUNCTIONAL DESCRIPTION
Watch-Dog Timer. The Watch-Dog Timer (WDT) is automatically activated by
power-on when it is enabled in the Mask Option. The WDT is a retriggerable single-shot timer that resets the Z8 if the Z8 reaches its terminal count. The WDT is
driven by the system clock. The WDT must be refreshed at least 1 time during
each WDT period by executing the WDT instruction. WDT can be enabled by
Mask Option (Figure 15).
WDT Hot Bit. Bit 7 of the Interrupt Request register (IRQ register FAh) determines whether a hot start or cold start occurred. A cold start is defined as reset
occurring from power-up of the Z86K15 (the default upon power-up is 0). A hot
start occurs after a WDT time-out (bit 7 is set to 1). Bit 7 of the IRQ register is
read-only and is automatically reset to 0 when read.
Watch-Dog Timer Time-Out. The WDT time-out is 294,912 ÷ f.
WDT During HALT (D5–R250). This bit determines whether or not the WDT is
active during HALT mode. The default is 1, and a 1 indicates active during HALT.
FIGURE 15. WDT TURN-ON TIMING AFTER RESET
VCC
Internal
Reset
POR
CPU Operation
Note: *Reset Delay = POR 50 to 200 ms.
Power-On Reset (POR). A timer circuit is triggered by the system oscillator and
is used for the Power-On Reset (POR) timer function. The POR time allows V CC
and the oscillator circuit to stabilize before instruction execution begins. The POR
period is defined as:
POR =
PS004301-PER0100
589,824
f
Z86K15
17
FUNCTIONAL DESCRIPTION
The POR timer circuit is a single-shot timer triggered by Power Fail to Power OK
status. The POR time is a nominal 50 to 200 ms. The POR timer is bypassed during Stop-Mode Recovery (SMR).
HALT. HALT turns off the internal CPU clock, but not the RC oscillator. The
counter/timer and external interrupts IRQ0, IRQ1, IRQ2, and IRQ3 remain active.
The Z86K15 is recovered by interrupts, either externally or internally (Table 10).
STOP. This instruction turns off the internal clock and oscillator, reducing the
standby current to less than 60 µA. The STOP mode is terminated by an enabled
external interrupt. This termination causes the processor to restart the application
program at address 000Ch or the active external interrupt vector. 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 flush the pipeline, the user must execute a NOP (Op Code = FFh) immediately before the appropriate sleep instruction, such as:
FF
6F
NOP
STOP
FF
7F
NOP
HALT
; clear the pipeline
; enter STOP mode
or
; clear the pipeline
; enter HALT mode
Bit 6 of the IRQ Registers are flags for Stop-Mode Recovery (Table 10).
TABLE 10. INTERRUPT REQUEST REGISTER—R250 IRQ (FAH: READ/WRITE)
Bit
R/W
Reset
D7
R
0
D6
R/W
0
D5
R/W
0
D4
R/W
0
D3
R/W
0
D2
R/W
0
D1
R/W
0
D0
R/W
0
NOTE: R = Read, W = Write, X = Indeterminate.
Bit
Bit
Position Field
R/W
Reset
Value Description
D7
WDT
R
0
D6
STOP
R/W
0
D5
WDT
R/W
0
D4–D0
IRQ4–IRQ0
R/W
0
Watch-Dog Timer Hot Bit
0: POR*
1: WDT Time-out
Stop-Mode Recovery Flag
0: POR/WDT
1: Stop Recovery
Watch-Dog Timer During HALT Mode
0: OFF*
1: ON
IRQ0 = P32 Input
IRQ1 = P33 Input
IRQ2 = P31 Input
IRQ3 = P30 Input
IRQ4 = T0
NOTE: *Upon Reset.
18
Z86K15
PS004301-PER0100
FUNCTIONAL DESCRIPTION
Cold or Warm Start (D6). This bit is set upon entering STOP mode. A 0 (cold)
indicates that the device is awakened by a POR/WDT RESET. A 1 (warm) indicates that the device is awakened by a SMR source. This bit is reset when read.
A negative transition on the host data line or any of the designated row input pins
recover the Z86K15 from STOP mode. See Figure 16.
FIGURE 16. STOP-MODE RECOVERY SOURCE
P20–P23, P26,
P30–P33
PS004301-PER0100
To Internal
Stop-Mode Recovery
Z86K15
19
CONTROL REGISTERS
6
CONTROL REGISTERS
Control Register bit definitions are provided in Tables 11 through 21.
TABLE 11. TIMER MODE REGISTER—R241 TMR (F1H: READ/WRITE)
Bit
R/W
D7
D6
D5
D4
D3
D2
D1
D0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
X
X
X
X
X
X
0
0
Reset
NOTE: R = Read, W = Write, X = Indeterminate.
Bit
Bit
Position Field
R/W
Reset
Value Description
D7–D2
Reserved
R/W
X
Reserved; must be 0
D1
T0 Count
R/W
0
Timer 0 Count
0: Disable T0 Count
1: Enable T0 Count
D0
T0
R/W
0
Timer0
0: No Function
1: Load T0
TABLE 12. COUNTER/TIMER 0 REGISTER—R244 T0 (F4H: READ/WRITE)
Bit
R/W
D7
D6
D5
D4
D3
D2
D1
D0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
X
X
X
X
X
X
X
X
Reset
NOTE: R = Read, W = Write, X = Indeterminate.
20
Bit
Bit
Position Field
R/W
D7–D0
T0 Initial
Value
R/W
X
Timer0 Initial Value when WRITE;
range = 1–256 decimal, 01–100 hex
T0 Current
Value
R/W
X
Timer0 Current Value when READ
Z86K15
Reset
Value Description
PS004301-PER0100
CONTROL REGISTERS
TABLE 13. PRESCALER 0 REGISTER—R245 PRE0 (F5H: WRITE ONLY)
Bit
D7
D6
D5
D4
D3
D2
D1
D0
R/W
W
W
W
W
W
W
W
W
Reset
X
X
X
X
X
X
X
X
NOTE: W = Write, X = Indeterminate.
Bit
Bit
Position Field
R/W
Reset
Value Description
D7–D2
Prescaler
W
X
Prescaler Modulo; range = 1–64
decimal, 01–40 hex
D1
Reserved
W
X
Reserved; must be 0
D0
Count
W
X
COUNT Mode
0: T0 Single Pass
1: T0 Modulo N
TABLE 14. PORT 2 MODE REGISTER—R246 P2D (F6H: WRITE ONLY)
Bit
D7
D6
D5
D4
D3
D2
D1
D0
R/W
W
W
W
W
W
W
W
W
Reset
1
1
1
1
0
0
0
0
NOTE: W = Write.
Bit
Bit
Position Field
R/W
Reset
Value Description
D7–D4
P24–P27
W
1
P24–P27 I/O Definition
0: Defines bit as Output
1: Defines bit as Input
D3–D0
Reserved
W
0
Reserved; must be 0
TABLE 15. PORT 2 OPEN DRAIN MODE REGISTER—R247 P2P (F7H: WRITE ONLY)
Bit
D7
D6
D5
D4
D3
D2
D1
D0
R/W
W
W
W
W
W
W
W
W
Reset
0
0
0
0
0
0
0
X
NOTE: W = Write, X = Indeterminate.
Bit
Bit
Position Field
R/W
D7–D1
Reserved
W
D0
P24–P27
W
Reset
Value Description
0
Reserved; must be 0
0: P24–P27 Open-Drain*
1: P24–P27 Push-Pull
NOTE: Must be open-drain to satisfy PS/2 operation.
PS004301-PER0100
Z86K15
21
CONTROL REGISTERS
TABLE 16. INTERRUPT PRIORITY REGISTER—R249 IPR (F9H: WRITE ONLY)
Bit
D7
D6
D5
D4
D3
D2
D1
D0
R/W
W
W
W
W
W
W
W
W
Reset
X
X
X
X
X
X
X
X
NOTE: W = Write, X = Indeterminate.
Bit
Bit
Position Field
22
R/W
Reset
Value Description
D7–D6
Reserved
W
X
Reserved; must be 0
D5
Reserved
W
X
Reserved
D4–D3,
D0
Interrupt
W
X
Interrupt Group Priority
Reserved = 000
C > A > B = 001
A > B > C = 010
A > C > B = 011
B > C > A = 100
C > B > A = 101
B > A > C = 110
Reserved = 111
D2
IRQ0, IRQ4
W
X
IRQ0, IRQ4 Priority (Group C)
0: IRQ1 > IRQ4
1: IRQ4 > IRQ1
D1
IRQ0, IRQ2
W
X
IRQ0, IRQ2 Priority (Group B)
0: IRQ2 > IRQ0
1: IRQ0 > IRQ2
Z86K15
PS004301-PER0100
CONTROL REGISTERS
TABLE 17. INTERRUPT REQUEST REGISTER—R250 IRQ (FAH: READ/WRITE)
Bit
D7
D6
D5
D4
D3
D2
D1
D0
R/W
R
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset
0
0
0
0
0
0
0
0
NOTE: R = Read, W = Write.
Bit
Bit
Position Field
R/W
Reset
Value Description
D7
WDT
R
0
Watch-Dog Timer Hot Bit
0: POR*
1: WDT Time-out
D6
STOP
R/W
0
Stop Flag
0: POR/WDT
1: Stop-Mode Recovery
D5
STOP
R/W
0
Stop Delay
0: OFF*
1: ON
D4–D0
IRQ4–IRQ0
R/W
0
IRQ0 = P32 Input
IRQ1 = P33 Input
IRQ2 = P31 Input
IRQ3 = P30 Input
IRQ4 = T0
NOTE: Upon Reset.
TABLE 18. INTERRUPT MASK REGISTER—R251 IMR (FBH: READ/WRITE)
Bit
R/W
D7
D6
D5
D4
D3
D2
D1
D0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
0
X
X
0
0
0
0
0
Reset
NOTE: R = Read, W = Write, X = Indeterminate.
PS004301-PER0100
Bit
Bit
Position Field
R/W
D7
Interrupt
R/W
0
1: Enables Interrupts
D6–D5
Reserved
R/W
X
Reserved; must be 0
D4–D0
IRQ4–IRQ0
R/W
0
1: Enables IRQ0–IRQ4; D0 = IRQ0
Z86K15
Reset
Value Description
23
CONTROL REGISTERS
TABLE 19. FLAG REGISTER—R252 (FCH: READ/WRITE)
Bit
R/W
Reset
D7
D6
D5
D4
D3
D2
D1
D0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
0
0
0
0
0
0
0
0
NOTE: R = Read, W = Write.
Bit
Bit
Position Field
R/W
Reset
Value Description
D7
R/W
0
Carry Flag
D6
R/W
0
Zero Flag
D5
R/W
0
Sign Flag
D4
R/W
0
Overflow Flag
D3
R/W
0
Decimal Adjust Flag
D2
R/W
0
Half Carry Flag
D1
R/W
0
User Flag F2
D0
R/W
0
User Flag F1
TABLE 20. REGISTER POINTER—R253 (FDH: READ/WRITE)
Bit
R/W
Reset
D7
D6
D5
D4
D3
D2
D1
D0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
0
0
0
0
X
X
X
X
NOTE: R = Read, W = Write, X = Indeterminate.
24
Bit
Bit
Position Field
R/W
D7
r7
R/W
0
Register Pointer
D6
r6
R/W
0
Register Pointer
D5
r5
R/W
0
Register Pointer
D4
r4
R/W
0
Register Pointer
D3–D0
Reserved
R/W
X
Reserved; must be 0
Z86K15
Reset
Value Description
PS004301-PER0100
CONTROL REGISTERS
TABLE 21. STACK POINTER—R255 (FFH: READ/WRITE)
Bit
R/W
Reset
D7
D6
D5
D4
D3
D2
D1
D0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
X
X
X
X
X
X
X
X
NOTE: R = Read, W = Write, X = Indeterminate.
PS004301-PER0100
Bit
Bit
Position Field
R/W
D7–D0
R/W
SP0–SP7
Z86K15
Reset
Value Description
X
Stack Pointer
25
PACKAGE INFORMATION
7
PACKAGE INFORMATION
Figures 17 and 18 illustrate the 40-pin DIP and the 44-pin PLCC packages,
respectively.
FIGURE 17. 40-PIN DIP PACKAGE DIAGRAM
FIGURE 18. 44-PIN PLCC PACKAGE DIAGRAM
26
Z86K15
PS004301-PER0100
ORDERING INFORMATION
PART NUMBER DESCRIPTION
8
ORDERING INFORMATION
Ordering Information for the Z86K15 Keyboard Controller is provided in Table 22.
TABLE 22. ORDERING INFORMATION
8.1
Part
PSI
Description
Z86K15
Z86K1505PSC
Z86K1505VSC
40-Pin DIP, 5 MHz, Standard Temperature
44-Pin PLCC, 5 MHz, Standard Temperature
PART NUMBER DESCRIPTION
ZiLOG part numbers consist of a number of components, as indicated in Tables
23 and 24:
TABLE 23. PART NUMBER DESCRIPTION
Z
86K15
05
P
S
C
ZiLOG prefix
Product Number
Speed
Package
Temperature
Environmental Flow
TABLE 24. PACKAGE DESCRIPTION
Preferred Package
Preferred Temperature
Speed
Environmental
P = Plastic DIP
V = Plastic Chip Carrier
S = 0°C to +70°C
5 = 5 MHz
C = Plastic Standard
EXAMPLE: Part number Z86K1505PSC is a Z86K15 MCU, a 5-MHz dual-inline package
with 0ºC to +70ºC temperature range and Plastic Standard environmental flow.
For fast results, contact your local ZiLOG sales office for assistance in ordering
the part required.
PS004301-PER0100
Z86K15
27
DOCUMENT INFORMATION
9
DOCUMENT NUMBER DESCRIPTION
DOCUMENT INFORMATION
9.1 DOCUMENT NUMBER DESCRIPTION
The Document Control Number that appears in the footer of each page of this
document contains unique identifying attributes, as indicated in the following
table:
PS
Product Specification
0043
Unique Document Number
01
Revision Number
PER
Business Channel
0100
Month and Year Published
Rev
Date
Purpose
By
01
01/00
Original issue
J. Irwin
9.2 CHANGE LOG
28
Z86K15
PS004301-PER0100
CUSTOMER FEEDBACK FORM
Z86K15 KEYBOARD CONTROLLER PRODUCT SPECIFICATION
CUSTOMER FEEDBACK FORM
Z86K15 KEYBOARD CONTROLLER PRODUCT SPECIFICATION
If you experience any problems while operating this product, or if you note any
inaccuracies while reading this Product Specification, please copy and complete
this form, then mail or fax it to ZiLOG (see Return Information, below). We also
welcome your suggestions!
CUSTOMER INFORMATION
Name
Country
Company
Phone
Address
Fax
City/State/Zip
E-Mail
PRODUCT INFORMATION
Serial # or Board Fab #/Rev. #
Software Version
Document Number
Host Computer Description/Type
RETURN INFORMATION
ZiLOG
System Test/Customer Support
910 E. Hamilton Avenue, Suite 110, MS 4–3
Campbell, CA 95008
Fax: (408) 558-8536
Email: tools@zilog.com
PROBLEM DESCRIPTION OR SUGGESTION
Provide a complete description of the problem or your suggestion. If you are
reporting a specific problem, include all steps leading up to the occurrence of the
problem. Attach additional pages as necessary.
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
PS004301-PER0100
Z86K15
29
CUSTOMER FEEDBACK FORM
30
PROBLEM DESCRIPTION OR SUGGESTION
Z86K15
PS004301-PER0100
INDEX
NUMERICS
G
40-Pin DIP Configuration . . . . . . . . . . . . . . . 3
40-Pin DIP Pin Identification . . . . . . . . . . . . 3
44-Pin PLCC Configuration . . . . . . . . . . . . . 4
44-Pin PLCC Pin Identification . . . . . . . . . . 4
4-bit mode . . . . . . . . . . . . . . . . . . . . . . . . . . 12
GND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
H
host data line . . . . . . . . . . . . . . . . . . . . . . . . 19
I
A
input frequency . . . . . . . . . . . . . . . . . . . . . . 14
internal CPU clock . . . . . . . . . . . . . . . . . . . 18
Interrupt Mask Register . . . . . . . . . . . . 15, 23
Interrupt Priority Register . . . . . . . . . . . 15, 22
Interrupt Request . . . . . . . . . . . . . 7, 14-15, 17
Register . . . . . . . . . . . . . . . . . . . . . . . 18, 23
interrupt sources . . . . . . . . . . . . . . . . . . . . . . 1
interrupt subroutine handling . . . . . . . . . . . . 1
interrupt vector . . . . . . . . . . . . . . . . . . . 11, 18
Interrupts . . . . . . . . . . . . . . . . . . . 1, 11, 15, 23
IRQ0 . . . . . . . . . . . . . . . . . . . . . 10, 18, 22, 23
IRQ1 . . . . . . . . . . . . . . . . . . . . . . . . 18, 22, 23
IRQ2 . . . . . . . . . . . . . . . . . . . . . . . . 18, 22, 23
IRQ3 . . . . . . . . . . . . . . . . . . . . . . . . 10, 18, 23
IRQ4 . . . . . . . . . . . . . . . . . . . . . 14, 18, 22, 23
Absolute Maximum Ratings . . . . . . . . . . . . . 5
AC Electrical Characteristics . . . . . . . . . . . . 7
alternating current . . . . . . . . . . . . . . . . . . . . . 7
ambient temperature range . . . . . . . . . . . . . . 7
Architectural Overview . . . . . . . . . . . . . . . . . 1
B
bit definitions . . . . . . . . . . . . . . . . . . . . . . . 20
C
Capacitance . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Change Log . . . . . . . . . . . . . . . . . . . . . . . . . 28
clock circuitry . . . . . . . . . . . . . . . . . . . . . . . . 1
cold start . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Control Registers . . . . . . . . . . . . . . . . . . . . . 20
Counter/Timer . . . . . . . . . . . . . . . . . 14-15, 18
Counter/Timer 0 Register . . . . . . . . . . . . . . 20
Customer Feedback Form . . . . . . . . . . . . . . 29
Customer Information . . . . . . . . . . . . . . . . . 29
L
Low Power Consumption . . . . . . . . . . . . . . . 1
M
modulo-n continuous mode . . . . . . . . . . . . 14
multitasking . . . . . . . . . . . . . . . . . . . . . . . . . 1
D
DC Characteristics . . . . . . . . . . . . . . . . . . . . 6
Direct Current . . . . . . . . . . . . . . . . . . . . . . . . 6
Document Information . . . . . . . . . . . . . . . . 28
Document Number Description . . . . . . . . . 28
N
NOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
O
E
on-chip counter/timer . . . . . . . . . . . . . . . . . . 1
Op Code . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Open-Drain . . . . . . . . . . . . . . . . . . . . . . . 9, 21
Operating Range . . . . . . . . . . . . . . . . . . . . . . 1
Operating Temperature . . . . . . . . . . . . . . . . . 1
Ordering Information . . . . . . . . . . . . . . . . . 27
output drivers . . . . . . . . . . . . . . . . . . . . . . . . 1
Electrical Characteristics . . . . . . . . . . . . . . . . 5
external interrupt request . . . . . . . . . . . . . . . 10
external interrupts . . . . . . . . . . . . . . . . . . . . 18
F
Functional Block Diagram . . . . . . . . . . . . . . 2
Functional Description . . . . . . . . . . . . . . . . 11
P
P2OUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
PS004301-PER0100
Z86K15 Keyboard Controller
31
Package Information . . . . . . . . . . . . . . . . . . 26
Part Number Description . . . . . . . . . . . . . . . 27
Pin Description . . . . . . . . . . . . . . . . . . . . . . . 3
Pin Functions . . . . . . . . . . . . . . . . . . . . . . . . . 8
POR . . . . . . . . . . . . . . . . . . . . . . .1, 17, 19, 23
timer circuit . . . . . . . . . . . . . . . . . . . . . . . 18
Port 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . 3, 4, 8
Port 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . 3, 4, 8
Port 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . 3, 4, 9
Port 2 Mode Register . . . . . . . . . . . . . . . . . 21
Port 2 Open Drain Mode Register . . . . . . . . 21
Port 3 . . . . . . . . . . . . . . . . . . . . . 3-4, 7, 10, 15
Power connections . . . . . . . . . . . . . . . . . . . . 2
Power Fail . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Power OK . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Power-On Reset . . . . . . . . . . . . . . . . . 1, 7, 17
Prescaler . . . . . . . . . . . . . . . . . . . . . . . . . 1, 14
Prescaler 0 Register . . . . . . . . . . . . . . . . . . . 21
prescaler overflow . . . . . . . . . . . . . . . . . . . . 14
Problem Description or Suggestion . . . . . . 29
Product Information . . . . . . . . . . . . . . . . . . 29
programmable priority encoder . . . . . . . . . . 15
Pull-Up Resistor . . . . . . . . . . . . . . . . . . . . 1, 6
Push-Pull . . . . . . . . . . . . . . . . . . . . . . . . . 9, 21
S
SINGLE PASS mode . . . . . . . . . . . . . . . . . 14
sleep instruction . . . . . . . . . . . . . . . . . . . . . 18
SMR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
source . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Standard Test Conditions . . . . . . . . . . . . . . . 5
standby current . . . . . . . . . . . . . . . . . . . . . . 18
Stop Delay . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Stop Flag . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Stop-Mode Recovery . . . . . . . . . . . . . . . 7, 18
T
Total power dissipation . . . . . . . . . . . . . . . . . 5
V
VCC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
W
warm start . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Watch-Dog Timer . . . . . . . . . . 1, 7, 17-18, 23
Time-Out . . . . . . . . . . . . . . . . . . . . . . . . 17
WDT . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1, 17
During HALT . . . . . . . . . . . . . . . . . . . . . 17
Hot Bit . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Time-out . . . . . . . . . . . . . . . . . . . 17-18, 23
working-register groups . . . . . . . . . . . . . . . 12
R
RC Oscillator . . . . . . . . . . . . . . . . . . . 1, 16, 18
real-time tasks . . . . . . . . . . . . . . . . . . . . . . . . 1
register addressing . . . . . . . . . . . . . . . . . . . . 12
Register File Assignment . . . . . . . . . . . . . . 12
Register Pointer . . . . . . . . . . . . . . . . 12-13, 24
Return Information . . . . . . . . . . . . . . . . . . . 29
32
Z
Z86E15 Emulation OTP . . . . . . . . . . . . . . . . 1
Z86K15 Keyboard Controller Features . . . . 1
Z86K15 Keyboard Controller
PS004301-PER0100