You are on page 1of 2

Microprocessor & Peripheral Interfacing TE/EXTC/V/2019-20

Experiment – : Interfacing of 8253 with 8086

Date: _________
1. Aim
To interface PIT 8253/8254 with 8086 and to study
i mode 0 – Interrupt on terminal count and
ii mode 3 – Square wave generation of operation of 8253/54

2. Requirements
Dyna-8086 kit with power supply, study card PIT 8253 with connecting wires

3. Pre-Experiment Exercise
Brief Theory:
The Intel 8253 is a programmable counter/timer chip designed for use as an Intel microcomputer
peripheral. The 8253/54 solves one of most common problem in any microcomputer system, the
generation of accurate time delays under software control. Instead of setting up timing loops in
system software, the programmer configures the 8253/54 to match his requirements, initializes
one of the counters of the 8253/54 with the desired quantity, then upon command the 8253/54
will count out the delay and interrupt the CPU when it has completed its tasks. It is easy to see
that the software overhead is minimum and that multiple delays can be easily be maintained by
assignment of priority levels.
The 8253/54 includes three identical 16-bit counters that can operate independently. To operate
a counter, a 16-bit count is loaded in its register and, on command; it begins to decrement the
count until it reaches 0. At the end of the count, it generates a pulse that can be used to interrupt
the CPU. The counter can count either in binary or BCD. In addition, a count can be read by the
CPU while the counter is decrementing.

4. Laboratory Exercise
4.1 Procedure
i Mode-0 Interrupt on terminal count
a) Make the necessary connections for the set up.
b) Enter the program for configuring 8253 in mode 0.
c) Execute the program and observe the output.

ii. Mode-3 Square wave generator mode


a) Make the necessary connections for the set up.
b) Enter the program for configuring 8253 in mode 3.
c) Execute the program for even and odd count values and observe the output.
d) Draw the output waveform on graph paper.
Microprocessor & Peripheral Interfacing TE/EXTC/V/2019-20
5. Post-Experiment Exercise
5.1 Conclusion/Comments

5.2 Questions/Exercise

a) What is the difference between 8253 and 8254?


b) List other operating modes of 8253.
c) Explain mode 2 operation of PIT with timing diagram.

You might also like