English
Language : 

Z80 Datasheet, PDF (22/330 Pages) Zilog, Inc. – Z80 CPU PERIPHERALS
< %27 2GTKRJGTCNU
7UGT /CPWCN

In Channel Control Register and Logic
The Channel Control register (8-bit) and Logic is written to by the CPU to
select the modes and parameters of the channel. Within the CTC device,
four such registers correspond to the four Counter/Timer channels. The
register to be written to is determined by the encoding of two channel select
input pins: CS0 and CS1, which are usually attached to A0 and A1 of the
CPU address bus. The channel values are described in Table 1.
Table 1. Channel Values
CS0
CS1
Channel 0
0
0
Channel 1
0
1
Channel 2
1
0
Channel 3
1
1
In the control word, which is written to program each Channel Control
register, bit 0 is always set; the other seven bits are programmed to select
alternatives on the channel’s operating modes and parameters. These values
are described in Table 2. For a more complete discussion, see “CTC
Operating Modes” on page 16 and “CTC Programming” on page 18).
Internal Bus
Channel
Control
Logic
Time
Constant
Register
CLK/TRG
CLK
Prescaler
8-Bit
Down
Counter
Figure 2. Channel Block Diagram
UM008101-0601
ZC/TO
Counter/Timer Channels