Appendix, The intel (nec) 8254, The control byte – ADLINK PCI-7300A User Manual

Page 105: The intel (nec) 8254 the control byte, 8254 programmable interval timer

Advertising
background image

Appendix

93

Appendix

8254 Programmable Interval Timer

Note:

The material of this section is adopted from “Intel Micropro-

cessor and Peripheral Handbook Vol. II --Peripheral”

The Intel (NEC) 8254

The Intel (NEC) 8254 contains three independent, programmable,
multi-mode 16 bit counter/timers. The three independent 16 bit
counters can be clocked at rates from DC to 5 MHz. Each counter
can be individually programmed with 6 different operating modes
by appropriately formatted control words. The most commonly
uses for the 8254 in microprocessor based system are:

X

programmable baud rate generator

X

event counter

X

binary rate multiplier

X

real-time clock

X

digital one-shot

X

motor control

For more information about the 8254, please refer to the NEC
Microprocessors and peripherals or Intel Microprocessor and
Peripheral Handbook.

The Control Byte

The 8254 occupies 8 I/O address locations in the PCI-7300A I/O
map. As shown in the following table:

Before loading or reading any of these individual counters, the
control byte (Base + C) must be loaded first. The format of control
byte is:

Base + 0 LSB OR MSB OF COUNTER 0
Base + 4 LSB OR MSB OF COUNTER 1
Base + 8 LSB OR MSB OF COUNTER 2

Base + C

CONTROL BYTE for Chip 0

Advertising