Professional Documents
Culture Documents
MICROCONTROLLERS
U Vinothkumar
Asst Prof
Dept of ECE
Dr.N.G.P.Institute of Technology
Coimbatore.
UNIT II 8086 SYSTEM BUS STRUCTURE (9Hrs)
8086 signals – Basic configurations – System bus timing –
System design using 8086 – I/O programming – Introduction to
Multiprogramming – System Bus Structure – Multiprocessor
configurations – Coprocessor, Closely coupled and loosely
Coupled configurations – Introduction to advanced processors.
2
8086 Pin
Diagram
(MIN
MODE)
(MAX MODE)
3
8086 Microprocessor
Pins and Signals Common signals
AD0-AD15 (Bidirectional)
Address/Data bus
Low order address bus; these are
multiplexed with data.
4
8086 Microprocessor
Pins and Signals Common signals
5
8086 Microprocessor
Pins and Signals Common signals
MN/ MX
MINIMUM / MAXIMUM
TEST
READY
RESET (Input)
Causes the processor to immediately
terminate its present activity.
CLK
The clock input provides the basic timing
for processor operation and bus control
activity. Its an asymmetric square wave
with 33% duty cycle.
8
8086 Microprocessor
Pins and Signals Min/ Max Pins
9
8086 Microprocessor
Pins and Signals Minimum mode signals
Pins 24 -31
Pins 24 -31
11
8086 Microprocessor
Pins and Signals Maximum mode signals
12
8086 Microprocessor
Pins and Signals Maximum mode signals
13
8086 Microprocessor
Pins and Signals Maximum mode signals
14
Minimum Mode Configuration of 8086
15
8284 Clock generator – Pin diagram
16
Timing Diagram - Read operation
17
Timing Diagram – Write operation
18
Maximum Mode Configuration of 8086
19
Maximum Mode Configuration of 8086
• MRDC (Memory Read Command) : It instructs the memory to put the
contents of the addressed location on the data bus.
• IORC (I/O Read Command) : It instructs an I/O device to put the data
contained in the addressed port on the data bus.
• IOWC (I/0 Write Command) : It instructs an I/O device to accept the data
on the data bus and load the data into the addressed port.
• AEN, IOB and CEN : These pins are used in multiprocessor system. With a
single processor in the system, AEN and IOB are grounded and CEN is tied
high. AEN causes the 8288 to enable the memory control signals. IOB (I/O bus
mode) signal selects either the I/O bus mode or system bus mode operation.
CEN (control enable) input enables the command output pins on the 8288.
21
Maximum Mode
Timing Diagram – Write operation
22
Multiprocessor configurations
Example: when bulk I/O data transfer is done under the control of
Microprocessor alone, the processor have to spend most of the time
idle due to slow operating speed of the peripherals.
System having more than one processor may require lesser time to
complete a task as compared to the system having single processor.
23
Multiprocessor configurations
• The NDP and IOP works in synchronism with the main processor
to complete specific task are called Coprocessors.
24
Multiprocessor configurations
Coprocessor configuration
26
1. Coprocessor Configuration
The 8086 and 8088 can perform most of the operations but their
instruction set is not able to perform complex mathematical
operations, so in these cases the microprocessor requires the math
coprocessor like Intel 8087 math coprocessor, which can easily
perform these operations very quickly.
28
1. Coprocessor Configuration
•The coprocessor uses QS0 & QS1 to track the status of the queue of
the host processor.
29
2. Closely Coupled Configuration
30
2. Closely Coupled Configuration
31
2. Closely Coupled Configuration
32
2. Closely Coupled Configuration
33
3. Loosely Coupled Configuration
Advantages:
Each of the processors have their own local bus to access the local
memory/I/O devices. This makes it easy to achieve parallel
processing.
34
3. Loosely Coupled Configuration
35
Contention problems in multiprocessor
configuration
Eg: The processor that wait to complete their memory cycle waste
time in busy waiting. This results in loss of performance
3 types of contention:
Memory Contention
Communication Contention
36
Contention problems in multiprocessor
configuration
Memory Contention:
Communication Contention:
37
Bus Arbitation
1. Daisy chaining
2. Polling method
3. Independent priority
38
1. Daisy Chaining
All bus master use the same line for bus request.
If the bus busy line is inactive, the bus controller gives the bus
grant signal.
The bus master which requires system bus, stops this signal,
activates the bus busy line and takes control of system bus.
There fore other requesting module will not receive the grant signal
and hence cannot get the bus access.
39
1. Daisy Chaining
Advantages:
Disadvantages:
40
2. Polling Method
All bus masters use the same line for bus request.
Here controller generate binary address for the master. (To connect
8 bus master we need 3 address lines 2^3 = 8).
In response to a bus request, the controller “polls” the bus masters
by sending a sequence of bus master address on address lines.
Advantages:
Disadvantage:
circuit.
42
3. Independent Priority
All bus masters have their individual bus request and bus grant
lines.
Advantages:
Disadvantages:
44