EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit...

23
EC 6504 Microprocessor and Microcontroller Unit – II 8086 System Bus Structure Syllabus: 8086 Signals – Basic Configurations – System bus timing – System Design using 8086 – IO Programming – Introduction to multiprogramming – System bus structure – Multiprocessor Configurations – Coprocessor, Closely coupled and loosely coupled configurations – Introduction to advanced processors. Signal Description of 8086 Microprocessor (Pin Configuration of 8086 Microprocessor): The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, i.e. 5, 8 and 10MHz, packaged in a 40 pin CERDIP or plastic package. The 8086 Microprocessor operates in single processor or multiprocessor configurations to achieve high performance. The pin configuration is as shown in fig1. Some of the pins serve a particular function in minimum mode (single processor mode) and others function in maximum mode (multiprocessor mode) configuration. The 8086 signals can be categorized in three groups. The first are the signals having common functions in minimum as well as maximum mode, the second are the signals which have special functions in minimum mode and third are the signals having special functions for maximum mode The following signal descriptions are common for both the minimum and maximum modes. AD15-AD0: These are the time multiplexed memory I/O address and data lines. Address remains on the lines during T1 state, while the data is available on the data bus during T2, T3, TW and T4. Here T1, T2, T3, T4 and TW are the clock states of a machine cycle. TW is a wait state.

Transcript of EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit...

Page 1: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

EC 6504 Microprocessor and Microcontroller

Unit – II

8086 System Bus Structure

Syllabus:

8086 Signals – Basic Configurations – System bus timing – System Design using 8086 – IO

Programming – Introduction to multiprogramming – System bus structure – Multiprocessor

Configurations – Coprocessor, Closely coupled and loosely coupled configurations –

Introduction to advanced processors.

Signal Description of 8086 Microprocessor (Pin Configuration of 8086

Microprocessor):

The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, i.e. 5, 8 and 10MHz,

packaged in a 40 pin CERDIP or plastic package. The 8086 Microprocessor operates in single

processor or multiprocessor configurations to achieve high performance. The pin configuration

is as shown in fig1. Some of the pins serve a particular function in minimum mode (single

processor mode) and others function in maximum mode (multiprocessor mode) configuration.

The 8086 signals can be categorized in three groups. The first are the signals having

common functions in minimum as well as maximum mode, the second are the signals which

have special functions in minimum mode and third are the signals having special functions for

maximum mode

The following signal descriptions are common for both the minimum and maximum modes.

AD15-AD0: These are the time multiplexed memory I/O address and data lines. Address

remains on the lines during T1 state, while the data is available on the data bus during T2, T3,

TW and T4. Here T1, T2, T3, T4 and TW are the clock states of a machine cycle. TW is a wait

state.

Page 2: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

A19/S6, A18/S5, A17/S4, A16/S3: These are the time multiplexed address and status lines.

During T1, these are the most significant address lines or memory operations. During I/O

operations, these lines are low. During memory or I/O operations, status information is

available on those lines for T2, T3, TW and T4 .The status of the interrupt enable flag

bit(displayed on S5) is updated at the beginning of each clock cycle. The S4 and S3 combinely

indicate which segment register is presently being used for memory accesses as shown in Table.

The status line S6 is always low(logical). The address bits are separated from the status bits

using latches controlled by the ALE signal.

BHE /S7-Bus High Enable/Status: The bus high enable signal is used to indicate the transfer of

data over the higher order (D15-D8) data bus as shown in Table. It goes low for the data

transfers over D15-D8 and is used to derive chip selects of odd address memory bank or

peripherals. BHE is low during T1 for read, write and interrupt acknowledge cycles, when- ever

a byte is to be transferred on the higher byte of the data bus.

Page 3: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

RD -Read: Read signal, when low, indicates the peripherals that the processor is performing a

memory or I/O read operation. RD is active low and shows the state for T2, T3, TW of any read

cycle. The signal remains tristated during the 'hold acknowledge'.

READY: This is the acknowledgement from the slow devices 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.

INTR-lnterrupt Request: This is a level triggered input. This is sampled during the last clock

cycle of each instruction to determine the availability of the request. If any interrupt request is

pending, the processor enters the interrupt acknowledge cycle. This can be internally masked

by resetting the interrupt enable flag. This signal is active high and internally synchronized.

