Mitsubishi DS907x SIP User Manual page 93

Mitsubishi microcontroller user's guide
Table of Contents

Advertisement

INTERRUPT PRIORITIES
The Secure Microcontroller provides a three priority
interrupt scheme. Multiple priority levels allow higher
priority sources to interrupt lower priority ISRs. The
Power–fail Warning Interrupt automatically has the
highest priority if enabled. The remaining interrupts can
be programmed by the user to either high or low priority.
The priority scheme woks as follows. The ISR for a low
priority source can be interrupted by a high priority
source. A low priority ISR can not be interrupted by
another low priory source. Neither can a high priority
ISR be interrupted by a another high priority source. The
PFW source will interrupt any ISR if activated.
INTERRUPT PRIORITY CONTROL BITS Figure 11–3
Bit Description:
All bits are read/write at any time and are cleared to 0 following any hardware reset.
IP.4:
"Serial Port Priority":
IP.3:
"Timer 1 Priority":
IP.2:
"Ext. Int. 1 Priority":
IP.1:
"Timer 0 Priority":
IP.0:
"Ext. Int. 0 Priority":
PRIORITY
1
2
3
4
5
6
PS
Programs Serial Port interrupts for high priority when set to 1. Low priority is
selected when cleared to 0.
PT1
Programs Timer 1 interrupt for high priority when set to 1. Low priority is se-
lected when cleared to 0.
PX1
Programs External Interrupt 1 for high priority when set to 1. Low priority is
selected when cleared to 0.
PT0
Program Timer 0 interrupt for high priority when set to 1. Low priority is se-
lected when cleared to 0.
PX0
Programs External Interrupt 0 for high priority when set to 1. Low priority is
selected when cleared to 0.
In the case of simultaneous interrupt requests, the mi-
crocontroller has a natural scheme to arbitrate. First, if
high and low priority interrupt requests are received
simultaneously, then the high priority source will be
serviced. If two or more requests from equal priority
sources are received, the following natural priority
scheme will be used to arbitrate.
Each interrupt priority is determined by an individual bit
as shown below. Setting the appropriate bit to a logic 1
will cause that interrupt to be high priority.
FLAG
INTERRUPT SOURCE
PFW
Power–fail Warning
IE0
External Interrupt 0
TF0
Timer 0 Interrupt
IE1
External Interrupt 1
TF1
Timer 1 Interrupt
RI+TI
Serial I/O Interrupt
93
USER'S GUIDE
050396 92/173

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ds5000tkDs5000fpDs5001fpDs5002fp

Table of Contents