17. Extended interrupts and event controller (EXTI)
The extended interrupts and event controller (EXTI) manages the individual CPU and system wakeup through configurable event inputs. It provides wakeup requests to the power control and generates an interrupt request to the CPU NVIC and events to the CPU event input. For the CPU, an additional event generation block (EVG) is needed to generate the CPU event signal.
The EXTI wakeup requests allow the system to be woken up from Stop modes.
The interrupt request and event request generation can be used also in Run modes.
The EXTI also includes the EXTI mux IO port selection.
17.1 EXTI main features
The EXTI main features are the following:
- • 54 input events supported
- • All event inputs allow the possibility to wake up the system.
- • Events that do not have an associated wakeup flag in the peripheral, have a flag in the EXTI and generate an interrupt to the CPU from the EXTI.
- • Events can be used to generate a CPU wakeup event.
The configurable events have the following features:
- • Selectable active trigger edge
- • Interrupt pending status register bits independent for the rising and falling edge
- • Individual interrupt and event generation mask, used for conditioning the CPU wakeup, interrupt and event generation
- • Software trigger possibility
- • EXTI IO port selection
17.2 EXTI block diagram
The EXTI consists of a register block accessed via an AHB interface, the event input trigger block, the masking block and EXTI mux as shown in Figure 71.
The register block contains all the EXTI registers.
The event input trigger block provides event input edge trigger logic.
The masking block provides the event input distribution to the different wakeup, interrupt and event outputs, and their masking.
The EXTI mux provides the IO port selection on to the EXTI event signal.
Figure 71. EXTI block diagram

Table 98. EXTI pin overview
| Pin name | I/O | Description |
|---|---|---|
| AHB interface | I/O | EXTI register bus interface. |
| hclk | I | AHB bus clock and EXTI system clock |
| Configurable event(y) | I | Asynchronous wakeup events from peripherals that do not have an associated interrupt and flag in the peripheral |
| exti_ilac | O | Illegal access event |
| IOPort(n) | I | GPIOs block IO ports[15:0] |
| exti[15:0] | O | EXTI GPIO output port to trigger other peripherals |
| it_exti_per (y) | O | Interrupts to the CPU associated with configurable event (y) |
| c_evt_exti | O | High-level sensitive event output for CPU, synchronous to hclk |
| c_evt_rst | I | Asynchronous reset input to clear c_evt_exti |
| sys_wakeup | O | Asynchronous system wakeup request to PWR for ck_sys and hclk |
| c_wakeup | O | Wakeup request to PWR for CPU, synchronous to hclk |
Table 99. EVG pin overview
| Pin name | I/O | Description |
|---|---|---|
| c_fclk | I | CPU free running clock |
| c_evt_in | I | High-level sensitive events input from EXTI, asynchronous to CPU clock |
| c_event | O | Event pulse, synchronous to CPU clock |
| c_evt_rst | O | Event reset signal, synchronous to CPU clock |
17.2.1 EXTI connections between peripherals and CPU
Some peripherals are able to generate wakeup or interrupt events when the system is in Stop mode, are connected to the EXTI.
- Peripheral wakeup signals that generate a pulse or do not have an interrupt status bits in the peripheral, are connected to an EXTI configurable event input. For these events,
the EXTI provides a status pending bit that requires to be cleared. It is the EXTI interrupt, associated with the status bit, that interrupts the CPU.
- • All GPIO ports input to the EXTI multiplexer allow the selection of a port pin to wake up the system via a configurable event.
The EXTI configurable event interrupts are connected to the NVIC.
The dedicated EXTI/EVG CPU event is connected to the CPU rxev input.
The EXTI CPU wakeup signals are connected to the PWR and are used to wake up the system and the CPU sub-system bus clocks.
17.2.2 EXTI interrupt/event mapping
The EXTI lines are connected as shown in the table below.
Table 100. EXTI line connections
| EXTI Line | Line source | Line type |
|---|---|---|
| 0-15 | GPIO | Configurable |
| 16 | PVD/AVD output | Configurable |
| 17 | RTC | - |
| 18 | Reserved | - |
| 19 | TAMP | - |
| 20 | Reserved | - |
| 21 | I2C1 wakeup | - |
| 22 | I2C2 wakeup | - |
| 23 | Reserved | - |
| 24 | I3C wakeup | - |
| 25 | USART1 wakeup | - |
| 26 | USART2 wakeup | - |
| 27 | USART3 wakeup | - |
| 28 | I3C2 wakeup | - |
| 29 | COMP1 output wakeup | - |
| 30 - 36 | Reserved | - |
| 37 | LPUART1 wakeup | - |
| 38 | LPTIM1 | - |
| 39 | LPTIM2 | - |
| 40 | SPI1 wakeup | - |
| 41 | SPI2 wakeup | - |
| 42 | SPI3 wakeup | - |
| 43 - 46 | Reserved | - |
| 47 | USB wakeup | - |
| EXTI Line | Line source | Line type |
|---|---|---|
| 48 | Reserved | - |
| 49 | LPTIM2 CH1 | - |
| 50 | DTS wakeup | Configurable |
17.3 EXTI functional description
The events features are controlled from register bits as follows:
- Active trigger edge enable
- by rising edge selection in the EXTI rising trigger selection register (EXTI_RTSR1)
- by falling edge selection in the EXTI falling trigger selection register (EXTI_FTSR1)
- Software trigger in the EXTI software interrupt event register (EXTI_SWIER1)
- Interrupt pending flag in the
- EXTI rising edge pending register (EXTI_RPR1)
- EXTI falling edge pending register (EXTI_FPR1)
- CPU wakeup and interrupt enable in the
- EXTI CPU wakeup with interrupt mask register (EXTI_IMR1)
- CPU wakeup and event enable
- EXTI CPU wakeup with interrupt mask register (EXTI_IMR1)
17.3.1 EXTI configurable event input wakeup
The figure below is a detailed representation of the logic associated with configurable event inputs that wake up the CPU sub-system bus clocks and generate an EXTI pending flag and interrupt to the CPU, and/or a CPU wakeup event.
Figure 72. Configurable event trigger logic CPU wakeup
- Only for the input events that support CPU rxev generation c_event.
The software interrupt event register allows configurable events to be triggered by software, writing the corresponding register bit, whatever the edge selection setting.
The configurable event active trigger edge (or both edges) is selected and enabled in the rising/falling edge selection registers.
The CPU has its dedicated wakeup (interrupt) mask register and a dedicated event mask registers. When the event is enabled, it is generated to the CPU. All events for the CPU are ORed together into a single CPU event signal. The event pending registers (EXTI_RPR and EXTI_FPR) are not set for an unmasked CPU event.
The configurable events have unique interrupt pending request registers. The pending register is only set for an unmasked interrupt. Each configurable event provides a common interrupt to the CPU. The configurable event interrupts must be acknowledged by software in the EXTI_RPR and/or EXTI_FPR registers.
When a CPU wakeup (interrupt) or CPU event is enabled, the asynchronous edge detection circuit is reset by the clocked delay and rising edge detect pulse generator. This guarantees that the EXTI hclk clock is woken up before the asynchronous edge detection circuit is reset.
Note: A detected configurable event interrupt pending request can be cleared by the CPU with the correct access permission. The system is not able to enter into low-power modes as long as an interrupt pending request is active.
17.3.2 EXTI mux selection
The EXTI mux allows the selection of GPIOs as interrupts and wakeup. GPIOs are connected via 16 EXTI mux lines to the first 16 EXTI events as configurable event. The selection of GPIO port as EXTI mux output is controlled in the EXTI external interrupt selection register (EXTI_EXTICR1).
Figure 73. EXTI mux GPIO selection