TEST: This input is examined by a 'WAIT' instruction. If the TEST input goes low, execution will

continue, else, the processor remains in an idle state. The input is synchronized internally

during each clock cycle on leading edge of clock.

NMI-Non-maskable Interrupt: This is an edge-triggered input which causes a Type2 interrrupt.

The NMI is not maskable internally by software. A transition from low to high initiates the

interrupt response at the end of the current instruction. This input is internally synchronized.

RESET: This input causes the processor to terminate the current activity and start execution

from FFFF0H. The signal is active high and must be active for at least four clock cycles. It restarts

execution when the RESET returns low. RESET is also internally synchronized.

CLK-Clock Input: The clock input provides the basic timing for processor operation and bus

control activity. Its an asymmetric square wave with 33% duty cycle. The range of frequency for

different 8086 versions is from 5MHz to 10MHz.

VCC : +5V power supply for the operation of the internal circuit. GND ground for the internal

circuit.

MN/ MX :The logic level at this pin decides whether the processor is to operate in either

minimum (single processor) or maximum (multiprocessor) mode.

The following pin functions are for the minimum mode operation of 8086.

Page 4: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

M / IO -Memory/IO: When it is low, it indicates the CPU is having an I/O operation, and when

it is high, it indicates that the CPU is having a memory operation. This line becomes active in the

previous T4 and remains active till final T4 of the current cycle.

INTA -Interrupt Acknowledge: This signal is used as a read strobe for interrupt acknowledge

cycles. In other words, when it goes low, it means that the processor has accepted the

interrupt. It is active low during T2, T3 and TW of each interrupt acknowledge cycle.

ALE-Address latch Enable: This output signal indicates the availability of the valid address on

the address/data lines, and is connected to latch enable input of latches. This signal is active

high and is never tristated.

DT / R -Data Transmit/Receive: This output is used to decide the direction of data flow

through the transreceivers (bidirectional buffers). When the processor sends out data, this

signal is high and when the processor is receiving data, this signal is low

DEN-Data Enable: This signal indicates the availability of valid data over the address/data lines.

It is used to enable the transceivers (bidirectional buffers) to separate the data from the

multiplexed address/data signal. It is active from the middle of T2 until the middle of T4 DEN is

tristated during 'hold acknowledge' cycle.

HOLD, HLDA-Hold/Hold Acknowledge: When the HOLD line goes high, it indicates to the

processor that another master is requesting the bus access. The processor, after receiving the

HOLD request, issues the hold acknowledge signal on HLDA pin, in the middle of the next clock

cycle after completing the current bus (instruction) cycle. At the same time, the processor floats

the local bus and control lines. When the processor detects the HOLD line low, it lowers the

HLDA signal. If the DMA request is made while the CPU is performing a memory or I/O cycle, it

willrelease the local bus during T4 provided:

1. The request occurs on or before T2 state of the current cycle.

2. The current cycle is not operating over the lower byte of a word (or operating on an odd

address).

3. The current cycle is not the first acknowledge of an interrupt acknowledge sequence.

4. A Lock instruction is not being executed.

The following pin functions are applicable for maximum mode operation of 8086.

S2, S1, S0 -Status Lines: These are the status lines which reflect the type of operation, being

carried out by the processor. These become active during T4 of the previous cycle and remain

active during T1 and T2 of the current bus cycle. The status lines return to passive state during

T3 of the current bus cycle so that they may again become active for the next bus cycle during

T4. Any change in these lines during T3 indicates the starting of a new cycle, and return to

passive state indicates end of the bus cycle. These status lines are encoded in table.

Page 5: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

LOCK : This output pin indicates that other system bus masters will be prevented from gaining

the system bus, while the LOCK signal is low. The LOCK signal is activated by the 'LOCK' prefix

instruction and remains active until the completion of the next instruction. This floats to tri-

state off during "hold acknowledge". When the CPU is executing a critical instruction which

requires the system bus, the LOCK prefix instruction ensures that other processors connected in

the system will not gain the control of the bus. The 8086, while executing the prefixed

instruction, asserts the bus lock signal output, which may be connected to an external bus

controller.

QS1, QS0-Queue Status: These lines give information about the status of the code prefetch

queue. These are active during the CLK cycle after which the queue operation is performed.

