Structure of channel logic, Figure 1, Ctc block diagram – Zilog Z08470 User Manual
Page 21

< %27 2GTKRJGTCNU
7UGT /CPWCN
UM008101-0601
Counter/Timer Channels
priority. The CPU bus interface logic allows the CTC device to interface
directly to the CPU with no other external logic. However, port address
decoders and/or line buffers may be required for large systems. A block
diagram of the Z80 CTC is depicted in Figure 1.
Figure 1.
CTC Block Diagram
Structure of Channel Logic
The structure of one of the four sets of Counter/Timer channel logic is
illustrated in Figure 2. This logic is composed of:
•
Two registers
•
Two counters
•
Control logic
The registers consist of an 8-bit Time Constant register and an 8-bit
Channel Control register. The counters consist of an 8-bit CPU-readable
down-counter and an 8-bit prescaler.
From
Z80 CPU
Data
Control
8
6
CPU
BUS
I/O
Internal
Control
Logic
Interrupt
Logic
Counter/
Timer
Logic
RESET
ZC/TO
3
4
IEO
INT
IEI
Internal Bus