Unit II
Unit II
When microprocessor receives any interrupt signal from peripheral(s) which are
requesting its services, it stops its current execution and program control is
transferred to a sub-routine called Interrupt Service Routine (ISR).
256(FFH) types - INT 00H, INT 01H, INT 02H,….INT FEH, INT FFH
I) Dedicated Interrupts: 5
I) Dedicated Interrupts:
INT 04 – Overflow
IP- 000H [000 & 001 – IP offset address, 002& 003 – CS Base address]
IP- 0004H [0004 & 0005 – IP offset address, 0006& 0007 – CS Base address]
Assembler Directives
DB, DW, DQ, EQU, ASSUME, SEGMENT, ORG, END,ENDS, PROC, ENDP, MACRO,
ENDM,PTR, OFFSET
2) DW - DEFINE WORD
3) DQ - DEFINE QUADWORD
4) EQU – Equate
5) ASSUME – assume
6) SEGMENT – segment
Start of the segment
CODE1 SEGMENT
CODE1 ENDS
8) ORG – Origin
ORG 2200H
PROCEDURE SUBPROGRAM1
ENDP
MACRO SUBPROGRAM2
DATA SEGMENT
ORG 2505H
DATA ENDS
CODE SEGMENT
ORG 3000H
INC SI
CODE ENDS
CODE SEGMENT
ORG 3000H
INC SI
CALL
…….
……
…..
---
---CALL SUBPROGRAM1
…….
……
…..
----
MACRO SUBRPROGRAM1
……. 3500
……
…..
ENDP
CODE ENDS
MULTIPROCESSOR SYSTEM
A system that consists of two or more microprocessors, and executes the
instructions simultaneously is called Multiprocessor System.
Advantages:
Through put
Tasks can be divided among the processors
Failure of any processor will not affect the system
Disadvantages:
Bus contention
Inter processor communication
Multiprocessor Configuration
Coprocessor Configuration
Closely Coupled Configuration
Loosely Coupled Configuration
Coprocessor Configuration
Daisy Chain
It is simple and cheaper method. All masters make use of the same line for
bus request.
In response to the bus request the controller sends a bus grant if the bus is
free.
The bus grant signal serially propagates through each master until it
encounters the first one that is requesting access to the bus. This master
blocks the propagation of the bus grant signal, activities the busy line and
gains control of the bus.
Therefore any other requesting module will not receive the grant signal and
hence cannot get the bus access.
Polling
The system connections for polling method are shown in figure above.
In this the controller is used to generate the addresses for the master.
Number of address line required depends on the number of master
connected in the system.
For example, if there are 8 masters connected in the system, at least three
address lines are required.
In response to the bus request controller generates a sequence of master
address. When the requesting master recognizes its address, it activated
the busy line ad begins to use the bus.
Independent Requesting
In this scheme each master has a separate pair of bus request and bus
grant lines and each pair has a priority assigned to it.
The built in priority decoder within the controller selects the highest
priority request and asserts the corresponding bus grant signal.