Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
7 TIMER/COUNTER 8253/8254:
The 8086 does not posses in-built timer or counter for various applications. The IC8253/8254
serves as Timer/counter device and it can be interfaced with 8086. It has three counter operations
such as counter1, counter2 and counter3 with different sizes. The address lines A0 and A1 are
used to select the required counter operation. The 8086 can program the timer/counter IC using
the control word register. It has 8 data pins(D0-D7) to communicate with 8086. The pin diagram
and architecture of timer/counter is shown in the figure.
Functional description:
The block diagram of 8253/8254 Timer is shown in the figure below.
READ/WRITE logic. Data is transmitted or received by the buffer upon execution of INPUT
instruction from CPU. The data bus buffer has three basic functions,
(i). Programming the modes of 8253.
(ii). Loading the count value in times
(iii).Reading the count value from timers.
The data bus buffer is connected to using D7-D0 pins which are also bidirectional. The data
transfer is through these pins. These pins will be in high-impedance (or this state) condition until
the 8253 is selected by a LOW or
CS
WR
RD
CS
device operation. It is enabled or disabled by
so that no operation can occur to change the
function unless the device has been selected as the system logic.
The read (
the
RD
When
RD
) and write (
WR
) pins central the direction of data transfer on the 8-bit bus. When
input pin is low. Then CPU is inputting data from 8253 in the form of counter value.
WR
pins is low, then CPU is sending data to 8253 in the form of mode information or
RD WR
RD WR
loading counters. The
&
should not both be low simultaneously. When
&
pins
are HIGH, the data bus buffer is disabled.
A0 & A1:
These two input lines allow the 8086 to specify which one of the internal register in the 8253 is
going to be used for the data transfer. Fig shows how these two lines are used to select either the
control word register or one of the 16-bit counters. Eg, if there is a 1 on both A0 & A1, and a
WR
0 an
, then the is writing a control word to the control word register. These two pins are
usually connected to the address bus lines of the same name (A0 & A1).
OUT will be initially high. When the initial count expires, OUT will go low for one CLK pulse
and then go high again. The counting sequence is triggered by writing the initial count. GATE
e 1 enables counting; GATE e 0 disables counting. GATE has no effect on OUT.
Traffic lights, which may also be known as stoplights, traffic lamps, traffic signals, signal lights,
robots or semaphore, are signaling devices positioned at road intersections, pedestrian crossings
and other locations to control competing flows of traffic.
8086 ALP:
3. 8 LED DISPLAY:
Light Emitting Diodes (LED) is the most commonly used components, usually for displaying
pins digital states. Typical uses of LEDs include alarm devices, timers and confirmation of user
input such as a mouse click or keystroke.
INTERFACING LED
Anode is connected through a resistor to GND & the Cathode is connected to the
Microprocessor pin. So when the Port Pin is HIGH the LED is OFF & when the Port Pin is
LOW the LED is turned ON.
PIN Assignment:
8086 ALP:
on the segment.
We cannot just connect the backplane to ground and drive the segment with the outputs of
a TTL decoder. The reason for this is a steady dc voltage of more than about 50mV is
Interfacing:
8086 ALP: