SLAAEF9 November 2023 MSPM0C1104 , MSPM0G3507 , MSPM0L1306
The MSPM0 and RL78 both register and map interrupt and exception vectors depending on the device’s available peripherals. A summary and comparison of the interrupt vectors for each family of devices is included in Table 3-11. A lower value of priority for an interrupt or exception is given higher precedence over interrupts with a higher priority value. When the processor is currently handling an interrupt, the processor can only be preempted by an interrupt with high programmable priority.
Features | RL78 | MSPM0x |
---|---|---|
Interrupt Types | Maskable: determined by devices and divided into internal interrupt and external interrupt. | Peripheral interrupts: NVIC supports up to 32 native peripheral interrupt sources (1). |
Reset: determined by devices | Reset, NMI, Hard Fault, SVCall, PendSV, SysTick | |
Priority Level | The default priority level: determined by devices (2) | The default priority level: NVIC Number (3) |
The maskable interrupts have 4 programmable priority levels: 0, 1, 2, 3 | System exceptions (Reset, NMI, Hard Fault) have fixed priority levels of -3, -2, and -1 | |
The peripheral interrupts have 4 programmable priority levels: 0, 64, 128, 192 | ||
Priority Set | PR0xy and PR1xy registers: used to set the maskable interrupt priority level | IPRx registers in the NVIC: used to set the peripheral interrupt priority level |
Interrupt mask | MKxy registers: used to enable/disable the corresponding maskable interrupt | IMASK register in the peripheral side: used to configure which interrupt conditions propagate into an event (4) |
ISER and ICER register in the NVIC: used to enable or disable the peripheral interrupts |