Beruflich Dokumente
Kultur Dokumente
8254 Programming
Each counter may be programmed
with a count of 1 to FFFFH.
Minimum count is 1 all modes except 2
and 3 with minimum count of 2.
Operations on 8254
Write operations
For each counter the control word must
be written before the initial count is
written
Load the LSB of a count in the count
register
Load the MSB of a count in the count
register
The control word register and the three
counters have separate addresses.
Operations on 8254
Read Operations
There are three possible methods for
reading the counters.
A simple read operation,
The Counter Latch Command, and
The Read-Back Command
Mode Definitions
The following are defined for use in
describing the operation of the 82C54.
CLK PULSE: a rising edge, then a falling
edge, in
that order, of a Counter's CLK input.
TRIGGER: a rising edge of a Counter's GATE
input.
COUNTER LOADING: the transfer of a count
from
the CR to the CE
8254 Modes
8254 Modes
11-14
8254 Modes
Mode 4: Software triggered one-shot
(G must be 1).
11-15