SLAAEF9A November 2023 – May 2025 MSPM0C1104 , MSPM0G3507 , MSPM0H3216 , MSPM0L1227 , MSPM0L1227-Q1 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L1306 , MSPM0L2227 , MSPM0L2227-Q1 , MSPM0L2228 , MSPM0L2228-Q1
The MSPM0 and RL78 both register and map interrupt and exception vectors depending on the available peripherals of the device. 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 of MSPM0G supports up to 32 peripheral interrupt vectors NVIC of MSPM0L supports up to 19 peripheral interrupt vectorsNVIC of MSPM0C supports up to 23 peripheral interrupt vectorsMSPM0H supports up to 22 peripheral interrupt vectors(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 |