st7pmc2s6 STMicroelectronics, st7pmc2s6 Datasheet - Page 59

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
ST7MC1K2-Auto, ST7MC1K6-Auto, ST7MC2S4-Auto, ST7MC2S6-Auto
7
7.1
7.2
Note:
Interrupts
Introduction
The ST7 enhanced interrupt management provides the following features:
This interrupt management is based on:
This enhanced interrupt controller guarantees full upward compatibility with the standard
(not nested) ST7 interrupt controller.
Masking and processing flow
The interrupt masking is managed by the I1 and I0 bits of the CC register and the ISPRx
registers which give the interrupt software priority level of each interrupt vector (see
Table
When an interrupt request has to be serviced:
The interrupt service routine should end with the IRET instruction which causes the
contents of the saved registers to be recovered from the stack.
As a consequence of the IRET instruction, the I1 and I0 bits are restored from the stack and
the program in the previous level is resumed.
Hardware interrupts
Software interrupt (TRAP)
Nested or concurrent interrupt management with flexible interrupt priority and level
management:
bit 5 and bit 3 of the CPU CC register (I1:0),
interrupt software priority registers (ISPRx),
fixed interrupt vector addresses located at the high addresses of the memory map
(FFE0h to FFFFh) sorted by hardware priority order.
Normal processing is suspended at the end of the current instruction execution.
The PC, X, A and CC registers are saved onto the stack.
I1 and I0 bits of CC register are set according to the corresponding values in the ISPRx
registers of the serviced interrupt vector.
The PC is then loaded with the interrupt vector of the interrupt to service and the first
instruction of the interrupt service routine is fetched (refer to
mapping
16). The processing flow is shown in
up to 4 software programmable nesting levels
up to 16 interrupt vectors fixed by hardware
2 non maskable events: RESET, TRAP
1 maskable top level event: MCES
for vector addresses).
Figure
16.
Table 22: Interrupt
Interrupts
59/371

Related parts for st7pmc2s6