Interrupts
Interrupts
Interrupts
Interrupts
D D
76543210
11101111
M 7.5
RST 6.5
M 6.5
RST 5.5
M 5.5
INTR
Interrupt
Enable
Flip Flop
M5.5
M6.5
M7.5
MSE
SDO
R7.5
SDE
XXX
}
RST5.5 Mask
Serial Data Out 0 - Available
RST6.5 Mask
1 - Masked
RST7.5 Mask
M7.5
M6.5
M5.5
SDO
MSE
R7.5
SDE
XXX
- Disable 6.5 bit 1 = 1
- Enable 7.5 bit 2 = 0
- Allow setting the masks bit 3 = 1 0 0 0 0 1 0 1 0
- Don’t reset the flip flop bit 4 = 0
- Bit 5 is not used bit 5 = 0
- Don’t use serial data bit 6 = 0 Contents of accumulator are: 0AH
- Serial data is ignored bit 7 = 0
RST7.5 Memory
RST 7.5
M 7.5
7 6 5 4 3 2 1 0
M5.5
M7.5
M6.5
P6.5
P7.5
P5.5
SDI
IE
RST 6.5
M 6.5
RST 5.5
M 5.5
Interrupt Enable
Flip Flop
7 6 5 4 3 2 1 0
M6.5
M5.5
M7.5
P6.5
P7.5
P5.5
SDI
IE
}
RST5.5 Mask
Serial Data In 0 - Available
RST6.5 Mask
1 - Masked
RST7.5 Mask
RST5.5 Interrupt Pending
RST6.5 Interrupt Pending
RST7.5 Interrupt Pending Interrupt Enable
Value of the Interrupt Enable
Flip Flop
M7.5
M6.5
M5.5
P6.5
P7.5
P5.5
SDI
IE
RIM ; Read the current settings.
0 0 0 0 0 0 1 0
MSE
R7.5
SDO
M7.5
M6.5
M5.5
SDE
XXX
Microprocessors & Interfacing Dr. Bassel Soudan 42
TRAP
• TRAP is the only non-maskable interrupt.
– It does not need to be enabled because it cannot
be disabled.
• It has the highest priority amongst interrupts.
• It is edge and level sensitive.
– It needs to be high and stay high to be recognized.
– Once it is recognized, it won’t be recognized again
until it goes low, then high again.
Level
INTR Yes DI / EI No No
Sensitive
Dev. 7
Dev. 6
I7 INTA
Dev. 5
I6 INTR
8 8
I5 AD7
Dev. 4
2
I4 AD6 0
I3 5 AD5
Dev. 3
I2 9 AD4 8
AD3
I1 A AD2 5
Dev. 2 AD1
I0
AD0
Dev. 1
Dev. 0