These are encoded as shown in Table.

RQ / 0GT , RQ / 1GT -Request/Grant: These pins are used by other local bus masters, in

maximum mode, to force the processor to release the local bus at the end of the processor's

current bus cycle. Each of the pins is bidirectional with RQ/GT0 having higher priority than RQ/

GT1.

Page 6: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

Minimum mode of 8086 Systems:

In a minimum mode 8086 system, the microprocessor 8086 is operated in minimum

mode by strapping its MN/MX* pin to logic1. In this mode, all the control signals are given out

by the microprocessor chip itself. There is a single microprocessor in the minimum mode

system.

The remaining components in the system are latches, transreceivers, clock generator,

memory and I/O devices. Some type of chip selection logic may be required for selecting

memory or I/O devices, depending upon the address map of the system.

The latches are generally buffered output D-type flip-flops, like, 74LS373 or 8282. They

are used for separating the valid address from the multiplexed address/data signals and are

controlled by the ALE signal generated by 8086.

Transreceivers are the bidirectional buffers. They are required to separate the valid data

from the time multiplexed address/data signal. They are controlled by two signals, namely,

DEN* and DT/R*. The DEN* signal indicates that the valid data is available on the data bus,

while DT/R indicates the direction of data, i.e. from or to the processor.

Page 7: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

The system contains memory for the monitor and users program storage. Usually,

EPROMS are used for monitor storage, while RAMs for users program storage. A system may

contain I/O devices for communication with the processor as well as some special purpose I/O

devices.

The clock generator generates the clock from the crystal oscillator and then shapes it

and divides to make it more precise so that it can be used as an accurate timing reference for

the system. The clock generator also synchronizes some external signals with the system clock.

The general system organization is shown in figure.

System Bus Timing of Minimum mode:

The BHE* and A0 signals are used to select the proper byte or bytes of memory or I/O

word to be read or written. The M/IO*, RD* and WR* signals indicate the types of data transfer

as specified in Table

The working of the minimum mode configuration system can be better described in

terms of the timing diagrams rather than qualitatively describing the operations. The opcode

fetch and read cycles are similar. Hence the timing diagram can be categorized in two parts, the

first is the timing diagram for read cycle and the second is the timing diagram for write cycle.

Page 8: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

Figure shows the read cycle timing diagram. The read cycle begins in T1 with the

assertion of the address latch enable (ALE) signal and also M/IO* signal. During the negative

going edge of this signal, the valid address is latched on the local bus. The BHE* and A0 signals

address low, high or both bytes. From Tl to T4, the M/IO* signal indicates a memory or I/O

operation. At T2 the address is removed from the local bus and is sent to the output. The bus is

then tristated. The read (RD*) control signal is also activated in T2 .The read (RD) signal causes

the addressed device to enable its data bus drivers. After RD* goes low, the valid data is

available on the data bus. The addressed device will drive the READY line high, when the

processor returns the read signal to high level, the addressed device will again tristate its bus

drivers.

Page 9: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

Figure shows the write cycle timing diagram. A write cycle also begins with the assertion

of ALE and the emission of the address. The M/IO* signal is again asserted to indicate a

memory or I/O operation. In T2 after sending the address in Tl the processor sends the data to

be written to the addressed location. The data remains on the bus until middle of T4 state. The

WR* becomes active at the beginning ofT2 (unlike RD* is somewhat delayed in T2 to provide

time for floating).

The HOLD pin is checked at the end of the each bus cycle. If it is received active by the

processor before T4 of the previous cycle or during T1 state of the current cycle, the CPU

activities HLDA in the next clock cycle and for the succeeding bus cycles, the bus will be given to

another requesting master. The control of the bus is not regained by the processor until the

Page 10: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

requesting master does not drop the HOLD pin low. When the request is dropped by the

requesting master, the HLDA is dropped by the processor at the trailing edge of the next clock

as shown in figure.

Maximum mode of 8086 Systems:

In the maximum mode, the 8086 is operated by strapping the MN/MX* pin to ground.

Inthis mode, the processor derives the status signals S2*, S1* and S0*. Another chip called bus

controller derives the control signals using this status information. In the maximum mode,

there may be more than one microprocessor in the system configuration. The other

components in the system are the same as in the minimum mode system. The general system

