English
Language : 

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

automatic features in the interrupt control logic, one pre-programmed
interrupt vector suffices for all four channels.
Loading The Channel Control Register
To load a Channel Control Word, the CPU performs a normal I/O Write
sequence to the port address corresponding to the desired CTC channel. The
CTC input pins CS0 and CS1 are used to form a 2-bit binary address to select
one of four channels within the device. (See Table 2 on page 5.) In many
system architectures, these two input pins are connected to Address Bus lines
A0 and A1, respectively, so that the four channels in a CTC device occupy
contiguous I/O port addresses. A word written to a CTC channel is
interpreted as a channel control word, and loaded into the channel control
register (bit 0 is a logic 1). The other seven bits of this word select operating
modes and conditions as indicated in Table 2.
Table 5. Channel Control Register
7
6
Interrupt Mode
R/W
R/W
5
Prescaler
Value*
R/W
4
3
CLK/TRG Time
Section Trigger*
R/W
R/W
2
Time
Constant
R/W
1
Reset
R/W
0
Control or
Vector
R/W
Bit
Number
7
Field
Interrupt
6
Mode
5
Prescaler Value*
*TIMER mode only
R/W Value Description
R/W 1 Enable Interrupt
0 Disable Interrupt
R/W 1 COUNTER Mode
0 TIMER Mode
R/W 1 256
0 16
UM008101-0601
Counter/Timer Channels