The Z86319 is a member of the Z8 family of CMOS microcontrollers architecture to be used in mouse applications.
These devices offer on-board pull-up and pull-down resistors, a trip-point buffer to accommodate opto-transistor
outputs, and high drive ports capable of up to 10 mA current sinking per pin (3 pins maximum).
A permanently enabled Watch-Dog Timer ensures operational reliability across a broad range of mouse application
environments. The precision RC oscillator filters out highfrequency noise from the oscillator input pin. When configured as inputs, P24-P27 have built in voltage dividers (25K
pull-up /7.5K pull-down). The input levels are designed for
connection to the emitters of the opto-transistors and
switch at a voltage level of 0.4 V
DD
.
■
Excellent System Level EMI/EFT/ESD
For applications requiring powerful I/O capabilities, the
Z86319 provides dedicated input and output lines that are
grouped into three ports. There are two basic address
spaces available to support this configuration: Program
Memory, and 125 bytes of general-purpose registers.
The Z86319 device provides two on-chip 8-bit programmable counter/timers with a large number of user-selectable
modes. Each counter/timer is driven by its own 6-bit programmable prescaler. The Z86319 counter/timers off-load
system real-time tasks such as counting/timing and input/output data communications for increased system efficiency.
RCIN. A precision 1% resistor is connected to RCIN,
generating oscillation with an internal capacitor.
Resistor values and corresponding typical frequencies are
shown in Table 2 and graph chart (Figure 3).
6
5
Table 2. Resistor Values and Corresponding
Typical Frequencies
External ResistorAverage Frequency
14.0K5.01 MHz
15.0K4.70 MHz
16.0K4.43 MHz
17.0K4.19 MHz
18.0K3.97 MHz
19.0K3.78 MHz
20.0K3.60 MHz
21.0K3.44 MHz
22.0K3.30 MHz
23.0K3.16 MHz
4
3
2
FREQUENCY (MHz)
1
0
14151617181920212223
RESISTOR VALUE (K OHMS)
Figure 3. Z86319 RC Frequency in Function of the External Resistance
(typical numbers)
P R E L I M I N A R Y
DS97KEY1605
1
t
t
40 °
Z86319
ZilogPS/2 Mouse Controller
STANDARD TEST CONDITIONS
The characteristics listed below apply for standard test
conditions as noted. All voltages are referenced to
Ground. Positive current flows into the referenced pin
(Figure 4).
From Outpu
Under Tes
150 pFI
Figure 4. Test Load Diagram
ABSOLUTE MAXIMUM RATINGS
SymParameterMinMaxUnits
V
T
STG
T
A
Notes:
*Voltages on all pins with respect to Ground.
Supply V oltage*–0.3+7V
DD
Storage Temp–65 °
Oper Ambient
Temp
0 °
+150 °
C
C
Stresses greater than those listed under Absolute Maximum Ratings may cause permanent damage to the device.
This rating is a stress rating only; 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 extended periods
may affect device reliability.
CAPACITANCE
T
= GND = 0V, f = 1.0 MHz, unmeasured pins returned to Ground.
Using the precision RC oscillator feature, f = 4.0 MHz ± 10% under the following conditions:
■
V
= 5.0V ± 10%
CC
Temp 0 to 40 ° C
■
■
Application board capacitance:
–2.0 pF max.
–0.5 pF min.
DS97KEY1605
P R E L I M I N A R Y
5
6
≤
Z86319
PS/2 Mouse ControllerZilog
DC ELECTRICAL CHARACTERISTICS
4.5V ≥ V
SymParameterMinMaxUnitsConditions
V
IH
V
IL
V
IL
V
OH
V
OL1
V
OL2
V
LV
V
TP
I
IL
I
OL
I
DD
I
DD1
I
PU
I
PD
I
PU
5.5V
DD
T
= 0 ° C to +40 ° C
A
Rising Input
2.33.2VNote 1
Schmitt-Triggered
Falling Input
1.32.2VNote 1
Schmitt-Triggered
Input Low Voltage CMOS InputV
Output High VoltageV
Output Low Voltage0.4VI
Output Low Voltage0.8VI
V
Low Voltage Protection2.252.95V@ 4 MHz Max, Note 2
CC
Trip Point Voltage
(P24-P27)
Input Leakage–1.01.0
– 0.4VI
DD
= –2.0 mA;
OH
V
=4.5V
DD
= +4.0 mA;
OL
V
=5.5V
DD
= 10.0 mA,
OL
3 Pin Max; V
1.92.5VP24-P27; V
1.52.1VV
AV
=4.5V
DD
= 0V, or V
IN
DD
DD
=5.5V
CC
Note 4
Output Leakage–1.01.0µAVIN = 0V, or V
CC
Note 4
Supply Current4.5mA@ 4 MHz, Note 3;
VDD=5.5V
Standby Current2.2mA@ 4 MHz, Note 3;
VDD=5.5V
Pull-Up Current (100K)–20µAVIH @ 1V
P00-02, P31, P33–95µAVIH @ 1V
Pull-Down Current (100K)+20µAVIL @ 3V
P00-02, P31, P33+85µAVIL @ 4V
Pull-Up Current (10K)–370µAVIL = 0V
P20, P22–670µAVIL = 0V
=5.5V
µ
Notes:
1. The min. and max. values of the Schmitt-Trigger input voltages track each other over temperature, V
process variations.
2. The device is functional from V
voltage at ambient temperature. The VLV voltage increases as the temperature decreases.
3. All input pins are tied to GND and all output pins are floating.
down to VLV voltage. The minimum operational VDD is determined by the value of the V
DD
P R E L I M I N A R Y
DD
, and
LV
DS97KEY1605
Z86319
1
ZilogPS/2 Mouse Controller
AC ELECTRICAL CHARACTERISTICS
Timing Diagrams
11
T
IN
IRQ
2
N
5
3
4
6
Figure 5. Electrical Timing Diagram
TA = 0°C to +40°C
NoSymbolParameter
V
DD
MinMaxUnitsNotes
1TrTin, TtTinTimer Input Rise and Fall Time5.5V100ns1
2TwTinLTimer Input Low Width5.5V70ns1
3TwTinHTimer Input High Width5.5V2.5TpC1
4TpTinTimer Input Period5.5V4TpC1
5TwILInt. Request Input Low Time5.5V70ns1,2
6TwIHInt. Request Input High Time5.5V2.5TpC1,2
TwdtWatch-Dog Timer Time Out 5.5V10ms
TPORPower-On Reset Time5.5V210ms
TpCRC Oscillator Clock Period5.5V2205000ns
Notes:
1. Timing Reference uses 0.9 V
2. Interrupt request through Port 3 (P33-P31)
for a logic 1 and 0.1 VDD for a logic 0.
DD
DS97KEY1605P R E L I M I N A R Y7
Z86319
PS/2 Mouse ControllerZilog
PIN FUNCTIONS
Port 0 (P02-P00). Port 0 is a 3-bit, I/O programmable, bi-
directional, CMOS-compatible I/O port. These three I/O
lines can be configured under software control to be input
or output (Figure6). When Port 0 is configured as an input
port, all lines have the capability to either sink or source
(ROM mask selectable) current emulating a 100K pull-
OE
down or pull-up resistor. Port 00-02 can be accessed
through the P0 register (register address 00). The upper 5
bits of this 8-bit register always reads “11111.” Writing to
the upper 5 bits has no effect (see Figure 34). The lower 3
bits of the P0 register are read/write. Current versus pin
voltage graphs are shown in Figures 7 and 8.
Pull-Up Enable
(Mask Option)
Pad
Out
In
Pull-Down / Enable
(Mask Option)
Figure 6. Port 0 Configuration
8P R E L I M I N A R YDS97KEY1605
Z86319
1
ZilogPS/2 Mouse Controller
vdrain
Figure 7. Current vs Pin Voltage Values
Figure 8. Current vs Pin Voltage Values
DS97KEY1605P R E L I M I N A R Y9
Z86319
PS/2 Mouse ControllerZilog
PIN FUNCTIONS (Continued)
Port 2 (P27-P20). Port 2 is an 8-bit, bit programmable, bi-
directional, CMOS-compatible I/O port. These eight I/O
lines can be configured under software control to be input
or output, independently. Bits programmed as outputs
may be globally programmed as either push-pull or opendrain. When configured as inputs, P20 and P22 have 10
kOhm (typical) pull-up resistors (Figure 9). However, P21
and P23 do not have resistors (Figure 10).
Open-Drain
OE
When configured as inputs, P24-P27 are configured with a
voltage divider. The voltage divider consists of an internal
25K pull-up resistor (Figure 11), and a 7.5K pull-down resistor. The input levels on P24-P27 are adjusted for connection to the emitters of the opto-transistors and switch at
a voltage level of 0.4 V
(± 300 mV). For input voltages
DD
on P24-P27, refer to Table 3.
Table 3. P24-P27 Input Open Circuit Voltage
(No off-chip resistance)
V
DD
MinMax
4.5V0.95V1.15V
5.0V1.05V1.25V
5.5V1.15V1.39V
V
DD
10 Kohm, ±20%
Out
In
Pad
Figure 9. Port 2 P20, P22 Configuration
10P R E L I M I N A R YDS97KEY1605
Z86319
1
ZilogPS/2 Mouse Controller
VDD
Open-Drain
OE
Pad
Out
In
Figure 10. Port 2 P21, P23 Configuration
Open-Drain
OE
Out
In
Resistance T olerance (0-40°C)
Min.Max.
Pull-Down
Pull-Up
5.2K8.9K
18K30K
25K
7.5K
Pad
0.4 VDD ± 300 mV
Trip Point Buffer
Figure 11. Port 2 P27-P24 Configuration
DS97KEY1605P R E L I M I N A R Y11
Z86319
PS/2 Mouse ControllerZilog
PIN FUNCTIONS (Continued)
Port 3 (P33, P31). Port 3 is a 2-bit, CMOS-compatible
port with two fixed input lines (P33, P31). These two lines
can also be used as the interrupt sources IRQ2 and IRQ1.
P31 can also be configured as a timer input. Both lines can
be configured through ROM mask selection to sink or
source current emulating a 100K pull-up or pull-down re-
Pad
P31
Pull-Down/Enable
(Mask Option)
sistor (Figure 12). Port 33-31 can be accessed through
the P3 register. The upper 4 bits of this 8-bit register always reads “1111.” Bit D2 reads 0 and Bit D0 reads 1. Bits
D3 and D1 represent P33 and P31 respectively (see Figure 36).
Pull-Up Enable
(Mask Option)
Data Latch
IRQ2, TIN
Pad
Pull-Up Enable
(Mask Option)
Data Latch
IRQ1
P33
Pull-Down/Enable
(Mask Option)
Figure 12. Port 3 P33, P31 Configuration
12P R E L I M I N A R YDS97KEY1605
Z86319
1
ZilogPS/2 Mouse Controller
FUNCTIONAL DESCRIPTION
The Z86319 MCU incorporates the following special features to enhance the Z8 architectural core for use in mice,
trackballs, and other consumer applications.
Reset. Upon power-up, the Power-On Reset circuit waits
for TPOR, plus 18 clock cycles, then starts program execution at address 000CH (Figure 13). The Z86319 control
registers' reset values are shown in Table 4.
RC OSC
18 CLK
Reset Filter
Chip
Reset
DS97KEY1605P R E L I M I N A R Y13
Z86319
PS/2 Mouse ControllerZilog
FUNCTIONAL DESCRIPTION (Continued)
Program Memory. The Z86319 can address up to 2 KB
of internal program memory (Figure 14). The first 12 bytes
of program memory are reserved for the interrupt vectors.
These locations contain four 16-bit vectors that correspond to the four available interrupts. Bytes 0-2047 are
on-chip mask-programmed ROM.
2047
Location of
First Byte of
Instruction
Executed
After RESET
Interrupt
Vector
(Lower Byte)
Interrupt
Vector
(Upper Byte)
12
11
10
9
8
7
6
5
4
3
2
1
0
On-Chip
ROM
IRQ5
IRQ5
IRQ4
IRQ4
Reserved
Reserved
IRQ2
IRQ2
IRQ1
IRQ1
Reserved
Reserved
Register File. The Register File consists of three I/O
port registers, 125 general-purpose registers, and 14 control and status registers, R0-R3, R4-R127 and R241R255, respectively (Figure 15). The Z86319 instructions
can access registers directly or indirectly via an 8-bit address field. This field allows short, 4-bit register addressing
using the Register Pointer. In the 4-bit mode, the register
file is divided into eight working register groups, each occupying 16 continuous locations. The Register Pointer addresses the starting location of the active working-register
group.
ZilogPS/2 Mouse Controller
Stack Pointer. The Z86319 features an 8-bit Stack
Pointer (R255) used for the internal stack that resides within the general-purpose registers.
Counter/Timer. There are two 8-bit programmable
counter/timers (T0 and T1), each driven by its own 6-bit
programmable prescaler. The T1 prescaler can be driven
by internal or external clock sources, however, the T0 can
be driven by the internal clock source only (Figure 16).
The 6-bit prescalers can divide the input frequency of the
clock source by any integer number from 1 to 64. Each
prescaler drives its counter, which decrements the value
(1 to 256) that has been loaded into the counter. When
both counter and prescaler reach the end of count, a timer
interrupt request IRQ4 (T0) or IRQ5 (T1) is generated.
WriteWriteRead
PRE0
Initial Value
Register
OSC
The counter can be programmed to start, stop, 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, are read at any time
without disturbing their value or count mode. The clock
source for T1 is user-definable and can be either the internal microprocessor clock divided by four, or an external
signal input via Port 3. The Timer Mode register configures
the external timer input (P31) as an external clock, a trigger
input that is retriggerable or not retriggerable, or as a gate
input for the internal clock.
Internal Data Bus
T0
Initial Value
Register
T0
Current Valu
Register
Clock
Logic
T P31
IN
Internal
Clock
External Clock
÷4
Internal Clock
Gated Clock
Triggered Cloc
÷4
Write
6-Bit
Down
Counter
6-Bit
Down
Counter
PRE1
Initial Value
Register
Write
8-Bit
Down
Counter
8-Bit
Down
Counter
T1
Initial Value
Register
Internal Data Bus
Figure 16. Counter/Timers Block Diagram
IRQ4
IRQ5
T1
Current Valu
Register
Read
DS97KEY1605P R E L I M I N A R Y15
Z86319
PS/2 Mouse ControllerZilog
FUNCTIONAL DESCRIPTION (Continued)
Interrupts. The Z86319 features four interrupts from
four different sources. These interrupts are maskable and
prioritized (Figure 17). The four sources are divided as follows: the falling edge of P31, P33, and the two
counter/timers. The Interrupt Mask Register globally or individually enables or disables the four interrupt requests
(Table 5).
When more than one interrupt is pending, priorities are resolved by a programmable priority encoder that is controlled by the Interrupt Priority register. All Z86319 interrupts are vectored through locations in program memory.
When an interrupt machine cycle is activated, an interrupt
request is granted, thereby disabling all subsequent interrupts, saving the Program Counter and Status Flags, and
branching to the program memory vector location reserved
for that interrupt. This memory location and the next byte
contain the 16-bit starting address of the Interrupt Service
Routine for that particular interrupt request.
To accommodate polled interrupt systems, interrupt inputs
are masked and the Interrupt Request Register is polled to
determine which of the interrupt requests requires service.
ZilogPS/2 Mouse Controller
RC Oscillator. The Z86319 features an on-chip RC pre-
cision oscillator that requires a 1% precision resistor externally connected between VDD and pin 6 (Figure 18). The
tolerance of the RC oscillator is less than ±10% over the
voltage range of 4.5V to 5.5V and over a temperature
range of 0-40°C. Pin 7 is the Analog Ground for the oscillator.
Increased parasitic board capacitance will slow down the
RC oscillator and deteriorate the RC frequency tolerance.
The minimum and maximum parasitic board capacitances
are 0.5 pF and 2 pF, respectively.
VDD
1%
6
RCIN
7
AGND
Precision
RC Oscillator
Figure 18. Oscillator Configuration
HALT Mode. This instruction turns off the internal CPU
clock but not the precision RC oscillator. The counter/timers, their interrupts, and external interrupts IRQ1 and IRQ2
remain active. The device can be recovered by interrupts,
either externally or internally generated. An interrupt must
be enabled prior to the HALT Mode, and executed to exit
the HALT Mode. After the interrupt service routine, the
program continues from the instruction after the HALT.
In HALT Mode, the value of each output line prior to the
HALT instruction is retained.
Watch-Dog Timer (WDT). The Watch-Dog Timer is enabled upon power-up of the MCU and is clocked by its own
internal RC oscillator. The WDT instruction does not affect
the Zero (Z), Sign (S), and Overflow (V) flags.
Opcode WDT (5FH). Execution of WDT clears the WDT
counter. The time interval between any 2 consecutive
WDT instructions has to be smaller than T
WDT
min.
Low Voltage Protection (VLV). The device will function normally between 5.5V and 4.5V under all specified
conditions. Below 4.5V, the device is still internally functional until the Low Voltage trip point (V
) is reached,
LV
however, it is not guaranteed to meet all AC and DC Characteristics. When the supply voltage drops below VLV, an
automatic hardware reset occurs as VDD returns above
VLV. Essentially, this action helps in reinitializing the
Z86319.
The actual VLV is a function of temperature, operating frequency and process parameters. The typical VLV is a
function of the ambient temperature for a frequency of 4
MHz. The device is functional down to VLV voltage. The
min. operational VDD is determined by the value of the V
LV
voltage at ambient temperatures. The VLV voltage increases as the temperature decreases (Figure 19).
In order to enter 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 (Opcode=FFH) immediately before the HALT
instruction. i.e.:
FFNOP; clear the pipeline
7FHALT; enter the HALT Mode
ZILOG, INC. MAKES NO WARRANTY, EXPRESS,
STATUTORY, IMPLIED OR BY DESCRIPTION,
REGARDING THE INFORMATION SET FORTH HEREIN
OR REGARDING THE FREEDOM OF THE DESCRIBED
DEVICES FROM INTELLECTUAL PROPERTY
INFRINGEMENT. ZILOG, INC. MAKES NO WARRANTY
OF MERCHANTABILITY OR FITNESS FOR ANY
PURPOSE.
Speed
04 = 4 MHz
Environmental
C = Plastic Standard
Zilog, Inc. shall not be responsible for any errors that may
appear in this document. Zilog, Inc. makes no commitment
to update or keep current the information contained in this
document.
Zilog’s products are not authorized for use as critical
components in life support devices or systems unless a
specific written agreement pertaining to such intended use
is executed between the customer and Zilog prior to use.
Life support devices or systems are those which are
intended for surgical implantation into the body, or which
sustains life whose failure to perform, when properly used
in accordance with instructions for use provided in the
labeling, can be reasonably expected to result in
significant injury to the user.
Zilog, Inc. 210 East Hacienda Ave.
Campbell, CA 95008-6600
Telephone (408) 370-8000
FAX 408 370-8056
Internet: http://www.zilog.com
DS97KEY1605P R E L I M I N A R Y23
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.