organization is as shown in the figure.

The basic functions of the bus controller chip IC8288, is to derive control signals like RD*

and WR* (for memory and I/O devices), DEN*, DT/R*, ALE, etc. using the information made

Page 11: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

available by the processor on the status lines. The bus controller chip has input lines S2*, S1*

and S0* and CLK. These inputs to 8288 are driven by the CPU. It derives the outputs ALE, DEN*,

DT/R*, MWTC*, AMWC*, IORC*, IOWC* and AIOWC*. The AEN*, IOB and CEN pins are specially

useful for multiprocessor systems. AEN* and IOB are generally grounded. CEN pin is usually tied

to +5V.

The significance of the MCE/PDEN* output depends upon the status of the IOB pin. If

IOB is grounded, it acts as master cascade enable to control cascaded 8259A; else it acts as

peripheral data enable used in the multiple bus configurations. INTA* pin is used to issue two

interrupt acknowledge pulses to the interrupt controller or to an interrupting device.

IORC*, IOWC* are I/O read command and I/O write command signals respectively.

These signals enable an IO interface to read or write the data from or to the addressed port.

The MRDC*, MWTC* are memory read command and memory write command signals

respectively and may be used as memory read and write signals. All these command signals

instruct the memory to accept or send data from or to the bus. For both of these write

command signals, the advanced signals namely AIOWC* and AMWTC* are available. They also

serve the same purpose, but are activated one clock cycle earlier than the IOWC* and MWTC*

signals, respectively.

System Bus Timing of Maximum mode:

The maximum mode system timing diagrams are also divided in two portions as read

(input) and write (output) timing diagrams. The address/data and address/status timings are

similar to the minimum mode. ALE is asserted in T1, just like minimum mode. The only

difference lies in the status signals used and the available control and advanced command

signals. The figure shows the maximum mode timings for the read operation.

Page 12: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

The figure shows the maximum mode timings for the write operation.

Page 13: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

Multiprocessor Configurations:

A multiprocessor system will have two or more processors that can execute instructions

or perform operations simultaneously.

Need for multiprocessor Systems:

1. Due to limited data width and lack of floating point arithmetic instructions, 8086

requires many instructions for computing even single floating point operation. For this

purpose, numeric data processor (8087) can help 8086 processor.

2. Some processor like DMA controller can help 8086 with low level operations.

Advantages:

1. Several low cost processors may be combined to fit the needs of an application while

avoiding the expense of unneeded capabilities of centralized system.

2. When a failure occurs, it is easy to replace the faulty processor.

3. In a multiprocessor system implementation modular processing of task can be achieved.

4. It is easy to add more processor.

Basic multiprocessor configurations:

1. Coprocessor configuration

2. Closely coupled configuration

3. Loosely coupled configuration

Coprocessor Configuration:

In coprocessor configuration, both CPU (8086) and external processor (Math

Coprocessor 8087) share entire memory and I/O System. They also share same bus control logic

and clock generator (8284). 8086 is the master and 8087 is slave.

Page 14: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

Coprocessor (8087) instructions also can be used along with 8086 instructions. An

instruction executed by the coprocessor is indicated by an ESC prefix.

1. 8086 fetches the instructions.

2. The coprocessor monitors the instruction sequence and capture its own instructions.

3. The ESC is decoded by the CPU and coprocessor simultaneously.

4. The CPU computes 20 bit address of memory operand and does a dummy read. The

coprocessor captures the address of the data and obtains control of the bus to load or

store the data.

5. The coprocessor send BUSY signal to TEST’ pin of 8086.

6. The CPU goes to the next instruction and if this is 8086 instruction, the CPU and

coprocessor execute in parallel.

7. If another coprocessor instruction occurs, the 8086 must wait until BUSY goes low.

Closely Coupled Configurations:

Coprocessor and closely coupled configurations are similar in sharing memory, I/O

system, and bus control logic and clock generator. In closely coupled configuration,

independent processor is used.

Page 15: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

The main difference between coprocessor and closely coupled configuration is no

special instruction WAIT or ESC used. The communication between 8086 and independent

processor is done through memory space.

As shown in figure, the 8086 sets up a message in memory and wakes up independent

processor by sending command to one of its ports. The independent processor then accesses

the memory to execute the task in parallel with 8086. When task is completed the external

