Instruction manual

Table Of Contents
Page
41
PC215E
5.3.13 Z1 Counter/Timer Status Register
This status register provides the means to interrogate the three sixteen bit counter/timers of the
82C54 Z1. An outline of its operation is given here, but reference should be made to the 82C54
device manufacturers’ data sheets in the appendix before programming of the counter is
attempted.
The Z1 counter Status Register is a READ register. The WRITE register at the same location
BA + 13
16
controls the operation of the 82C54 Counter/Timer Z1 and issues a Read-Back
command before the status is interrogated.
Register
Offset
Write and/or
Read
Register
Width
Register
Title
Mnemonic
13
16
Read 8 bits
82C54 Z1 Counter/Timer
Status Register
Z1 CTS
FUNCTION
When the Read-Back Command requests the status of the counters, the status register provides
the count value, programmed mode, the current state of the OUT pin and Null Count Flag of the
selected counter(s).
BIT ASSIGNMENTS
Bit layout of the counter/timer status word register is shown below.
01234567
Counter Latch Command
Bits 3 to 0 = Don’t care
Bits 5 and 4 = 0
Designates Counter Latch Command
Bits 7 and 6
00 = Counter 0
01 = Counter 1
10 = Counter 2
11 = Read-back Command
01234567
Read-back Command
Bit 0 = 0
Bit 1 = Select Counter 0
Bit 2 = Select Counter 1
Bit 3 = Select Counter 2
Bit 4 = /Latch Status of Selected Counter(s)
Bit 5 = /Latch Count of Selected Counter(s)
Bits 6 and 7 = 1
Designates Read-back Command
01234567
Counter Programmed
Mode
OUT Pin Status
Null Count