Engineering 4862 Microprocessors: Cheng Li
Engineering 4862 Microprocessors: Cheng Li
Engineering 4862 Microprocessors: Cheng Li
Lecture 22
Cheng Li
EN-4012
[email protected]
8088 / 8086 CPU in Min Mode
• Definition:
– One discrete information transfer on the buses.
By microprocessor
100 ns
Wait state
inserted here
D0 D Q Q0
D7 Q7
System
G
Address
Bus
OC
IOW
Engr 4862 Microprocessors
Example: 8 LEDs
Address
bus
74LS138
LS373 LS373
+ 5V
180ohms
LS244
D0 Q0
To System
Switches D4 Data Bus
D7 Q7
System
Address G1 G2
Bus
IOR
Engr 4862 Microprocessors
Summary
• Since the data provided by the CPU to the port is on the
system data bus for a limited amount of time (50-
1000ns), it must be latched before it is lost
• In order to prevent any unwanted data from coming into
the system data bus, all input devices must isolated
through the tri-state buffer
– The 74LS244 not only plays this role, but also provides the
incoming signals sufficient strength (boosting) to travel all the
ways to the CPU.
• As general, every device (memory, peripherals)
connected to the global data bus must have a latch ot tri-
state buffer
Engr 4862 Microprocessors
Programmable I/O
• The previous examples are good for many
applications, but sometimes a more powerful
and flexible solution is needed.
• The 8255 Programmable Peripheral Interface
(PPI) is a 40-pin DIP IC that provides 3
programmable I/O ports, A, B, and C.
• One can program the individual port to be input
or output port, economical and flexible than
74LS373, 73LS244, which must be hard wired)
Engr 4862 Microprocessors
Programmable I/O
• How are is it programmable?
– Configure each port as input or output
– Different modes of operation
Group A
Port C Upper PC7-PC4
1 = input, 0 = output
Port A
1 = input, 0 = output
Mode Selection
00 = Mode0, 01 = Mode1
1x = Mode 2
1 = I / O Mode
Engr 4862 Microprocessors 0 = BSR Mode
Mode Selection
• It’s the control register that must be
programmed to select the operation mode
of the three ports: A, B, and C
• The 8255 chip is programmed in any of the
above modes by sending a byte (control
word) to the control register of the 8255
D0 D0
A
D7 D7
B
IOW WR
IOR RD
CL
A2 A0 A0
System A1 A1 CH
Address CS
Bus
A7