processor informs the 8086 about completion of task by using either a status bit or an interrupt

request.

Page 16: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

Loosely coupled configuration:

In loosely coupled configuration a number of modules of 8086 can be interfaced

through a common system bus to work as a multiprocessor system. Each module in the loosely

coupled configuration is an independent microprocessor system with its own clock, and its own

memory and I/O devices interfaced through a local bus.

Advantages:

1. Better system throughput by having more than one processor.

2. The system can be expanded in a modular form. Each processor is an independent unit.

One can be added or removed without affecting other system.

3. A failure in one module normally does not affect the entire system. Faulty module can

be easily detected and replaced.

Page 17: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

4. Each module has its own memory and clock so that a degree of parallel processing can

be achieved.

Bus Allocation Schemes:

i. Daisy chaining

ii. Polling method

iii. Independent priority

BUS ALLOCATION SCHEMES:

Daisy Chaining:

Need a bus controller to monitor bus busy and bus request signals

Sends a bus grant to a Master. Each Master either keeps the service or passes it on

Controller synchronizes the clocks

Master releases the Bus Busy signal when finished

Polling:

Controller sends address of device to grant bus access

memory= highest priority

o Highest priority is granted first, if it does not respond, then a lower priority is

granted, and so on

until someone accepts

o (ie: one request line, 3-bit grant line)

Page 18: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

Independent:

Each master has a request and grant line

Now just a question of priority

Could have fixed priority, rotating priority, etc. usually fixed priority used,

because memory is desired to be the highest priority

Synchronization of the clocks must be performed once a Master is recognized

Master will receive a common clock from one side and pass it to the controller

which will derive a clock for transfer

Can accurately predict calculations (since memory is always the highest priority)

Page 19: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

PART A

1. What is the operation of RD’ signal?

RD’ is an active low signal. When it is low, it indicates the peripherals that the processor is

performing a memory or I/O read operation.

2. Give the function of i. Ready and ii. INTR signal.

i. Ready signal:

It is an acknowledgement from slow devices of memory that they have completed data

transfer. The signal is synchronized by 8284 A clock generator to give ready input to 8086. The

signal is active high.

ii. INTR signal:

It is a level triggered input. This is sampled during the last cycle of each instruction to

determine the availability of the request. If any interrupt request is pending, the processor

enters the interrupt acknowledge cycle. This can be internally masked by resetting the interrupt

enable flag. The signal is active high and internally synchronized.

3. What is the operation performed when TEST’ input is low?

When the TEST’ input is low, execution will continue, else, the processor remains in an idle

state.

4. What is NMI (Non-Maskable Interrupt) ?

NMI is an edge-triggered input, which causes a type 2 interrupt. It is not maskable internally

by software and transition from low to high initiates the interrupt response at the end of the

current instruction. This input is internally synchronized.

5. What is the function of MN/MX’ pin?

The logic level at MN/MX’ pin decides whether processor operates in minimum or maximum

mode.

6. Differentiate between minimum and maximum mode

Minimum mode Maximum mode

A processor is in minimum mode when MN/MX

pin is strapped to +5V. A processor is in minimum mode when MN/MX

pin is strapped to +5V.

All the control signals are given out by

The processor derive the status signals S2 , S1

and

microprocessor chip itself.

S0. Another chip called bus controller

derives

control signals using this status information.

There is a single microprocessor. There may be more than one microprocessor.

Page 20: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

7. Give pin definitions for the minimum mode.

Symbol Description

Indicates recognition of an interrupt

INTA

request. Consists of two negative

going

pulses in two consecutive bus cycles.

ALE

Outputs a pulse at the beginning of

the

bus cycle and to indicate an

address

available on address pins.

HLDA Outputs a bus grant to a requesting

master.

HOLD

Receives bus requests from bus

masters.

8. What is a bootstrap loader ?

When a “1” is applied to reset input, PSW, IP, DS, ES, CS and instruction queue are cleared

and CS is set to FFFF. With IP = 0000 and CS = FFFF, the processor will begin executing from

FFFF0. This location would be in read-only section of memory and contains a JMP instruction to

a program for initializing the system and loading the operating system. Such a program is called

as a bootstrap loader.

9. What are the pins that are used to indicate the type of transfer in minimum mode ?