The EXTI mux outputs are available as output signals from the EXTI to trigger other peripherals, whatever the masking in EXTI_IMR and EXTI_EMR registers.
17.4 EXTI functional behavior
The configurable events are enabled by enabling at least one of the trigger edges.
Once an event input is enabled, the CPU wakeup generation is conditioned by the CPU interrupt mask and CPU event mask.
Table 101. Masking functionality
| CPU interrupt enable (in EXTI_IMR.IMn) | CPU event enable (in EXTI_EMR.EMn) | Configurable event inputs (in EXTI_RPR.RPIFn and EXTI_FPR.FPIFn) | Exti(n) interrupt(1) | CPU event | CPU wakeup |
|---|---|---|---|---|---|
| 0 | 0 | No | Masked | Masked | Masked |
| 1 | No | Masked | Yes | Yes | |
| 1 | 0 | Status latched | Yes | Masked | Yes(2) |
| 1 | Status latched | Yes | Yes | Yes |
- 1. The single exti(n) interrupt goes to the CPU. If no interrupt is required for CPU(m), the exti(n) interrupt must be masked in the CPU NVIC.
- 2. Only if CPU interrupt is enabled in EXTI_IMR.IMn.
For configurable event inputs, when the enabled edges occur on the event input, an event request is generated. When the associated CPU interrupt is unmasked, the corresponding pending bits EXTI_RPR.RPIFn and/or EXTI_FPR.FPIFn is/are set: the CPU sub-system is woken up and the CPU interrupt signal is activated. The EXTI_RPR.RPIFn and/or EXTI_FPR.FPIFn pending bits must be cleared by software writing it to 1. This action clears the CPU interrupt.
For the configurable event inputs, an event request can be generated by software when writing a 1 in the software interrupt/event register EXTI_SWIER, allowing the generation of a rising edge on the event. The rising edge event pending bit is set in EXTI_RPR, whatever the setting in EXTI_RTSR.
17.5 EXTI event protection
The EXTI is able to protect event register bits from being modified by unprivileged accesses. The protection is individually activated per input event via the register bits in EXTI_PRIVCFGR. At EXTI level, the protection consists in preventing the following unauthorized write access:
- • Change the settings of the privileged configurable events.
- • Change the masking of the privileged input events.
- • Clear pending status of the privileged input events.
Table 102. Register protection overview
| Register name | Access type | Protection(1) |
|---|---|---|
| EXTI_RTSR | RW | Privilege can be bit-wise enabled in EXTI_PRIVCFGR. |
| EXTI_FTSR | RW | |
| EXTI_SWIER | RW | |
| EXTI_RPR | RW | |
| EXTI_FPR | RW | |
| EXTI_PRIVCFGR | RW | Always privilege. |
| EXTI_EXTICRn | RW | Privilege can be bit-wise enabled in EXTI_PRIVCFGR. |
Table 102. Register protection overview
| Register name | Access type | Protection(1) |
|---|---|---|
| EXTI_IMR | RW | Privilege can be bit-wise enabled in EXTI_PRIVCFGR. |
| EXTI_EMR | RW |
1. Privilege is enabled with the individual Input event (EXTI_PRIVCFGR register).
17.5.1 EXTI privilege protection
When privilege is enabled for an input event, the associated input event configuration and control bits can only be modified and read by a privileged access. An unprivileged write access is discarded and a read returns 0.
When input events are unprivileged, the privilege is disabled. The associated input event configuration and control bits can be modified and read by a privileged access and unprivileged access.
17.6 EXTI registers
The EXTI register map is divided in the following sections:
Table 103. EXTI register map sections
| Address offset | Description |
|---|---|
| 0x000 - 0x01C | General configurable event [31:0] configuration |
| 0x020 - 0x03C | General configurable event [57:32] configuration |
| 0x060 - 0x06C | EXTI IO port mux selection |
| 0x080 - 0x0BC | CPU input event configuration |
All the registers can be accessed with word (32-bit), half-word (16-bit) and byte (8-bit) access.
17.6.1 EXTI rising trigger selection register (EXTI_RTSR1)
Address offset: 0x000
Reset value: 0x0000 0000
Contains only register bits for configurable events.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | RT16 |
| rw | |||||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| RT15 | RT14 | RT13 | RT12 | RT11 | RT10 | RT9 | RT8 | RT7 | RT6 | RT5 | RT4 | RT3 | RT2 | RT1 | RT0 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:17 Reserved, must be kept at reset value.
Bits 16:0 RTx: Rising trigger event configuration bit of configurable event input x(1) (x = 16 to 0)
When EXTI_PRIVCFGR.PRIVx is disabled, RTx can be accessed with unprivileged and privileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, RTx can only be accessed with privileged access. Unprivileged write to this bit x is discarded, unprivileged read returns 0.
0: Rising trigger disabled (for event and interrupt) for input line
1: Rising trigger enabled (for event and interrupt) for input line
- 1. The configurable event inputs are edge triggered, no glitch must be generated on these inputs.
If a rising edge on the configurable event input occurs during writing of the register, the associated pending bit is not set.
Rising and falling edge triggers can be set for the same configurable event input. In this case, both edges generate a trigger.
17.6.2 EXTI falling trigger selection register (EXTI_FTSR1)
Address offset: 0x004
Reset value: 0x0000 0000
Contains only register bits for configurable events.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | FT16 |
| rw | |||||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| FT15 | FT14 | FT13 | FT12 | FT11 | FT10 | FT9 | FT8 | FT7 | FT6 | FT5 | FT4 | FT3 | FT2 | FT1 | FT0 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:17 Reserved, must be kept at reset value.
Bits 16:0 FTx: Falling trigger event configuration bit of configurable event input x(1) (x = 16 to 0)
When EXTI_PRIVCFGR.PRIVx is disabled, FTx can be accessed with unprivileged and privileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, FTx can only be accessed with privileged access. Unprivileged write to this FTx is discarded, unprivileged read returns 0.
0: Falling trigger disabled (for event and Interrupt) for input line
1: Falling trigger enabled (for event and Interrupt) for input line.
- 1. The configurable event inputs are edge triggered, no glitch must be generated on these inputs.
If a falling edge on the configurable event input occurs during writing of the register, the associated pending bit is not set.
Rising and falling edge triggers can be set for the same configurable event input. In this case, both edges generate a trigger.
17.6.3 EXTI software interrupt event register (EXTI_SWIER1)
Address offset: 0x008
Reset value: 0x0000 0000
Contains only register bits for configurable events.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SWI16 |
| rw | |||||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SWI15 | SWI14 | SWI13 | SWI12 | SWI11 | SWI10 | SWI9 | SWI8 | SWI7 | SWI6 | SWI5 | SWI4 | SWI3 | SWI2 | SWI1 | SWI0 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:17 Reserved, must be kept at reset value.
Bits 16:0 SWIx: Software interrupt on event x (x = 16 to 0)
When EXTI_PRIVCFGR.PRIVx is disabled, SWIx can be accessed with unprivileged and privileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, SWIx can only be accessed with privileged access. Unprivileged write to this SWIx is discarded, unprivileged read returns 0.
A software interrupt is generated independent from the setting in EXTI_RTSR and EXTI_FTSR. It always returns 0 when read.
0: Writing 0 has no effect.
1: Writing 1 triggers a rising edge event on event x. This bit is auto cleared by hardware.
17.6.4 EXTI rising edge pending register (EXTI_RPR1)
Address offset: 0x00C
Reset value: 0x0000 0000
Contains only register bits for configurable events.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | RPIF16 |
| rw | |||||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| RPIF15 | RPIF14 | RPIF13 | RPIF12 | RPIF11 | RPIF10 | RPIF9 | RPIF8 | RPIF7 | RPIF6 | RPIF5 | RPIF4 | RPIF3 | RPIF2 | RPIF1 | RPIF0 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:17 Reserved, must be kept at reset value.
Bits 16:0 RPIFx: configurable event inputs x rising edge pending bit (x = 16 to 0)
When EXTI_PRIVCFGR.PRIVx is disabled, RPIFx can be accessed with unprivileged and privileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, RPIFx can only be accessed with privileged access. Unprivileged write to this RPIFx is discarded, unprivileged read returns 0.
0: No rising edge trigger request occurred
1: Rising edge trigger request occurred
This bit is set when the rising edge event or an EXTI_SWIER software trigger arrives on the configurable event line. This bit is cleared by writing 1 to it.
17.6.5 EXTI falling edge pending register (EXTI_FPR1)
Address offset: 0x010
Reset value: 0x0000 0000
Contains only register bits for configurable events.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | FPIF16 |
| rw | |||||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| FPIF15 | FPIF14 | FPIF13 | FPIF12 | FPIF11 | FPIF10 | FPIF9 | FPIF8 | FPIF7 | FPIF6 | FPIF5 | FPIF4 | FPIF3 | FPIF2 | FPIF1 | FPIF0 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:17 Reserved, must be kept at reset value.
Bits 16:0 FPIFx: configurable event inputs x falling edge pending bit (x = 16 to 0)
When EXTI_PRIVCFGR.PRIVx is disabled, FPIFx can be accessed with unprivileged and privileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, FPIFx can only be accessed with privileged access. Unprivileged write to this FPIFx is discarded, unprivileged read returns 0.
0: No falling edge trigger request occurred
1: Falling edge trigger request occurred
This bit is set when the falling edge event arrives on the configurable event line. This bit is cleared by writing 1 to it.
17.6.6 EXTI privilege configuration register (EXTI_PRIVCFGR1)
Address offset: 0x018
Reset value: 0x0000 0000
This register provides privileged write access protection. An unprivileged read returns the register data.
Contains only register bits for privilege capable input events.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | PRIV29 | PRIV28 | PRIV27 | PRIV26 | PRIV25 | PRIV24 | Res. | PRIV22 | PRIV21 | Res. | PRIV19 | Res. | PRIV17 | PRIV16 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| PRIV15 | PRIV14 | PRIV13 | PRIV12 | PRIV11 | PRIV10 | PRIV9 | PRIV8 | PRIV7 | PRIV6 | PRIV5 | PRIV4 | PRIV3 | PRIV2 | PRIV1 | PRIV0 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:30 Reserved, must be kept at reset value.
Bits 29:24 PRIVx: Privilege enable on event input x (x = 29 to 24)
0: Event privilege disabled (unprivileged)
1: Event privilege enabled (privileged)
Bit 23 Reserved, must be kept at reset value.
Bits 22:21 PRIVx: Privilege enable on event input x (x = 22 to 21)
0: Event privilege disabled (unprivileged)
1: Event privilege enabled (privileged)
Bit 20 Reserved, must be kept at reset value.
Bit 19 PRIV19: Privilege enable on event input 19
0: Event privilege disabled (unprivileged)
1: Event privilege enabled (privileged)
Bit 18 Reserved, must be kept at reset value.
Bits 17:0 PRIVx: Privilege enable on event input x (x = 17 to 0)
0: Event privilege disabled (unprivileged)
1: Event privilege enabled (privileged)
17.6.7 EXTI rising trigger selection register 2 (EXTI_RTSR2)
Address offset: 0x020
Reset value: 0x0000 0000
Contains only register bits for configurable events.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | RT53 | Res. | Res. | RT50 | Res. | Res. |
| rw | rw | ||||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
Bits 31:22, 20:19, 17:0 Reserved, must be kept at reset value.
Bit 21 RT53: Rising trigger event configuration bit of configurable event input x(1)
When EXTI_PRIVCFGR.PRIVx is disabled, RTx can be accessed with unprivileged and privileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, RTx can only be accessed with privileged access. Unprivileged write to this bit x is discarded, unprivileged read returns 0.
0: Rising trigger disabled (for event and interrupt) for input line
1: Rising trigger enabled (for event and interrupt) for input line
Bit 18 RT50: Rising trigger event configuration bit of configurable event input x(1)
When EXTI_PRIVCFGR.PRIVx is disabled, RTx can be accessed with unprivileged and privileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, RTx can only be accessed with privileged access. Unprivileged write to this bit x is discarded, unprivileged read returns 0.
0: Rising trigger disabled (for event and interrupt) for input line
1: Rising trigger enabled (for event and interrupt) for input line
- 1. The configurable event inputs are edge triggered, no glitch must be generated on these inputs. If a rising edge on the configurable event input occurs during writing of the register, the associated pending bit is not set. Rising and falling edge triggers can be set for the same configurable event input. In this case, both edges generate a trigger.
17.6.8 EXTI falling trigger selection register 2 (EXTI_FTSR2)
Address offset: 0x024
Reset value: 0x0000 0000
Contains only register bits for configurable events.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | FT53 | Res. | Res. | FT50 | Res. | Res. |
| rw | rw | ||||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
Bits 31:22, 20:19, 17:0 Reserved, must be kept at reset value.
Bit 21 FT53: Falling trigger event configuration bit of configurable event input x (1)
When EXTI_PRIVCFGR.PRIVx is disabled, FTx can be accessed with unprivileged and privileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, FTx can only be accessed with privileged access. Unprivileged write to this FTx is discarded, unprivileged read returns 0.
0: Falling trigger disabled (for event and Interrupt) for input line
1: Falling trigger enabled (for event and Interrupt) for input line.
Bit 18 FT50: Falling trigger event configuration bit of configurable event input x (1)
When EXTI_PRIVCFGR.PRIVx is disabled, FTx can be accessed with unprivileged and privileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, FTx can only be accessed with privileged access. Unprivileged write to this FTx is discarded, unprivileged read returns 0.
0: Falling trigger disabled (for event and Interrupt) for input line
1: Falling trigger enabled (for event and Interrupt) for input line.
- 1. The configurable event inputs are edge triggered, no glitch must be generated on these inputs. If a falling edge on the configurable event input occurs during writing of the register, the associated pending bit is not set. Rising and falling edge triggers can be set for the same configurable event input. In this case, both edges generate a trigger.
17.6.9 EXTI software interrupt event register 2 (EXTI_SWIER2)
Address offset: 0x028
Reset value: 0x0000 0000
Contains only register bits for configurable events.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SWI53 | Res. | Res. | SWI50 | Res. | Res. |
| rw | rw | ||||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
Bits 31:22, 20:19, 17:0 Reserved, must be kept at reset value.
Bit 21 SWI53: Software interrupt on event x
When EXTI_PRIVCFGR.PRIVx is disabled, SWIx can be accessed with unprivileged and privileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, SWIx can only be accessed with privileged access. Unprivileged write to this SWIx is discarded, unprivileged read returns 0.
A software interrupt is generated independent from the setting in EXTI_RTSR and EXTI_FTSR. It always returns 0 when read.
0: Writing 0 has no effect.
1: Writing 1 triggers a rising edge event on event x. This bit is auto cleared by hardware.
Bit 18 SWI50: Software interrupt on event x
When EXTI_PRIVCFGR.PRIVx is disabled, SWIx can be accessed with unprivileged and privileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, SWIx can only be accessed with privileged access. Unprivileged write to this SWIx is discarded, unprivileged read returns 0.
A software interrupt is generated independent from the setting in EXTI_RTSR and EXTI_FTSR. It always returns 0 when read.
0: Writing 0 has no effect.
1: Writing 1 triggers a rising edge event on event x. This bit is auto cleared by hardware.
17.6.10 EXTI rising edge pending register 2 (EXTI_RPR2)
Address offset: 0x02C
Reset value: 0x0000 0000
Contains only register bits for configurable events.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | RPIF53 | Res. | Res. | RPIF50 | Res. | Res. |
| rw | rw | ||||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |

