Professional Documents
Culture Documents
INTERFACING (EEE342)
It has Bank High Enable (BHE) signal It has Status Signal (SSO)
2
GENERAL BUS OPERATION
The 8086 multiplexed address and data bus
The bus can be de-multiplexed using a few latches and transceivers
The negative edge of the ALE pulse is used to separate the address and
the data or status information
In maximum mode, the status lines S0, S1 and S2 are used to indicate the
type of operation
Status bits S3 to S7 are multiplexed with higher order address bits and the
BHE signal.
Address is valid during T1 while status bits S3 to S7 are valid during T2
through T4.
3
THE 8088 AND 8086 MICROPROCESSORS (CONT.)
Examples:
• AD0-AD15– multiplexed address/data lines at different times
• A16/S3—multiplexed address and status line at different
times
• IO/M or S2 Control line in one mode or bus status line in other mode
9
MINIMUM-MODE INTERFACES– 8088 INTERFACE
MPU provides all of the interface signals
Address/data bus
Status
Control
Interrupt
DMA
Multiplexed address/data bus
20-bit address (A19-A0) 1MByte address space
8-bit data bus (D7-D0)
Signals of the address/data bus
AD0-AD7
Lower 8 address output lines
8 bi-directional data bus lines
A8-A15
Next 8 address lines
A16/S3-A19/S6
Four most significant address lines
S3–S6 status signals
10
MEMORY/IO CONTROL SIGNALS
11
INTERRUPT INTERFACE DMA INTERFACE
Support signals for implementing an interrupt Support signals for implemented a direct
driven I/O interface memory access interface
Maskable interrupt interface—INTR and Permits direct transfer of
INTA*
information between parts of
Nonmaskable interrupt interface—NMI
Reset interface—RESET
memory or between memory
and I/O devices.
INTR = interrupt request input active 1 (level External devices, such as a DMA controller,
triggered)
perform these operations independent of MPU
Externaldevice signals the MPU that it needs
maskable interrupt service
HOLD= Hold request input active 1 (level
INTA* = interrupt acknowledge output active 0 triggered)
MPU acknowledges to an external devices that its External device request the MPU give it
maskable interrupt request is being serviced control of the system bus
NMI = nonmaskable interrupt input HOLDA* = Hold acknowledge output
External device initiates NMI request with 0 to 1 active 1
transition (edge triggered) MPU tri-states its bus lines
RESET = reset input, active 1 Acknowledges to an external
Logic 1 initiates hardware reset of MPU
Initializes internal registers and reset
devices that the MPU bus is in
the hold state
service routine
12
MINIMUM MODE -8086 INTERFACE
Data bus (16-bit wide)
D15-D0
Multiplexed with A15 through A0
Allows 3 types of data transfers
Word—over D15-D0
Low byte—over D7-D0
Memory/IO Controls
SSO* BHE* (bank high enable)
Used to signal external circuitry whether or not a byte transfer is taking place
over the upper 8 data bus lines
A0 now does the same for a byte transfer over the lower 8 data bus
line
13
MAXIMUM-MODE INTERFACE
In
maximum-mode, MPU does not directly provide all the signals
, , , ALE, and signals are no longer produced by the 8088
Three signal lines identifies which type of bus cycle is to follow
MRDC – Memory Read Command
MWTC – Memory Write Command
AMWC – Advanced Memory Write Command
14
MAXIMUM-MODE INTERFACE
8086 and 8088 maximum-mode block diagram
15
MAXIMUM-MODE INTERFACE
8288 bus controller
18
EVEN AND ODD MEMORY BANKS OF 8086
High/Odd Bank Low/Even Bank
19
HARDWARE ORGANIZATION OF THE MEMORY ADDRESS
SPACE
1Mx8 memory bank of the 8088
20
HARDWARE ORGANIZATION OF THE MEMORY ADDRESS
SPACE
High and low memory banks of the 8086
21
HARDWARE ORGANIZATION OF THE MEMORY ADDRESS
SPACE
Byte transfer by the 8088
22
HARDWARE ORGANIZATION OF THE MEMORY ADDRESS
SPACE
Word transfer by the 8088
23
HARDWARE ORGANIZATION OF THE MEMORY ADDRESS
SPACE
Even address byte transfer by the 8086
24
HARDWARE ORGANIZATION OF THE MEMORY ADDRESS
SPACE
Odd address byte transfer by the 8086
25
HARDWARE ORGANIZATION OF THE MEMORY ADDRESS
SPACE
Even address word transfer by the 8086
26
HARDWARE ORGANIZATION OF THE MEMORY ADDRESS
SPACE
Odd-address word transfer by the 8086
27
HARDWARE ORGANIZATION OF THE MEMORY ADDRESS
SPACE
EXAMPLE
Is the word at memory address 0123116 of an 8086-based microcomputer aligned or
misaligned? How many cycle are required to read it from memory?
Solution:
The first byte of the word is the second byte at the aligned-word address 0123016.
Therefore, the word is misaligned and required two bus cycles to be read from
memory.
28
EXAMPLES
Give
an overview of how a byte of data is read from memory address 0xB0003
of an 8088-based microcomputer, and list the memory control signals along
with their active logic levels that occur during the memory read bus cycle
Solution:
Address 0xB0003 is applied over the lines A0 through A19 of the address bus, and a
byte of data is fetched over data bus lines D0 through D7.
Only one bus cycle is required
To read a byte from memory. Control signals in minimum mode at the time of the read
are
A0= 1
=1
=0
=0
DT/ = 0
=0
29
EXAMPLES
Give
an overview of how a word of data is written to memory starting at address
0xA0000 of an 8088-based microcomputer, and list the memory control signals
along with their active logic levels that occur during the memory write bus cycle
Solution:
Two bus cycles must take place to write the word of data to memory. During the first bus
cycle, the least significant byte of the word is written to the byte storage location at
address 0xA0000. Next the 8088 automatically increments the address so that it points
to the byte storage location 0xA0001. The most significant byte of the word is written
into this storage location with a second write bus cycle. During both bus cycles, address
information is applied to the memory subsystem over address lines A0 through A19 and
data are transferred over data bus lines D0 through D7. The minimum mode control
signals during the write are:
=0
DT/ = 1
=0
30
MEMORY ACCESSED IN 8088 AND 8086
31
MEMORY ORGANIZATION
32
MEMORY ORGANIZATION
33
MEMORY ORGANIZATION
34
MEMORY ORGANIZATION
35
MEMORY ORGANIZATION
36
MEMORY ORGANIZATION
37
MEMORY ORGANIZATION
38