Professional Documents
Culture Documents
and
Interfacing
Slides courtesy:
1. Book ‘The Intel Microprocessors, Architecture,
Programming and Interfacing” , 7ed, by Barry B. Brey
2. http://www.pcpolytechnic.com/computer/ppt/micro/Chap
%203_1.pptx
Microprocessor Functional blocks
3
8086 Microprocessor
Pins and Signals Common signals
AD0-AD15 (Bidirectional)
Address/Data bus
TEST
READY
Used to insert wait state into the timing
of MP. If it is logic 1, the MP enters into
wait state and remains idle. This is the
acknowledgement from the slow device
or memory that they have completed the
data transfer.
The signal made available by the devices
is synchronized by the 8284A clock
generator to provide ready input to the
8086.
The signal is active high. 6
8086 Microprocessor
Pins and Signals Common signals
RESET (Input)
CLK
8
8086 Microprocessor
Pins and Signals Minimum mode signals
Pins 24 -31
Pins 24 -31
10
8086 Microprocessor
Pins and Signals Maximum mode signals
11
8086 Microprocessor
Pins and Signals Maximum mode signals
12
8086 Microprocessor
Pins and Signals Maximum mode signals
13
8086 Vs 8088 Microprocessors
14
The 8088
and 8086
Microproc
essors
(cont.)
Minimum Mode Interface
16
Minimum-Mode Interfaces– 8088 Interface
19
Minimum Mode -8086 Interface
20
Maximum-Mode Interface
• signals
• In maximum-mode, MPU does not directly provide all the
21
Memory Control Signals (cont.)
22
Maximum-Mode Interface
• 8086 and 8088 maximum-mode
block diagram – 8288 Bus controller
23
Interfacing Clock Generator
Typical Application of the 8284A for clock and Reset signal generati
frequency, f f/3
2.5 MHz
PCLK
Grounded when f/6
Xtal Osc is used
RESET
R
C
RC circuit for
Manual automatic Reset on power up 50 ms
Reset RC time constant large enough Min Effective
push button Digital
for 50 ms min Reset pulse #RES Input
Switch at worst trigger conditions
Clock Generator (8284A)
READY Signals
• #AEN1 and #AEN2 address enable inputs:
Used with RDY1 and RDY2 inputs to
generate the READY output. The READY
output is connected to the READY input on
the 8086/8088 mP to control memory wait
states.
• #ASYNC input: for READY output
synchronization. Selects 1 or 2 stages of
synchronization for the RDY1 and RDY2
inputs.
Clock Generator (8284A): Block Diagram
• Starts 4 clock pulses max after power up
• Must be kept High for at least 50 ms
Hysteresis to avoid
RESET
Schmitt trigger
jitter due to slowly
Switch/RC circuit varying inputs
Active High,
Synchronize to mP
Crystal with – ive clock edge Inverting buffer
CLOCK & Sync
To processor
CLK input.
f = 1/3rd of
crystal or EFI
Frequency,
1:3 duty cycle
frequency, f f/3
2.5 MHz
PCLK
Grounded when f/6
Xtal Osc is used
RESET
R
C
RC circuit for
Manual automatic Reset on power up 50 ms
Reset RC time constant large enough Min Effective
push button Digital
for 50 ms min Reset pulse #RES Input
Switch at worst trigger conditions
Bus Demultiplexing and Buffering
• Demultiplexing:
The address/data and address/status buses
are multiplexed to reduce the device pin
count. These buses must be demultiplexed
(separated) to obtain the signals required
for interfacing other circuits to the mP
– Use the ALE output from the microprocessor to
latch the address information that appear briefly
on the multiplexed bus
– This makes the latched address information
available for long enough time for correct
interfacing, e.g. to memory
• Buffering:
Fan out is limited, so output signals should
buffered in large systems
Demultiplexing the 8088 Processor
Not
Muxed
Dat
a
Latch (Transparent)
Delay
Demuxed
A0-A7 Octal D-type
Transparent Latch
20-bit
16-bit
#DEN active
Buffering
Buffered
Non-Muxed
Address Lines
(unidirectional-
Always O/Ps)
Buffered
Bidirectional
Data Lines
Address
Demultiplexing
Bidirectional
Data Buffering
Prevents
Transceiver from
driving the bus
when interrupt
controller
Is using it
RAM ROM I/O
Interrupt
Handling Interrupt
Requests
8086 Maximum Mode
8288 Bus Controller: Necessary in this mode.
Generates essential control signals not provided by mP
8086 Chipset
8288 Bus Controller
bus
20-Pin Chip
Familiar 8088/8086
Outputs
More specific Outputs,
Selects Replace #RD, #WR,
Mode: M/#IO
1. I/O Bus
2. System Bus
8288 Bus Controller: Pin Functions
• S0, S1, S2 inputs: Status bus bits • #IORC output: Input/Output
from processor. Decoded by the read control signal.
8288 to produce the usual timing
signals
• #IOWC output: Input/Output
• CLK input: From the 8284A clock write control signal.
generator • #AIOWC output: Advanced
• ALE output: Address latch enable Input/Output control signal.
output for demuxing address/data • #MRDC output: Memory read
• DEN output: Data bus enable control signal.
output to enable data bus buffer. • #MWTC output: Memory write
Note opposite polarity to #DEN control signal.
output in minimum mode. • #AMWT output: Advanced
• DT/#R output: Data Memory write control signal.
transmit/Receive output to control
direction of the bi directional data
• MCE/#PDEN output: Master
bus. cascade/Peripheral data output.
• #INTA output: Acknowledge a Selects cascade operation if
hardware interrupt applied to the IOB=0 or enables I/O bus
INTR input of the processor. transceivers if IOB=5V
• IOB input: I/O bus mode input.
Selects operation in either I/O bus
mode or system bus mode.
• #AEN input: Address Enable input.
Used by the 8288 to enable Effective only in the system bus mode
memory control signals. Supplied
by a bus arbiter in a multiprocessor
system
• CEN input: Control Enable input.
Enables the generation of
command outputs from the 8288.
Bus Cycle
• Microprocessors use the memory and I/O in periods called
bus cycle.
• A bus cycle defines the basic operation that a
microprocessor performs to communicate with external
devices.
• Examples of bus cycles are memory read, memory write,
input/ output read and input/ output write.
• A bus cycle corresponds to a sequence of events that starts
with an address being output on the system bus followed
by a read or write data transfer
• During these operations, a series of control signals are also
produced by the MPU to control the direction and timing of
the bus.
• Each bus cycle consists of at least four clock periods, T1,
T2, T3, and T4.
• These clock periods are also called the T- States.
• If the clock is operated at 5MHz(0.2ųs) then one bus cycle
is completed in 800ns.
• This means that the MP reads or writes data between itself
and memory or I/O at a max rate of 1.25 million times a
• T1 - start of bus cycle. Actions include setting control signals (or
S0- S2 status lines) to give the required values for ALE, DT/ R, IO/
M putting a valid address onto the address bus.
• T4- all bus signals are deactivated in preparation for the next clock
cycle. The 8088 also finishes samples the data bus connections for
data (in a read cycle) in this period. For the write cycle, the trailing
edge of the WR signal transfers data to the memory or I/ O, which
activates and write when WR returns to logic 1 level.
Minimum mode 8088 bus timing for a read operation
8088 Minimum-mode Memory Read Bus Cycle
43
8086 Minimum-mode Memory Read Bus Cycle
44
Simplified Write Cycle
8086/8088 Memory Write Bus Cycle
46
8086 Max-Mode Read and Write Bus Cycle
47