Bits 31:22, 20:19, 17:0 Reserved, must be kept at reset value.
Bit 21 RPIF53: configurable event inputs x rising edge pending bit
When EXTI_PRIVCFGR.PRIVx is disabled, RPIFx can be accessed with unprivileged and privileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, RPIFx can only be accessed with privileged access. Unprivileged write to this RPIFx is discarded, unprivileged read returns 0.
0: No rising edge trigger request occurred
1: Rising edge trigger request occurred
This bit is set when the rising edge event or an EXTI_SWIER software trigger arrives on the configurable event line. This bit is cleared by writing 1 to it.
Bit 18 RPIF50: configurable event inputs x rising edge pending bit
When EXTI_PRIVCFGR.PRIVx is disabled, RPIFx can be accessed with unprivileged and privileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, RPIFx can only be accessed with privileged access. Unprivileged write to this RPIFx is discarded, unprivileged read returns 0.
0: No rising edge trigger request occurred
1: Rising edge trigger request occurred
This bit is set when the rising edge event or an EXTI_SWIER software trigger arrives on the configurable event line. This bit is cleared by writing 1 to it.
17.6.11 EXTI falling edge pending register 2 (EXTI_FPR2)
Address offset: 0x030
Reset value: 0x0000 0000
Contains only register bits for configurable events.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | FPIF53 | Res. | Res. | FPIF50 | Res. | Res. |
| rw | rw | ||||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
Bits 31:22, 20:19, 17:0 Reserved, must be kept at reset value.
- Bit 21 FPIF53: configurable event inputs x falling edge pending bit
When EXTI_PRIVCFGR.PRIVx is disabled, FPIFx can be accessed with unprivileged and privileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, FPIFx can only be accessed with privileged access. Unprivileged write to this FPIFx is discarded, unprivileged read returns 0.
0: No falling edge trigger request occurred
1: Falling edge trigger request occurred
This bit is set when the falling edge event arrives on the configurable event line. This bit is cleared by writing 1 to it. - Bit 18 FPIF50: configurable event inputs x falling edge pending bit
When EXTI_PRIVCFGR.PRIVx is disabled, FPIFx can be accessed with unprivileged and privileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, FPIFx can only be accessed with privileged access. Unprivileged write to this FPIFx is discarded, unprivileged read returns 0.
0: No falling edge trigger request occurred
1: Falling edge trigger request occurred
This bit is set when the falling edge event arrives on the configurable event line. This bit is cleared by writing 1 to it.
17.6.12 EXTI privilege configuration register 2 (EXTI_PRIVCFGR2)
Address offset: 0x038
Reset value: 0x0000 0000
This register provides privileged write access protection. An unprivileged read returns the register data.
Contains only register bits for privilege capable input events.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PRIV53 | Res. | Res. | PRIV50 | PRIV49 | Res. |
| rw | rw | rw | |||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| PRIV47 | Res. | Res. | Res. | Res. | PRIV42 | PRIV41 | PRIV40 | PRIV39 | PRIV38 | PRIV37 | Res. | Res. | Res. | Res. | Res. |
| rw | rw | rw | rw | rw | rw | rw |
Bits 31:22, 20:19, 16, 14:11, 4:0 Reserved, must be kept at reset value.
- Bit 21 PRIV53: Privilege enable on event input x
0: Event privilege disabled (unprivileged)
1: Event privilege enabled (privileged)
Bits 18:17 PRIVx: Privilege enable on event input x (x = 50 to 49)
0: Event privilege disabled (unprivileged)
1: Event privilege enabled (privileged)
Bit 15 PRIV47: Privilege enable on event input x
0: Event privilege disabled (unprivileged)
1: Event privilege enabled (privileged)
Bits 10:5 PRIVx: Privilege enable on event input x (x = 42 to 37)
0: Event privilege disabled (unprivileged)
1: Event privilege enabled (privileged)
17.6.13 EXTI external interrupt selection register (EXTI_EXTICR1)
Address offset: 0x060
(EXTI mux 0, 1, 2, 3)
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| EXTI3[7:0] | EXTI2[7:0] | ||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| EXTI1[7:0] | EXTI0[7:0] | ||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:24 EXTI3[7:0]: EXTI3 GPIO port selectio
These bits are written by software to select the source input for EXTI3 external interrupt. When EXTI_PRIVCFGR.PRIV3 is disabled, EXTI3 can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIV3 is enabled, EXTI3 can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0x00: PA[3] pin
0x01: PB[3] pin
0x02: PC[3] pin
Others: reserved
Bits 23:16 EXTI2[7:0]: EXTI2 GPIO port selection
These bits are written by software to select the source input for EXTI2 external interrupt. When EXTI_PRIVCFGR.PRIV2 is disabled, EXTI2 can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIV2 is enabled, EXTI2 can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0x00: PA[2] pin
0x01: PB[2] pin
0x02: PC[2] pin
0x03: PD[2] pin
Others: reserved
Bits 15:8 EXTI1[7:0]: EXTI1 GPIO port selection
These bits are written by software to select the source input for EXTI1 external interrupt.
When EXTI_PRIVCFGR.PRIV1 is disabled, EXTI1 can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIV1 is enabled, EXTI1 can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0x00: PA[1] pin
0x01: PB[1] pin
0x02: PC[1] pin
0x07: PH[1] pin
Others: reserved
Bits 7:0 EXTI0[7:0]: EXTI0 GPIO port selection
These bits are written by software to select the source input for EXTI0 external interrupt.
When EXTI_PRIVCFGR.PRIV0 is disabled, EXTI0 can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIV0 is enabled, EXTI0 can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0x00: PA[0] pin
0x01: PB[0] pin
0x02: PC[0] pin
0x07: PH[0] pin
Others: reserved
17.6.14 EXTI external interrupt selection register (EXTI_EXTICR2)
Address offset: 0x064 EXTI mux 4, 5, 6, 7
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| EXTI7[7:0] | EXTI6[7:0] | ||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| EXTI5[7:0] | EXTI4[7:0] | ||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:24 EXTI7[7:0]: EXTI7 GPIO port selection
These bits are written by software to select the source input for EXTI7 external interrupt.
When EXTI_PRIVCFGR.PRIV7 is disabled, EXTI7 can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIV7 is enabled, EXTI7 can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0x00: PA[7] pin
0x01: PB[7] pin
0x02: PC[7] pin
Others: reserved
Bits 23:16 EXTI6[7:0]: EXTI6 GPIO port selection
These bits are written by software to select the source input for EXTI6 external interrupt. When EXTI_PRIVCFGR.PRIV6 is disabled, EXTI6 can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIV6 is enabled, EXTI6 can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0x00: PA[6] pin
0x01: PB[6] pin
0x02: PC[6] pin
Others: reserved
Bits 15:8 EXTI5[7:0]: EXTI5 GPIO port selection
These bits are written by software to select the source input for EXTI5 external interrupt. When EXTI_PRIVCFGR.PRIV5 is disabled, EXTI5 can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIV5 is enabled, EXTI5 can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0x00: PA[5] pin
0x01: PB[5] pin
0x02: PC[5] pin
Others: reserved
Bits 7:0 EXTI4[7:0]: EXTI4 GPIO port selection
These bits are written by software to select the source input for EXTI4 external interrupt. When EXTI_PRIVCFGR.PRIV4 is disabled, EXTI4 can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIV4 is enabled, EXTI4 can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0x00: PA[4] pin
0x01: PB[4] pin
0x02: PC[4] pin
Others: reserved
17.6.15 EXTI external interrupt selection register (EXTI_EXTICR3)
Address offset: 0x068 EXTI mux 8, 9, 10, 11
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| EXTI11[7:0] | EXTI10[7:0] | ||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| EXTI9[7:0] | EXTI8[7:0] | ||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:24 EXTI11[7:0]: EXTI11 GPIO port selection
These bits are written by software to select the source input for EXTI11 external interrupt.
When EXTI_PRIVCFGR.PRIV11 is disabled, EXTI11 can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIV11 is enabled, EXTI11 can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0x00: PA[11] pin
0x02: PC[11] pin
Others: reserved
Bits 23:16 EXTI10[7:0]: EXTI10 GPIO port selection
These bits are written by software to select the source input for EXTI10 external interrupt.
When EXTI_PRIVCFGR.PRIV10 is disabled, EXTI10 can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIV10 is enabled, EXTI10 can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0x00: PA[10] pin
0x01: PB[10] pin
0x02: PC[10] pin
Others: reserved
Bits 15:8 EXTI9[7:0]: EXTI9 GPIO port selection
These bits are written by software to select the source input for EXTI9 external interrupt.
When EXTI_PRIVCFGR.PRIV9 is disabled, EXTI9 can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIV9 is enabled, EXTI9 can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0x00: PA[9] pin
0x02: PC[9] pin
Others: reserved
Bits 7:0 EXTI8[7:0]: EXTI8 GPIO port selection
These bits are written by software to select the source input for EXTI8 external interrupt.
When EXTI_PRIVCFGR.PRIV8 is disabled, EXTI8 can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIV8 is enabled, EXTI8 can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0x00: PA[8] pin
0x01: PB[8] pin
0x02: PC[8] pin
Others: reserved
17.6.16 EXTI external interrupt selection register (EXTI_EXTICR4)
Address offset: 0x06C EXTI mux 12, 13, 14, 15
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| EXTI15[7:0] | EXTI14[7:0] | ||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| EXTI13[7:0] | EXTI12[7:0] | ||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:24 EXTI15[7:0]: EXTI15 GPIO port selection
These bits are written by software to select the source input for EXTI15 external interrupt. When EXTI_PRIVCFGR.PRIV15 is disabled, EXTI15 can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIV15 is enabled, EXTI15 can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0x00: PA[15] pin
0x01: PB[15] pin
0x02: PC[15] pin
Others: reserved
Bits 23:16 EXTI14[7:0]: EXTI14 GPIO port selection
These bits are written by software to select the source input for EXTI14 external interrupt. When EXTI_PRIVCFGR.PRIV14 is disabled, EXTI14 can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIV14 is enabled, EXTI14 can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0x00: PA[14] pin
0x01: PB[14] pin
0x02: PC[14] pin
Others: reserved
Bits 15:8 EXTI13[7:0]: EXTI13 GPIO port selection
These bits are written by software to select the source input for EXTI13 external interrupt. When EXTI_PRIVCFGR.PRIV13 is disabled, EXTI13 can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIV13 is enabled, EXTI13 can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0x00: PA[13] pin
0x01: PB[13] pin
0x02: PC[13] pin
Others: reserved
Bits 7:0 EXTI12[7:0]: EXTI12 GPIO port selection
These bits are written by software to select the source input for EXTI12 external interrupt. When EXTI_PRIVCFGR.PRIV12 is disabled, EXTI12 can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIV12 is enabled, EXTI12 can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0x00: PA[12] pin
0x01: PB[12] pin
0x02: PC[12] pin
Others: reserved
17.6.17 EXTI CPU wakeup with interrupt mask register (EXTI_IMR1)
Address offset: 0x080
Reset value: 0xFFFE 0000
Contains register bits for configurable events.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | IM29 | IM28 | IM27 | IM26 | IM25 | IM24 | Res. | IM22 | IM21 | Res. | IM19 | Res. | IM17 | IM16 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| IM15 | IM14 | IM13 | IM12 | IM11 | IM10 | IM9 | IM8 | IM7 | IM6 | IM5 | IM4 | IM3 | IM2 | IM1 | IM0 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:30, 23, 20, 18 Reserved, must be kept at reset value.
Bits 29:24 IMx: CPU wakeup with interrupt mask on event input x (1) (x = 29 to 24)
When EXTI_PRIVCFGR.PRIVx is disabled, IMx can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, IMx can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0: Wakeup with interrupt request from input event x is masked.
1: Wakeup with interrupt request from input event x is unmasked.
Bits 22:21 IMx: CPU wakeup with interrupt mask on event input x (1) (x = 22 to 21)
When EXTI_PRIVCFGR.PRIVx is disabled, IMx can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, IMx can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0: Wakeup with interrupt request from input event x is masked.
1: Wakeup with interrupt request from input event x is unmasked.
Bit 19 IM19: CPU wakeup with interrupt mask on event input x (1)
When EXTI_PRIVCFGR.PRIVx is disabled, IMx can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, IMx can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0: Wakeup with interrupt request from input event x is masked.
1: Wakeup with interrupt request from input event x is unmasked.
Bits 17:0 IMx: CPU wakeup with interrupt mask on event input x (1) (x = 17 to 0)
When EXTI_PRIVCFGR.PRIVx is disabled, IMx can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, IMx can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0: Wakeup with interrupt request from input event x is masked.
1: Wakeup with interrupt request from input event x is unmasked.
1. The reset value for configurable event inputs is set to 0 in order to disable the interrupt by default.
17.6.18 EXTI CPU wakeup with event mask register (EXTI_EMR1)
Address offset: 0x084
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | EM29 | EM28 | EM27 | EM26 | EM25 | EM24 | Res. | EM22 | EM21 | Res. | EM19 | Res. | EM17 | EM16 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| EM15 | EM14 | EM13 | EM12 | EM11 | EM10 | EM9 | EM8 | EM7 | EM6 | EM5 | EM4 | EM3 | EM2 | EM1 | EM0 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:30, 23, 20, 18 Reserved, must be kept at reset value.
Bits 29:24 EMx: CPU wakeup with event generation mask on event input x (x = 29 to 24)
When EXTI_PRIVCFGR.PRIVx is disabled, EMx can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, EMx can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0: Wakeup with event generation from Line x is masked.
1: Wakeup with event generation from Line x is unmasked.
Bits 22:21 EMx: CPU wakeup with event generation mask on event input x (x = 22 to 21)
When EXTI_PRIVCFGR.PRIVx is disabled, EMx can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, EMx can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0: Wakeup with event generation from Line x is masked.
1: Wakeup with event generation from Line x is unmasked.
Bit 19 EM19: CPU wakeup with event generation mask on event input x
When EXTI_PRIVCFGR.PRIVx is disabled, EMx can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, EMx can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0: Wakeup with event generation from Line x is masked.
1: Wakeup with event generation from Line x is unmasked.
Bits 17:0 EMx: CPU wakeup with event generation mask on event input x (x = 17 to 0)
When EXTI_PRIVCFGR.PRIVx is disabled, EMx can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, EMx can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0: Wakeup with event generation from Line x is masked.
1: Wakeup with event generation from Line x is unmasked.
17.6.19 EXTI CPU wakeup with interrupt mask register 2 (EXTI_IMR2)
Address offset: 0x090
Reset value: 0x001B FFFF
Contains register bits for configurable events.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | IM53 | Res. | Res. | IM50 | IM49 | Res. |
| rw | rw | rw | |||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| IM47 | Res. | Res. | Res. | Res. | IM42 | IM41 | IM40 | IM39 | IM38 | IM37 | Res. | Res. | Res. | Res. | Res. |
| rw | rw | rw | rw | rw | rw | rw |
Bits 31:22, 20:19, 16, 14:11, 4:0 Reserved, must be kept at reset value.
Bit 21 IM53: CPU wakeup with interrupt mask on event input x (1)
When EXTI_PRIVCFGR.PRIVx is disabled, IMx can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, IMx can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0: Wakeup with interrupt request from input event x is masked.
1: Wakeup with interrupt request from input event x is unmasked.
Bits 18:17 IMx: CPU wakeup with interrupt mask on event input x (1) (x = 50 to 49)
When EXTI_PRIVCFGR.PRIVx is disabled, IMx can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, IMx can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0: Wakeup with interrupt request from input event x is masked.
1: Wakeup with interrupt request from input event x is unmasked.
Bit 15 IM47: CPU wakeup with interrupt mask on event input x (1)
When EXTI_PRIVCFGR.PRIVx is disabled, IMx can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, IMx can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0: Wakeup with interrupt request from input event x is masked.
1: Wakeup with interrupt request from input event x is unmasked.
Bits 10:5 IMx: CPU wakeup with interrupt mask on event input x (1) (x = 42 to 37)
When EXTI_PRIVCFGR.PRIVx is disabled, IMx can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, IMx can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0: Wakeup with interrupt request from input event x is masked.
1: Wakeup with interrupt request from input event x is unmasked.
1. The reset value for configurable event inputs is set to 0 in order to disable the interrupt by default.
17.6.20 EXTI CPU wakeup with event mask register 2 (EXTI_EMR2)
Address offset: 0x094
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | EM53 | Res. | Res. | EM50 | EM49 | Res. |
| rw | rw | rw | |||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| EM47 | Res. | Res. | Res. | Res. | EM42 | EM41 | EM40 | EM39 | EM38 | EM37 | Res. | Res. | Res. | Res. | Res. |
| rw | rw | rw | rw | rw | rw | rw |
Bits 31:22, 20:19, 16, 14:11, 4:0 Reserved, must be kept at reset value.
Bit 21 EM53: CPU wakeup with event generation mask on event input x
When EXTI_PRIVCFGR.PRIVx is disabled, EMx can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, EMx can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0: Wakeup with event generation from Line x is masked.
1: Wakeup with event generation from Line x is unmasked.
Bits 18:17 EMx: CPU wakeup with event generation mask on event input x (x = 50 to 49)
When EXTI_PRIVCFGR.PRIVx is disabled, EMx can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, EMx can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0: Wakeup with event generation from Line x is masked.
1: Wakeup with event generation from Line x is unmasked.
Bit 15 EM47: CPU wakeup with event generation mask on event input x
When EXTI_PRIVCFGR.PRIVx is disabled, EMx can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, EMx can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0: Wakeup with event generation from Line x is masked.
1: Wakeup with event generation from Line x is unmasked.
Bits 10:5 EMx: CPU wakeup with event generation mask on event input x (x = 42 to 37)
When EXTI_PRIVCFGR.PRIVx is disabled, EMx can be accessed with privileged and unprivileged access.
When EXTI_PRIVCFGR.PRIVx is enabled, EMx can only be accessed with privileged access. Unprivileged write to this bit is discarded.
0: Wakeup with event generation from Line x is masked.
1: Wakeup with event generation from Line x is unmasked.
17.6.21 EXTI register map
Table 104. EXTI register map and reset values
| Extended interrupts and event controller (EXTI) | column_2 | RM0492 |
|---|---|---|
| Offset Register 31 3 0 2 9 2 8 2 7 2 6 2 5 2 4 2 3 2 2 21 2 0 | 19 | 18 17 16 15 14 13 12 1 1 10 9 8 7 6 5 4 3 2 1 0 |
| R T 9 R T 8 R T 7 R T 6 R T 5 R T 4 3 R T R T 0 | ||
| 2 R T | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R | e s. | |
| R e s. | ||
| R e s. | ||
| T1 1 R | ||
| 0x000 EXTI_RTSR1 | R T1 | |
| F T 5 | ||
| F T 9 F T 8 F T 7 F T 6 F T 4 3 F T 2 F T F T 0 | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R | e s. | |
| R e s. | ||
| R e s. | ||
| T1 1 F | ||
| 0x004 EXTI_FTSR1 | F T1 | |
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R | e s. | |
| R e s. | ||
| R e s. | ||
| R PIF 5 | ||
| R PIF 9 | ||
| R PIF 8 | ||
| R PIF 7 | ||
| R PIF 6 | ||
| R PIF 4 | ||
| 3 R PIF | ||
| 2 R PIF | ||
| R PIF 0 | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R | e s. | |
| R e s. | ||
| R e s. | ||
| F PIF 9 | ||
| F PIF 8 | ||
| F PIF 7 | ||
| F PIF 6 | ||
| F PIF 5 | ||
| F PIF 4 | ||
| 3 F PIF | ||
| F PIF 0 | ||
| 2 F PIF | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R | e s. | |
| R e s. | ||
| R e s. | ||
| PIF1 1 F | ||
| P RIV 4 | ||
| P RIV2 9 | ||
| P RIV2 8 | ||
| RIV2 P 7 | ||
| RIV2 6 P | ||
| P RIV2 5 | ||
| P RIV2 4 | ||
| P RIV2 2 | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| RIV1 1 P | ||
| Reset value 0 0 0 0 0 0 0 0 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | |
| R T 3 5 | ||
| 0 R T 5 | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R | e s. | |
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| Reset value 0 | 0 | |
| F T 3 5 | ||
| 0 F T 5 | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R | e s. | |
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| Reset value 0 | 0 | |
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R | e s. | |
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| Reset value 0 | 0 | |
| R PIF 3 5 | ||
| 0 R PIF 5 | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R | e s. | |
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| Reset value 0 | 0 | |
| F PIF 3 5 | ||
| 0 F PIF 5 | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R | e s. | |
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| Reset value 0 | 0 | |
| P RIV5 3 | ||
| 0 P RIV5 | ||
| P RIV 4 9 | ||
| P RIV 4 7 | ||
| P RIV 4 0 | ||
| P RIV3 9 | ||
| P RIV3 8 | ||
| P RIV3 7 | ||
| 2 P RIV 4 | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R | e s. | |
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| R e s. | ||
| P RIV 41 | ||
| Reset value 0 | 0 0 0 0 0 0 0 0 0 | |
| to Reserved | Reserved | |
| 0x060 EXTI_EXTICR1 EXTI3[7:0] EXTI2[7:0] | EXTI1[7:0] EXTI0[7:0] | |
| 0x064 EXTI_EXTICR2 EXTI7[7:0] EXTI6[7:0] | EXTI5[7:0] EXTI4[7:0] |
Table 104. EXTI register map and reset values (continued)
| Offset | Register | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x068 | EXTI_EXTICR3 | EXTI11[7:0] | EXTI10[7:0] | EXTI9[7:0] | EXTI8[7:0] | ||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x06C | EXTI_EXTICR4 | EXTI15[7:0] | EXTI14[7:0] | EXTI13[7:0] | EXTI12[7:0] | ||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x074 to 0x07C | Reserved | Reserved | |||||||||||||||||||||||||||||||
| 0x080 | EXTI_IMR1 | Res. | Res. | IM29 | IM28 | IM27 | IM26 | IM25 | IM24 | Res. | IM22 | IM21 | Res. | IM19 | Res. | IM17 | IM16 | IM15 | IM14 | IM13 | IM12 | IM11 | IM10 | IM9 | IM8 | IM7 | IM6 | IM5 | IM4 | IM3 | IM2 | IM1 | IM0 |
| Reset value | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||
| 0x084 | EXTI_EMR1 | Res. | Res. | EM29 | EM28 | EM27 | EM26 | EM25 | EM24 | Res. | EM22 | EM21 | Res. | EM19 | Res. | EM17 | EM16 | EM15 | EM14 | EM13 | EM12 | EM11 | EM10 | EM9 | EM8 | EM7 | EM6 | EM5 | EM4 | EM3 | EM2 | EM1 | EM0 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||
| 0x090 | EXTI_IMR2 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | IM53 | Res. | Res. | IM50 | IM49 | Res. | IM47 | Res. | Res. | Res. | Res. | IM42 | IM41 | IM40 | IM39 | IM38 | IM37 | Res. | Res. | Res. | Res. | Res. |
| Reset value | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||
| 0x094 | EXTI_EMR2 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | EM53 | Res. | Res. | EM50 | EM49 | Res. | EM47 | Res. | Res. | Res. | Res. | EM42 | EM41 | EM40 | EM39 | EM38 | EM37 | Res. | Res. | Res. | Res. | Res. |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||