
Manual PCI-DIO-24DH
Programming the 8254
The counters are programmed by writing a control byte into the counter control register. Refer to the
previous register map for the base addresses of the counters and the counter control register. The control
byte specifies the counter to be programmed, the counter mode, the type of read/write operation, and the
modulus. The control byte format is as follows:
SC0-SC1: These bits select the counter that the control byte is destined for.
* See section on Reading and Loading the Counters.
RW0-RW1: These bits select the read/write mode of the selected counter.
Counter Read/Write Function
Read/Write LS Byte, then MS Byte
M0-M2: These bits set the operational mode of the selected counter.
BCD: Set the selected counter to count in binary (BCD = 0) or BCD (BCD = 1).
Kommentare zu diesen Handbüchern