Modifying Interrupt Priorities - Intel 8XC196K Series User Manual

Table of Contents

Advertisement

8XC196K x , J x , CA USER'S MANUAL
INT_MASK1
The interrupt mask 1 (INT_MASK1) register enables or disables (masks) individual interrupts. (The EI
and DI instructions enable and disable servicing of all maskable interrupts.) INT_MASK1 can be read
from or written to as a byte register. PUSHA saves this register on the stack and POPA restores it.
7
87C196CA
NMI
7
8XC196J x
7
8XC196K x
NMI
Bit
Number
7:0
Setting this bit enables the corresponding interrupt.
The standard interrupt vector locations are as follows:
Bit Mnemonic Interrupt
††
NMI
EXTINT
CAN (CA)
RI
TI
SSIO1
SSIO0
CBF (K x )
Bit 5 is reserved on the 8XC196J x , K x devices and bit 0 is reserved on the 87C196CA, 8XC196J x
devices. For compatibility with future devices, always write zeros to these bits.
††
NMI is always enabled. This nonfunctional mask bit exists for design symmetry with the
INT_PEND1 register. Always write zero to this bit.
Figure 5-6. Interrupt Mask 1 (INT_MASK1) Register
5.5.2

Modifying Interrupt Priorities

The software can modify the default priorities of maskable interrupts by controlling the interrupt
mask registers (INT_MASK and INT_MASK1). For example, you can specify which interrupts,
if any, can interrupt an interrupt service routine. The following code shows one way to prevent
all interrupts, except EXTINT (priority 14), from interrupting an SIO receive interrupt service
routine (priority12).
5-14
EXTINT
CAN
RI
EXTINT
RI
EXTINT
RI
Nonmaskable Interrupt
EXTINT Pin
CAN Peripheral
SIO Receive
SIO Transmit
SSIO 1 Transfer
SSIO 0 Transfer
Slave Port Command Buffer Full
Reset State:
TI
SSIO1
TI
SSIO1
TI
SSIO1
Function
Standard Vector
203EH
203CH
203AH
2038H
2036H
2034H
2032H
2030H
Address:
13H
00H
0
SSIO0
0
SSIO0
0
SSIO0
CBF

Advertisement

Table of Contents
loading

Table of Contents