st7pmc2s6 STMicroelectronics, st7pmc2s6 Datasheet - Page 60

no-image

st7pmc2s6

Manufacturer Part Number
st7pmc2s6
Description
8-bit Mcu For Automotive With Nested Interrupts, Flash, 10-bit Adc, Brushless Motor Control, 5 Timers, Spi, Linsci?
Manufacturer
STMicroelectronics
Datasheet
Interrupts
7.2.1
60/371
Table 16.
Figure 16. Interrupt processing flowchart
Servicing pending interrupts
As several interrupts can be pending at the same time, the interrupt to be taken into account
is determined by the following two-step process:
Figure 17
Level 0 (main)
Level 1
Level 2
Level 3 (interrupt disable)
the highest software priority interrupt is serviced,
if several interrupts have the same software priority then the interrupt with the highest
hardware priority is serviced first.
describes this decision process.
Restore PC, X, A, CC
Interrupt software priority
Interrupt software priority levels
Reset
from stack
ST7MC1K2-Auto, ST7MC1K6-Auto, ST7MC2S4-Auto, ST7MC2S6-Auto
Y
interrupt
Pending
instruction
Fetch next
instruction
Execute
N
‘IRET’
N
Y
stays pending
The interrupt
Level
High
Low
Interrupt has the same or a
lower software priority
Load I1:0 from interrupt SW reg
Load PC from interrupt vector
than current one
Interrupt has a higher
than current one
software priority
Stack PC, X, A, CC
I1
1
0
0
1
MCES
I1:0
N
.
Y
I0
0
1
0
1

Related parts for st7pmc2s6