ZiLOG Z08617 Manual

Nmos z8 8-bit mcu keyboard controller

Advertisement

Quick Links

FEATURES
Low Power Consumption - 750 mW
32 Input/Output Lines
Digital Inputs NMOS Levels with
Internal Pull-Up Resistors
4 Kbytes ROM
Four Direct Connect LED Drive Pins
124 Bytes of RAM
GENERAL DESCRIPTION
The Z08617 Keyboard Controller is a member of the
®
Z8
single-chip microcontroller family with 4 Kbytes
of ROM. The device is housed in a 40-pin DIP package,
and is manufactured in NMOS technology. The Z08617
microcontroller offers fast execution, efficient use of
memory, sophisticated interrupt, input/output bit-
manipulation capabilities, and easy hardware/soft-
ware system expansion along with low cost and low
power consumption.
The Z08617 architecture is characterized by a flex-
ible I/O scheme, an efficient register, I/O, and a
number of ancillary features that are useful in many
industrial and advanced scientific applications.
For applications which demand powerful I/O capabili-
ties, the Z08617 provides 32 pins dedicated to input
and output. These lines are grouped into four ports,
each port consists of 8 lines, and are configurable
under software control to provide timing, status
signals, and serial or parallel I/O ports.
DS96KEY0300
C
P
USTOMER
ROCUREMENT
S
PECI F I C A
TI O N
Z08617
NMOS Z8
®
8-B
MCU
IT
K
C
EYBOARD
ONTROLLER
Hardware Watch-Dog Timer (WDT)
Two Programmable 8-Bit Counter/Timers,
Each with 6-Bit Programmable Prescaler
Six Vectored, Priority Interrupts from
Six Different Sources
On-Chip RC Oscillator
Clock Frequency: Up to 5MHz
Low EMI Emission
The Z08617 offers low EMI emission which is achieved
by means of several modifications in the output
drivers and clock circuitry of the device.
There are two basic address spaces which are avail-
able to support this wide range of configurations:
Program Memory and 124 General-Purpose Registers.
The Z08617 offers two on-chip counter/timers with
a large number of user-selectable modes. This unbur-
dens the program from coping with real-time prob-
lems such as counting/timing (Figure 1).
Notes:
All Signals with a preceding front slash, "/", are active Low,
e.g., B//W (WORD is active Low); /B/W (BYTE is active Low,
only).
Power connections follow conventional descriptions below:
Connection
Power
Ground
®
Z08617 NMOS Z8
8-B
K
C
EYBOARD
ONTROLLER
Circuit
Device
V
V
CC
DD
GND
V
SS
MCU
IT
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Z08617 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for ZiLOG Z08617

  • Page 1 Clock Frequency: Up to 5MHz 124 Bytes of RAM Low EMI Emission GENERAL DESCRIPTION The Z08617 Keyboard Controller is a member of the The Z08617 offers low EMI emission which is achieved ® single-chip microcontroller family with 4 Kbytes by means of several modifications in the output of ROM.
  • Page 2 & Instruction Control Counter/ Timers (2) Flags Program Memory Register Pointer Interrupt Control Register File Program 124 x 8-Bit Counter Port 2 Port 0 Port 1 (Bit Programmable) Output Open-Drain Output Open-Drain (Nibble Programmable) (Byte Programmable) Figure 1. Z08617 Functional Block Diagram...
  • Page 3: Pin Identification

    ® Z08617 NMOS Z8 EYBOARD ONTROLLER PIN IDENTIFICATION CLK Out RC In /RESET *GND *N/C /WDTOUT Z08617 Note: * Pin 8 is connected to the chip, although used only for testing. This pin must float. Pin 7 is a test pin and must be grounded.
  • Page 4: Absolute Maximum Ratings

    ® Z08617 NMOS Z8 EYBOARD ONTROLLER ABSOLUTE MAXIMUM RATINGS Stresses greater than those listed under Absolute Symbol Description Max Units Maximum Ratings may cause permanent damage to the device. This is a stress rating only; operation of the Supply Voltage* –0.3...
  • Page 5 ® Z08617 NMOS Z8 EYBOARD ONTROLLER DC CHARACTERISTICS = 4.75V to 5.25V @ 0°C to -55°C Parameter Typ* Unit Condition Input High Voltage Input Low Voltage –0.3 Reset Input High Voltage Reset Input Low Voltage –0.3 = –250 µA (Port 2 only) Output High Voltage = –250 µA (Port 3 only)
  • Page 6: Pin Functions

    ® Z08617 NMOS Z8 EYBOARD ONTROLLER PIN FUNCTIONS Port 0 (P07-P00). Port 0 is an 8-bit, nibble program- RCIN This pin is connected between a precision resistor mable, bi-directional, NMOS compatible I/O port. These on the power supply from the precision RC Oscillator.
  • Page 7 ® Z08617 NMOS Z8 EYBOARD ONTROLLER PIN FUNCTIONS (Continued) Port 1 (P17-P10). Port 1 is an 8-bit, byte programmable, byte input port or as an open-drain output port. When used bidirectional, NMOS compatible I/O port. These eight I/O as an I/O port, inputs are standard NMOS (Figure 6).
  • Page 8 ® Z08617 NMOS Z8 EYBOARD ONTROLLER Port 2 (P27-P20). Port 2 is an 8-bit, bit programmable, bi- drain outputs (Figure 7). P26 and P27 have 2.4 Kohms directional, NMOS compatible I/O port. These eight I/O (± 25%) pull-up resistors and are capable of sourcing lines are configured under the software control program 2.4 mA.
  • Page 9 /RESET (input, active Low). When activated, /RESET put (P37-P34) ports. Port 3 inputs have 10.4 Kohms (± 35%) initializes the Z08617. When /RESET is deactivated, pull-up resistors and port 3 outputs are capable of driving program execution begins from the internal program up to four LEDs.
  • Page 10: Functional Description

    The device incorporates special functions to enhance The first 12 bytes of program memory are reserved for the Zilog's Z8 applications as a keyboard controller, scien- interrupt vectors. These locations have six 16-bit vectors tific research and advanced technologies applications.
  • Page 11 ® Z08617 NMOS Z8 EYBOARD ONTROLLER FUNCTIONAL DESCRIPTION (Continued) Pointer (Figure 11). In the 4-bit mode, the register file is Register File. The register file (Figure 10) consists of four divided into nine working-register groups, each occupy- I/O port registers, 124 general-purpose registers and 16 ing 16 continuous locations.
  • Page 12 EYBOARD ONTROLLER The counter can be programmed to start, stop, Stack. The Z08617 internal register files are used for the restart to continue, or restart from the initial value. stack. An 8-bit Stack Pointer (R255) is used for the internal...
  • Page 13 Z08617 NMOS Z8 EYBOARD ONTROLLER FUNCTIONAL DESCRIPTION (Continued) Interrupts. The Z08617 has six different interrupts from six interrupt request is granted. This disables all of the subse- different sources. These interrupts are maskable and quent interrupts, saves the Program Counter and status prioritized (Figure 13).
  • Page 14 EYBOARD ONTROLLER RC Oscillator. The Z08617 provides an internal capacitor EMI. The Z08617 offers low EMI emission due to circuit to accommodate an RC oscillator configuration. A 1% modifications to improve EMI performance. The inter- precision resistor is necessary to achieve ± 10% accurate nal divide-by-two circuit has been removed to improve EMI frequency oscillation.
  • Page 15 A cold start is defined as a rest (Pin 6). Figure 16 shows the block diagram of WDT. occurring from the power-up of the Z08617 (bit 7 is set to zero upon power-up). A hot start occurs when a WDT time- The Watch-Dog Timer is automatically enabled upon out has occurred (bit 7 is set to 1).
  • Page 16 ® Z08617 NMOS Z8 EYBOARD ONTROLLER ® CONTROL REGISTER DIAGRAMS R244 T0 R241 TMR D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0 T0 Initial Value 0 = No Function (When WRITE) 1 = Load T0...
  • Page 17 ® Z08617 NMOS Z8 EYBOARD ONTROLLER ® CONTROL REGISTER DIAGRAMS (Continued) R250 IRQ R248 P01M D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 IRQ0 = P32 Input (D0 = IRQ0) P00 - P03 Mode...
  • Page 18 ® Z08617 NMOS Z8 EYBOARD ONTROLLER R252 Flags R254 GPR D7 D6 D5 D4 D3 D2 D1 D7 D6 D5 D4 D3 D2 D1 D0 User Flag F1 User Flag F2 Half Carry Flag Figure 31. General-Purpose Register Decimal Adjust Flag...
  • Page 19: Instruction Set Notation

    ® Z08617 NMOS Z8 EYBOARD ONTROLLER INSTRUCTION SET NOTATION Flags. Control register (R252) contains the following six Addressing Modes. The following notation is used to flags: describe the addressing modes and instruction opera- tions as shown in the instruction summary.
  • Page 20: Condition Codes

    ® Z08617 NMOS Z8 EYBOARD ONTROLLER CONDITION CODES Value Mnemonic Meaning Flags Set 1 0 0 0 — Always True — 0 1 1 1 Carry C = 1 1 1 1 1 No Carry C = 0 0 1 1 0...
  • Page 21: Instruction Formats

    ® Z08617 NMOS Z8 EYBOARD ONTROLLER INSTRUCTION FORMATS CCF, DI, EI, IRET, NOP, RCF, RET, SCF One-Byte Instructions MODE MODE CLR, CPL, DA, DEC, ADC, ADD, AND, CP, DECW, INC, INCW, LD, OR, SBC, SUB, dst/src 1 1 1 0...
  • Page 22 ® Z08617 NMOS Z8 EYBOARD ONTROLLER INSTRUCTION SUMMARY (Continued) Address Flags Address Flags Instruction Mode Opcode Affected Instruction Mode Opcode Affected and Operation dst src Byte (Hex) C Z S V D H and Operation dst src Byte (Hex) C Z S V D H ADC dst, src †...
  • Page 23 ® Z08617 NMOS Z8 EYBOARD ONTROLLER INSTRUCTION SUMMARY (Continued) Address Opcode Flags Address Opcode Flags Instruction Mode Byte Affected Instruction Mode Byte Affected and Operation dst src (Hex) C Z S V D H and Operation dst src (Hex) C Z S V D H –...
  • Page 24: Opcode Map

    ® Z08617 NMOS Z8 EYBOARD ONTROLLER OPCODE MAP Lower Nibble (Hex) 12/10.5 12/10.0 12.10.0 10.5 10.5 10.5 10.5 DJNZ r1, r2 r1, Ir2 R2, R1 IR2, R1 R1, IM IR1, IM r1, R2 r2, R1 r1, RA cc, RA r1, IM cc, DA 10.5...
  • Page 25: Package Information

    ® Z08617 NMOS Z8 EYBOARD ONTROLLER PACKAGE INFORMATION 40-Pin DIP Package Diagram...
  • Page 26: Ordering Information

    Z08617 NMOS Z8 EYBOARD ONTROLLER ORDERING INFORMATION 5 MHz Z0861705PSC For fast results, contact your local Zilog sales office for assistance in ordering the part desired. Package P = Plastic DIP V = Plastic Leaded Chip Carrier Speed 05 = 5 MHz...

Table of Contents