The M/IO, RD, WR lines specify the type of transfer. It is indicated in the following table:

M/IO RD WR

0 0 1 I/O Read

0 1 0 I/O Write

1 0 1 Memory read

1 1 0 Memory write

Page 21: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

10. What is the operation of S0, S1 and S2 pins in maximum mode ?

S2, S1, S0 indicates the type of transfer to take place during the current

bus cycle.

S2 S1 S0

0 0 0 - Interrupt acknowledge

0 0 1 - Read I/O port

0 1 0 - Write I/O port

0 1 1 - Halt

1 0 0 - Instruction fetch

1 0 1 - Read Memory

1 1 0 - Write Memory

1 1 1 - Inactive.

11. Give any four pin definitions for maximum mode.

Symbol Description

QS1, QS0

Reflects the status of the

instruction

queue. This status indicates the

activity in the queue during the

previous clock cycle.

Indicates that the bus is not to

be

LOCK

relinquished to other potential

bus

masters.

For inputting bus requests and

RQ/GT1 outputting bus grants.

Same as RQ/GT1 except that a

request on RQ/GT0 has higher

RQ/GT0 priority.

12. State the significance of LOCK signal in 8086.

If 8086 is working at maximum mode, there are multiprocessors are present. If the system

bus is given to a processor then the LOCK signal is made low. Processors. After the use of the

system bus again the LOCK signal is made high. That means it is ready to give the system bus

to any processor.

Page 22: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

13. What is the function of the BHE’ signal in 8086?

BHE’ signal means Bus High Enable signal. The BHE signal is made low when there is Some

read or write operation is carried out. ie. Whenever the data bus of the system is busy i.e.

whenever there is some data transfer then the BHE signal is made low.

14. What are the three basic multiprocessor configuration that 8086 can support?

a. Coprocessor configuration

b. Closely coupled configuration

c. Loosely coupled configuration

15. What are the advantages of a loosely coupled configuration in a multiprocessor

system?

Each processor may have a local bus to access local memory or I/o devices so that a

greater degree of parallel processing can be achieved

More flexible

Better system throughput by having more than one processor.

If any fault occurs in a module, that faulty module can be detected and replaced. So the

breakdown of entire system is avoidable.

16. Define Coprocessor:

A coprocessor is a computer processor used to supplement the functions of the primary

processor (the CPU). Operations performed by the coprocessor may be floating point

arithmetic, graphics, signal processing, string processing, encryption or I/O Interfacing

with peripheral devices.

17. Difference between Closely Coupled & Loosely Coupled Multiprocessor systems

Closely Coupled Loosely Coupled

1. Contains multiple CPUs that are connected

at 1.

These are based on multiple standalone

signal

the bus level. These CPU may have access to a

or dual [rocessor interconnected via a high

speed

central shared memory or may participate in a communication system.

memory hierarchy with local and shared

memory.

2. They perform better and are physically

smaller 2. Opposite to closely coupled.

than loosely coupled system.

3. More expensive. 3. Less Expensive.

4.The delay experienced is short, data rate is

high, 4. Delay is large, data rate is low.

number of bits transferred per second is large.

Page 23: EC 6504 Microprocessor and Microcontroller Unit II … 6504 Microprocessor and Microcontroller Unit – II ... The 8086 Microprocessor is a 16-bit CPU available in 3 clock rates, ...

PART B

1. Discuss in detail the pin configuration or signals of 8086

2. Explain the two types of configuration with neat block diagram

3. Evaluate system Bus timing with neat block diagrm

4. Describe in brief the two types of system available in 8086 with its pin features

5. Enumerate I/O programming by its major input and output operation

6. Explain multiprogramming by comparing multiprocessing

7. Deduce the concept of system bus structure

8. Discuss about the multiprocessor configurations of 8086.

9. Assume that loosely coupled multiprocessor system consists of an 8086 with a local

memory in one module and in another module two 8089 with local bus. Determine the

major bus interface Devices required for each module

10. Explain the basic bus access control and arbitration schemes used in multiprocessor system

or Explain the basic bus access control and arbitration schemes used in loosely coupled

multiprocessor system.

11. Illustrate various topologies with different interfacing examples.

12. Write a brief note on 8086 base loosely coupled system configuration

13. Evaluate closely coupled system configuration in detail.