0% found this document useful (0 votes)
42 views20 pages

Programmable Interval Timer - 8254

The Programmable Interval Timer 8254 is a chip with 3 independent counters that can be programmed separately. It connects to the system data bus and can generate square waves and pulses at frequencies up to 8 MHz. Each counter must be initialized by programming its control register before use in one of its 6 operating modes like interrupt on terminal count or rate generator.

Uploaded by

Vamsi Krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views20 pages

Programmable Interval Timer - 8254

The Programmable Interval Timer 8254 is a chip with 3 independent counters that can be programmed separately. It connects to the system data bus and can generate square waves and pulses at frequencies up to 8 MHz. Each counter must be initialized by programming its control register before use in one of its 6 operating modes like interrupt on terminal count or rate generator.

Uploaded by

Vamsi Krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 20

Programmable Interval

Timer - 8254
Programmable Interval Timer -
8254
Pin Description of
8253/54
A0, A1, and CS
• Inside the 8253/54 timer, there
are 3 counters.
• Each timer works independently
and programmed separately.
• Each counter is assigned an
individual port address.
• The control register common to
all 3 counters and has its own
port.
CLK
• CLK is the input clock frequency, which can range between 0 and 2
MHz for the 8253.
• For input frequencies higher than 2 MHz, the 8254 must be used.
• The 8254 can go as high as 8 MHz, and 8254-2 can go 10 MHz.
OUT
• Can have square-wave, one-shot, and other square-shape waves for
various duty cycles but no sine-wave or saw-tooth shapes.
Gate
• This pin is used to enable or disable the counter.
D0-D7
• The D0-D7 data bus of the 8253/54 is a bidirectional bus
connected to D0-D7 of the system data bus.
• RD and WR are connected to IOR and IOW control signals of the
system bus.
Initialization of the 8253/54
• Each of the three counters of the 8253/54 must be programmed
separately.
• The 8253/54 must be initialized before it is used.
Operation Modes
Mode 0 Interrupt on terminal count
Mode 1 Programmable one-shot
Mode 2 Rate Generator
Mode 3 Square wave rate generator
Mode 4 Software triggered strobe
Mode 5 Hardware trigger strobe
8254
OPERATING
MODES
MODE 0
MODE 1
MODE 2
MODE 3
MODE 4
MODE 5

You might also like