z08617 ZiLOG Semiconductor, z08617 Datasheet - Page 12

no-image

z08617

Manufacturer Part Number
z08617
Description
Nmos Z8 8-bit Mcu Keyboard Controller
Manufacturer
ZiLOG Semiconductor
Datasheet
12
Stack. The Z08617 internal register files are used for the
stack. An 8-bit Stack Pointer (R255) is used for the internal
stack that resides within the 124 general-purpose regis-
ters.
Counter/Timers.
counter/timers (T0-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 prescaler is driven by the internal clock only
(Figure 12).
The 6-bit prescalers can further divide the input
frequency of the clock source by any integer number
from 1 to 64. Each prescaler drives its own counter,
which decrements the value (1 to 256) that has been
loaded into the counter. When both the counter and
prescaler reach the end of count, a timer interrupt
request, IRQ4 (T0) or IRQ5 (T1), is generated.
CLK
Out
T
Clock
OSC
Logic
RC
IN
There are two 8-bit programmable
2
P31
External Clock
Internal Clock
Gated Clock
Triggered Clock
Internal Clock
4
Figure 12. Counter/Timers Block Diagram
4
Write
Write
Initial Value
Initial Value
Register
Register
Counter
Counter
PRE0
PRE1
Down
Down
6-Bit
6-Bit
The counter 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, are read at any
time without disturbing their value or count mode.
The clock source for T1 is user-definable and are
either the internal microprocessor clock divided by
four, or an external signal input through Port 3. The
Timer Mode register configures the external timer
input as an external clock, a trigger input that can be
retriggerable or non-triggerable, or as a gate input for
the internal clock. The counter/timers can be pro-
grammable cascaded by connecting the T0 output to
the input of T1. Port 3 lines P36 also serves as a timer
output (T
clock are output.
Write
Write
OUT
Internal Data Bus
Internal Data Bus
) through which T0, T1 or the internal
Initial Value
Initial Value
Register
Register
Counter
Counter
Down
Down
8-Bit
8-bit
T0
T1
Read
Read
2
Current Value
Current Value
Register
Register
Z08617 NMOS Z8
T0
T1
K
EYBOARD
T
IRQ5
IRQ4
P36
OUT
®
C
8-B
ONTROLLER
IT
MCU

Related parts for z08617