86HARDWARE
86HARDWARE
• 40 pins
• 8-bit bi-directional data bus, requiring two
read/write cycles to transmit 16-bit data.
• 20-bit output address bus
• Other pins are for control and status
signals, and communication with
peripherals
• Two operation modes: minimum mode &
maximum mode
• Pins 24 through 31 and pin 34 perform
different functions in minimum mode and
maximum mode
0
33% duty cycle
S4 S3
0 0 Extra segment
0 1 Stack segment
1 0 Code or no segment
1 1 Data segment
The “high-impedance” state is equivalent to disconnecting the pin from both the
high and low voltage sources.
If a pin is in the high-impedance state, it will not affect the system bus to which it
is connected. Thus the bus can transmit other signals without being affected.
In 8088, all address pins, data pins, and some of the control pins are tri-state.
OE (output enable) may be used to provide control on the time instant when
the output become effective.
Revised on 4-Oct-05 ELE3230A Microprocessor & Computer Systems
8
Lecture on 5 October 2005
Transceiver for data lines
Data transfer is bi-directional between the CPU
and the system bus.
Write Read
The READY signal is used to control whether a wait state should be inserted.
It is sampled at the end of T2. If a logic 0 is detected, indicating “not ready”, T3
will be delayed by inserting an additional cycle Tw.
Serial transfer
– a single line used: transfer one data bit after another
– higher voltage can be used
– good for slower data transfer or over long distance, e.g. mouse, modem
– RS232: the most popular standard
It is a programmable device that follows the control commands of the CPU. The
control command is sent from the CPU to the PPI via the “OUT” instruction.
A0 A1 A0-A7
0 0 A0H
0 1 A1H
1 0 A2H
The control word is loaded using the instruction OUT. Similarly, data transfer
to/from the data ports is carried out with instructions OUT and IN.
Suppose that port A is wired to an 8-line DIP switch and port B is wired to a set
of 8 LEDs. Think about what the following codes will do:
GETSW: IN AL,0A0H
OUT 0A1H,AL
JMP GETSW
8255 mode 0 doesn’t have handshaking. The timing of data’s presence must be
well controlled.
During the conversion, INT will be kept high and this causes
the 8255 to await for the completion of conversion. Once
the CPU detects that INT becomes low, it will start read
operation by activating RD.
Revised on 4-Oct-05 ELE3230A Microprocessor & Computer Systems
25
Lecture on 5 October 2005
8255 application: A/D conversion (continued)