14. Extended interrupt and event controller (EXTI)

The Extended interrupt and event controller (EXTI) manages the CPU and system wake-up through configurable and direct event inputs (lines). It provides wake-up 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 wake-up requests allow the system to be woken up from Stop modes.

The interrupt request and event request generation can also be used in Run mode.

The EXTI also includes the EXTI I/O port multiplexer.

14.1 EXTI main features

The EXTI main features are the following:

14.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 multiplexer as shown in Figure 25.

The register block contains all the EXTI registers.

The event input trigger block provides an event input edge trigger logic.

The masking block provides the event input distribution to the different wake-up, interrupt and event outputs, and the masking of these.

The EXTI multiplexer provides the I/O port selection on to the EXTI event signal.

Figure 25. EXTI block diagram Figure 25. EXTI block diagram shows connections between AHB interface, GPIO, Peripherals, Registers, EXTImux, Event Trigger, Masking, EVG (Pulse generator), PWR, and CPU blocks.

* it_exti_per(y) are only available for configurable events (y)

MS44733V2

Figure 25. EXTI block diagram shows connections between AHB interface, GPIO, Peripherals, Registers, EXTImux, Event Trigger, Masking, EVG (Pulse generator), PWR, and CPU blocks.
Table 57. EXTI signal overview
Signal nameI/ODescription
AHB interfaceI/OEXTI register bus interface. When one event is configured to allow security, the AHB interface support secure accesses
hclkIAHB bus clock and EXTI system clock
Configurable event(y)IAsynchronous wake-up events from peripherals that do not have an associated interrupt and flag in the peripheral
Direct event(x)ISynchronous and asynchronous wake-up events from peripherals having an associated interrupt and flag in the peripheral
IOPort(n)IGPIO ports[15:0]
exti[15:0]OEXTI output port to trigger other IPs
it_exti_per (y)OInterrupts to the CPU associated with configurable event (y)
c_evt_extiOHigh-level sensitive event output for CPU synchronous to hclk
c_evt_rstIAsynchronous reset input to clear c_evt_exti
sys_wakeupOAsynchronous system wake-up request to PWR for ck_sys and hclk
c_wakeupOWake-up request to PWR for CPU, synchronous to hclk
Table 58. EVG pin overview
Pin nameI/ODescription
c_fclkICPU free-running clock
c_evt_inIHigh-level sensitive event input from EXTI, asynchronous to CPU clock
c_eventOEvent pulse, synchronous to CPU clock
c_evt_rstOEvent reset signal, synchronous to CPU clock

14.2.1 EXTI connections between peripherals and CPU

The peripherals able to generate wake-up or interrupt events when the system is in Stop mode are connected to the EXTI.

The EXTI configurable event interrupts are connected to the NVIC(a) of the CPU.

The dedicated EXTI/EVG CPU event is connected to the CPU rxev input.

The EXTI CPU wake-up signals are connected to the PWR block, and are used to wake up the system and CPU sub-system bus clocks.

14.3 EXTI functional description

Depending on the EXTI line type and wake-up target(s), different logic implementations are used. The applicable features and control or status registers are:

Table 59. EXTI event input configurations and register control

Event input typeLogic implementationEXTI_RTSR1EXTI_FTSR1EXTI_SWIER1EXTI_R/FPR1EXTI_IMR1EXTI_EMR1
ConfigurableConfigurable event input wake-up logicxxxxxx
DirectDirect event input wake-up logic----xx

14.3.1 EXTI configurable event input wake-up

Figure 26 is a detailed representation of the logic associated with configurable event inputs which wake up the CPU sub-system bus clocks and generated an EXTI pending flag and interrupt to the CPU and or a CPU wake-up event.

Figure 26. Configurable event trigger logic CPU wake-up

Figure 26. Configurable event trigger logic CPU wake-up schematic diagram showing Peripheral interface, registers (Falling trigger selection register, Rising trigger selection register, Software interrupt event register, CPU Event mask register, CPU Interrupt mask register, Pending request register), Asynchronous Edge detection circuit, Delay, Rising Edge detect Pulse generator, and EVG logic connecting to outputs such as it_exti_per(y), c_evt_rst, c_evt_exti, c_event, c_wakeup, sys_wakeup.
Figure 26. Configurable event trigger logic CPU wake-up schematic diagram showing Peripheral interface, registers (Falling trigger selection register, Rising trigger selection register, Software interrupt event register, CPU Event mask register, CPU Interrupt mask register, Pending request register), Asynchronous Edge detection circuit, Delay, Rising Edge detect Pulse generator, and EVG logic connecting to outputs such as it_exti_per(y), c_evt_rst, c_evt_exti, c_event, c_wakeup, sys_wakeup.

The software interrupt event register allows triggering configurable events by software, writing the corresponding register bit, irrespective of the edge selection setting.

The rising edge and falling edge selection registers allow to enable and select the configurable event active trigger edge or both edges.

The CPU has its dedicated interrupt mask register and a dedicated event mask registers. The enabled event allows generating an event on the CPU. All events for a CPU are OR-ed together into a single CPU event signal. The event pending registers (EXTI_RPR1 and EXTI_FPR1) is not set for an unmasked CPU event.

The configurable events have unique interrupt pending request registers, shared by the CPU. The pending register is only set for an unmasked interrupt. Each configurable event provides a common interrupt to the CPU. The configurable event interrupts need to be acknowledged by software in the EXTI_RPR1 and/or EXTI_FPR1 registers.

When a CPU 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 the wake-up of the EXTI hclk clock before the asynchronous edge detection circuit is reset.

Note: A detected configurable event interrupt pending request can be cleared by the CPU. The system cannot enter low-power modes as long as an interrupt pending request is active.

14.3.2 EXTI direct event input wake-up

Figure 27 is a detailed representation of the logic associated with direct event inputs waking up the system.

The direct events do not have an associated EXTI interrupt. The EXTI only wakes up the system and CPU sub-system clocks and may generate a CPU wake-up event. The peripheral synchronous interrupt, associated with the direct wake-up event wakes up the CPU.

The EXTI direct event is able to generate a CPU event. This CPU event wakes up the CPU. The CPU event may occur before the interrupt flag of the associated peripheral is set.

Figure 27. Direct event trigger logic CPU wake-up

Block diagram of EXTI direct event trigger logic for CPU wake-up, showing AHB interface, Peripheral interface, CPU mask registers, and various event detection circuits.
Block diagram of EXTI direct event trigger logic for CPU wake-up, showing AHB interface, Peripheral interface, CPU mask registers, and various event detection circuits.

14.3.3 EXTI multiplexer

The EXTI multiplexer allows selecting GPIOs as interrupts and wake-up. The GPIOs are connected via 16 EXTI multiplexer lines to the first 16 EXTI events as configurable event. The selection of GPIO port as EXTI multiplexer output is controlled through the EXTI external interrupt selection register (EXTI_EXTICRx) register.

Figure 28. EXTI GPIO multiplexer

Diagram showing the EXTI GPIO multiplexer structure for EXTI0, EXTI1, and EXTI15, mapping GPIO pins (PA, PB, PC, Px) to EXTI lines.
Diagram showing the EXTI GPIO multiplexer structure for EXTI0, EXTI1, and EXTI15, mapping GPIO pins (PA, PB, PC, Px) to EXTI lines.

The EXTIs multiplexer outputs are available as output signals from the EXTI, to trigger other functional blocks. The EXTI multiplexer outputs are available independently of mask setting through the EXTI_IMR and EXTI_EMR registers.

The EXTI lines (event inputs) are connected as shown in the following table.

Table 60. EXTI line connections

EXTI lineLine sourceLine type
0-15GPIOConfigurable
16Reserved-
17Reserved-
18Reserved-
19RTCDirect
20Reserved-
21Reserved-
22Reserved-
23I2C1 wake-upDirect
24Reserved-
25USART1 wake-upDirect
26Reserved-
27Reserved-
28Reserved-
29Reserved-
30Reserved-
31LSE_CSSDirect
32Reserved-
33Reserved-
34VDDIO2 monitoringConfigurable
35Reserved-
36USB wake-upDirect

14.4 EXTI functional behavior

The direct event inputs are enabled in the respective peripheral generating the wake-up event. The configurable events are enabled by enabling at least one of the trigger edges.

Once an event input is enabled, the generation of a CPU wake-up is conditioned by the CPU interrupt mask and CPU event mask.

Table 61. Masking functionality

CPU interrupt enable
EXTI_IMR.IMn
CPU event enable
EXTI_EMR.EMn
Configurable
event inputs
EXTI_RPR.RPIFn
EXTI_FPR.FPIFn
exti(n)
interrupt(1)
CPU
event
CPU wake-up
00NoMaskedMaskedMasked
1NoMaskedYesYes

Table 61. Masking functionality (continued)

CPU interrupt enable
EXTI_IMR.IMn
CPU event enable
EXTI_EMR.EMn
Configurable event inputs
EXTI_RPR.RPIFn
EXTI_FPR.FPIFn
exti(n) interrupt(1)CPU eventCPU wake-up
10Status latchedYesMaskedYes(2)
1Status latchedYesYesYes
  1. 1. The single exti(n) interrupt goes to the CPU. If no interrupt is required for CPU, the exti(n) interrupt must be masked in the CPU NVIC.
  2. 2. Only if CPU interrupt is enabled in EXTI_IMR.IMn.

For configurable event inputs, upon an edge on the event input, an event request is generated if that edge (rising or/and falling) is enabled. When the associated CPU interrupt is unmasked, the corresponding RPIFn and/or FPIFn bit is/are set in the EXTI_RPR or/and EXTI_FPR register, waking up the CPU subsystem and activating CPU interrupt signal. The RPIFn and/or FPIFn pending bit is cleared by writing 1 to it, which clears the CPU interrupt request.

For direct event inputs, when enabled in the associated peripheral, an event request is generated on the rising edge only. There is no corresponding CPU pending bit in the EXTI. When the associated CPU interrupt is unmasked, the corresponding CPU subsystem is woken up. The CPU is woken up (interrupted) by the peripheral synchronous interrupt.

The CPU event must be unmasked to generate an event. Upon an enabled edge occurring on an event input, a CPU event pulse is generated. There is no event pending bit.

For the configurable event inputs, the software can generate an event request by setting the corresponding bit of the software interrupt/event register EXTI_SWIER1, which has the effect of a rising edge on the event input. The pending rising edge event flag is set in the EXTI_RPR1 register, irrespective of the EXTI_RTSR1 register setting.

14.5 EXTI registers

The EXTI register map is divided in the following sections:

Table 62. EXTI register map sections

AddressDescription
0x000 - 0x01CGeneral configurable event [31:0] configuration
0x060 - 0x06CEXTI I/O port multiplexer
0x080 - 0x0BCCPU input event configuration

All the registers can be accessed with word (32-bit), half-word (16-bit) and byte (8-bit) access.

14.5.1 EXTI rising trigger selection register 1 (EXTI_RTSR1)

Address offset: 0x000

Reset value: 0x0000 0000

Contains only register bits for configurable events.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
RT15RT14RT13RT12RT11RT10RT9RT8RT7RT6RT5RT4RT3RT2RT1RT0
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 RTx: Rising trigger event configuration bit of configurable line x (x = 15 to 0)

Each bit enables/disables the rising edge trigger for the event and interrupt on the corresponding line.

0: Disable

1: Enable

Note: The configurable lines are edge triggered; no glitch must be generated on these inputs. If a rising edge on the configurable line occurs during writing of the register, the associated pending bit is not set. Rising edge trigger can be set for a line with falling edge trigger enabled. In this case, both edges generate a trigger.

14.5.2 EXTI falling trigger selection register 1 (EXTI_FTSR1)

Address offset: 0x004

Reset value: 0x0000 0000

Contains only register bits for configurable events.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
FT15FT14FT13FT12FT11FT10FT9FT8FT7FT6FT5FT4FT3FT2FT1FT0
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 FTx: Falling trigger event configuration bit of configurable line x (x = 15 to 0).

Each bit enables/disables the falling edge trigger for the event and interrupt on the corresponding line.

0: Disable

1: Enable

Note: The configurable lines are edge triggered; no glitch must be generated on these inputs. If a falling edge on the configurable line occurs during writing of the register, the associated pending bit is not set. Falling edge trigger can be set for a line with rising edge trigger enabled. In this case, both edges generate a trigger.

14.5.3 EXTI software interrupt event register 1 (EXTI_SWIER1)

Address offset: 0x008

ST logo
ST logo

Reset value: 0x0000 0000

Contains only register bits for configurable events.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
SWI15SWI14SWI13SWI12SWI11SWI10SWI9SWI8SWI7SWI6SWI5SWI4SWI3SWI2SWI1SWI0
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 SWIx: Software rising edge event trigger on line x (x = 15 to 0)

Setting of any bit by software triggers a rising edge event on the corresponding line x, resulting in an interrupt, independently of EXTI_RTSR1 and EXTI_FTSR1 settings. The bits are automatically cleared by HW. Reading of any bit always returns 0.

0: No effect

1: Rising edge event generated on the corresponding line, followed by an interrupt

14.5.4 EXTI rising edge pending register 1 (EXTI_RPR1)

Address offset: 0x00C

Reset value: 0x0000 0000

Contains only register bits for configurable events.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
RPIF15RPIF14RPIF13RPIF12RPIF11RPIF10RPIF9RPIF8RPIF7RPIF6RPIF5RPIF4RPIF3RPIF2RPIF1RPIF0
rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 RPIFx: Rising edge event pending for configurable line x (x = 15 to 0)

Each bit is set upon a rising edge event generated by hardware or by software (through the EXTI_SWIER1 register) on the corresponding line. Each bit is cleared by writing 1 into it.

0: No rising edge trigger request occurred

1: Rising edge trigger request occurred

14.5.5 EXTI falling edge pending register 1 (EXTI_FPR1)

Address offset: 0x010

Reset value: 0x0000 0000

Contains only register bits for configurable events.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
FPIF15FPIF14FPIF13FPIF12FPIF11FPIF10FPIF9FPIF8FPIF7FPIF6FPIF5FPIF4FPIF3FPIF2FPIF1FPIF0
rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 FPIFx: Falling edge event pending for configurable line x (x = 15 to 0)

Each bit is set upon a falling edge event generated by hardware or by software (through the EXTI_SWIER1 register) on the corresponding line. Each bit is cleared by writing 1 into it.

0: No falling edge trigger request occurred

1: Falling edge trigger request occurred

14.5.6 EXTI rising trigger selection register 2 (EXTI_RTSR2)

This register is only available on STM32C071xx. On the other devices, it is reserved.

Address offset: 0x020

Reset value: 0x0000 0000

Contains only register bits for configurable events.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RT34Res.Res.
rw

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 RT34: Rising trigger event configuration bit of configurable line 34

Each bit enables/disables the rising edge trigger for the event and interrupt on the line 34.

0: Disable

1: Enable

Note: This configurable line is edge triggered; no glitch must be generated on this inputs. If a rising edge on the configurable line occurs during writing of the register, the associated pending bit is not set. Rising edge trigger can be set for a line with falling edge trigger enabled. In this case, both edges generate a trigger.

Bits 1:0 Reserved, must be kept at reset value.

14.5.7 EXTI falling trigger selection register 2 (EXTI_FTSR2)

This register is only available on STM32C071xx. On the other devices, it is reserved.

Address offset: 0x024

Reset value: 0x0000 0000

Contains only register bits for configurable events.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FT34Res.Res.
rw

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 FT34: Falling trigger event configuration bit of configurable line 34.

Each bit enables/disables the falling edge trigger for the event and interrupt on the line 34.

0: Disable

1: Enable

Note: The configurable lines are edge triggered; no glitch must be generated on these inputs. If a falling edge on the configurable line occurs during writing of the register, the associated pending bit is not set. Falling edge trigger can be set for a line with rising edge trigger enabled. In this case, both edges generate a trigger.

Bits 1:0 Reserved, must be kept at reset value.

14.5.8 EXTI software interrupt event register 2 (EXTI_SWIER2)

This register is only available on STM32C071xx. On the other devices, it is reserved.

Address offset: 0x028

Reset value: 0x0000 0000

Contains only register bits for configurable events.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SWI34Res.Res.
rw

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 SWI34: Software rising edge event trigger on line 34

Setting of any bit by software triggers a rising edge event on the line 34, resulting in an interrupt, independently of EXTI_RTSR2 and EXTI_FTSR2 settings. The bits are automatically cleared by HW. Reading of any bit always returns 0.

0: No effect

1: Rising edge event generated on the corresponding line, followed by an interrupt

Bits 1:0 Reserved, must be kept at reset value.

14.5.9 EXTI rising edge pending register 2 (EXTI_RPR2)

This register is only available on STM32C071xx. On the other devices, it is reserved.

Address offset: 0x02C

Reset value: 0x0000 0000

Contains only register bits for configurable events.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RPIF34Res.Res.
rc_w1

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 RPIF34: Rising edge event pending for configurable line 34

Each bit is set upon a rising edge event generated by hardware or by software (through the EXTI_SWIER2 register) on the line 34. Each bit is cleared by writing 1 into it.

0: No rising edge trigger request occurred

1: Rising edge trigger request occurred

Bits 1:0 Reserved, must be kept at reset value.

14.5.10 EXTI falling edge pending register 2 (EXTI_FPR2)

This register is only available on STM32C071xx. On the other devices, it is reserved.

Address offset: 0x030

Reset value: 0x0000 0000

Contains only register bits for configurable events.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FPIF34Res.Res.
rc_w1

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 FPIF34: Falling edge event pending for configurable line 34

Each bit is set upon a falling edge event generated by hardware or by software (through the EXTI_SWIER2 register) on the line 34. Each bit is cleared by writing 1 into it.

0: No falling edge trigger request occurred

1: Falling edge trigger request occurred

Bits 1:0 Reserved, must be kept at reset value.

14.5.11 EXTI external interrupt selection register (EXTI_EXTICRx)

Address offset: 0x060 + 0x4 * (x - 1), (x = 1 to 4)

Reset value: 0x0000 0000

31302928272625242322212019181716
EXTI{4*(x-1)+3}[7:0]EXTI{4*(x-1)+2}[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
EXTI{4*(x-1)+1}[7:0]EXTI{4*(x-1)}[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 EXTI{4*(x-1)+3}[7:0]: EXTI{4*(x-1)+3} GPIO port selection

These bits are written by software to select the source input for EXTI{4*(x-1)+3} external interrupt.

Bits 23:16 EXTI{4*(x-1)+2}[7:0]: EXTI{4*(x-1)+2} GPIO port selection

These bits are written by software to select the source input for EXTI{4*(x-1)+2} external interrupt.

Bits 15:8 EXTI{4*(x-1)+1}[7:0]: EXTI{4*(x-1)+1} GPIO port selection

These bits are written by software to select the source input for EXTI{4*(x-1)+1} external interrupt.

Bits 7:0 EXTI{4*(x-1)}[7:0]: EXTI{4*(x-1)} GPIO port selection

These bits are written by software to select the source input for EXTI{4*(x-1)} external interrupt.

14.5.12 EXTI CPU wake-up with interrupt mask register 1 (EXTI_IMR1)

Address offset: 0x080

Reset value: 0xFFF8 0000

Contains register bits for configurable events and direct events.

The reset value is set such as to, by default, enable interrupt from direct lines, and disable interrupt from configurable lines.

RM0490column_2column_3column_4
31 30 292827 26 25 24 23 22 21 20 19 18 17 16
IM31 Res. Res.Res.Res. Res. IM25 Res. IM23 Res. Res. Res. IM19 Res. Res. Res.
rwrw rw rw
15 14 131211 10 9 8 7 6 5 4 3 2 1 0
IM15 IM14 IM13IM12IM11 IM10 IM9 IM8 IM7 IM6 IM5 IM4 IM3 IM2 IM1 IM0
rw rw rwrwrw rw rw rw rw rw rw rw rw rw rw rw
Bit 31IM31:CPU wake-up with interrupt mask on line 31
Bit 25IM25:CPU wake-up with interrupt mask on line 25
Bit 23IM23:CPU wake-up with interrupt mask on line 23
Bit 19IM19:CPU wake-up with interrupt mask on line 19
Bits 15:0IMx:CPU wake-up with interrupt mask on line x (x = 15 to 0)
RM0490 Rev 6 275/ 1023

Bit 31 IM31: CPU wake-up with interrupt mask on line 31

Setting/clearing this bit unmask/masks the CPU wake-up with interrupt, by an event on the corresponding line.

Bits 30:26 Reserved, must be kept at reset value.

Bit 25 IM25: CPU wake-up with interrupt mask on line 25

Setting/clearing each bit unmask/masks the CPU wake-up with interrupt, by an event on the corresponding line.

Bit 24 Reserved, must be kept at reset value.

Bit 23 IM23: CPU wake-up with interrupt mask on line 23

Setting/clearing each bit unmask/masks the CPU wake-up with interrupt, by an event on the corresponding line.

Bits 22:20 Reserved, must be kept at reset value.

Bit 19 IM19: CPU wake-up with interrupt mask on line 19

Setting/clearing this bit unmask/masks the CPU wake-up with interrupt, by an event on the corresponding line.

Bits 18:16 Reserved, must be kept at reset value.

Bits 15:0 IMx: CPU wake-up with interrupt mask on line x (x = 15 to 0)

Setting/clearing each bit unmask/masks the CPU wake-up with interrupt, by an event on the corresponding line.

14.5.13 EXTI CPU wake-up with event mask register (EXTI_EMR1)

Address offset: 0x084

Reset value: 0x0000 0000

31302928272625242322212019181716
EM31Res.Res.Res.Res.Res.EM25Res.EM23Res.Res.Res.EM19Res.Res.Res.
rwrwrwrw
1514131211109876543210
EM15EM14EM13EM12EM11EM10EM9EM8EM7EM6EM5EM4EM3EM2EM1EM0
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 EM31: CPU wake-up with event generation mask on line 31

Setting/clearing this bit unmask/masks the CPU wake-up with event generation on the corresponding line.

0: wake-up with event generation masked

1: wake-up with event generation unmasked

Bits 30:26 Reserved, must be kept at reset value.

Bit 25 EM25: CPU wake-up with event generation mask on line 25

Setting/clearing this bit unmask/masks the CPU wake-up with event generation on the corresponding line.

0: wake-up with event generation masked

1: wake-up with event generation unmasked

Bit 24 Reserved, must be kept at reset value.

Bit 23 EM23: CPU wake-up with event generation mask on line 23

Setting/clearing this bit unmask/masks the CPU wake-up with event generation on the corresponding line.

0: wake-up with event generation masked

1: wake-up with event generation unmasked

Bits 22:20 Reserved, must be kept at reset value.

Bit 19 EM19: CPU wake-up with event generation mask on line 19

Setting/clearing this bit unmask/masks the CPU wake-up with event generation on the corresponding line.

0: wake-up with event generation masked

1: wake-up with event generation unmasked

Bits 18:16 Reserved, must be kept at reset value.

Bits 15:0 EMx: CPU wake-up with event generation mask on line x (x = 15 to 0)

Setting/clearing each bit unmask/masks the CPU wake-up with event generation on the corresponding line.

0: wake-up with event generation masked

1: wake-up with event generation unmasked

14.5.14 EXTI CPU wake-up with interrupt mask register 2 (EXTI_IMR2)

This register is only available on STM32C071xx. On the other devices, it is reserved.

Address offset: 0x090

Reset value: 0x0000 0000

Contains register bits for configurable events and direct events.

The reset value is set such as to, by default, enable interrupt from direct lines, and disable interrupt from configurable lines.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IM36Res.IM34Res.Res.
rwrw

Bits 31:5 Reserved, must be kept at reset value.

Bit 4 IM36: CPU wake-up with interrupt mask on line 36

Setting/clearing the bit unmask/masks the CPU wake-up with interrupt request from the line 36.

Bit 3 Reserved, must be kept at reset value.

Bit 2 IM34: CPU wake-up with interrupt mask on line 34

Setting/clearing the bit unmask/masks the CPU wake-up with interrupt request from the line 34.

Bits 1:0 Reserved, must be kept at reset value.

14.5.15 EXTI CPU wake-up with event mask register 2 (EXTI_EMR2)

This register is only available on STM32C071xx. On the other devices, it is reserved.

Address offset: 0x094

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EM36Res.EM34Res.Res.
rwrw

Bits 31:5 Reserved, must be kept at reset value.

Bit 4 EM36: CPU wake-up with event generation mask on line 36

Setting/clearing this bit unmasks/masks the CPU wake-up with event generation on the line 36.

0: wake-up with event generation masked

1: wake-up with event generation unmasked

Bit 3 Reserved, must be kept at reset value.

Bit 2 EM34: CPU wake-up with event generation mask on line 34

Setting/clearing this bit unmasks/masks the CPU wake-up with event generation on the line 34.

0: wake-up with event generation masked

1: wake-up with event generation unmasked

Bits 1:0 Reserved, must be kept at reset value.

14.5.16 EXTI register map

The following table gives the EXTI register map and the reset values.

Table 63. EXTI controller register map and reset values

OffsetRegister313029282726252423222120191817161514131211109876543210
0x000EXTI_RTSR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RT15RT14RT13RT12RT11RT10RT9RT8RT7RT6RT5RT4RT3RT2RT1RT0
Reset value0000000000000000
0x004EXTI_FTSR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FT15FT14FT13FT12FT11FT10FT9FT8FT7FT6FT5FT4FT3FT2FT1FT0
Reset value0000000000000000
0x008EXTI_SWIER1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SWI15SWI14SWI13SWI12SWI11SWI10SWI9SWI8SWI7SWI6SWI5SWI4SWI3SWI2SWI1SWI0
Reset value0000000000000000
0x00CEXTI_RPR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RPIF15RPIF14RPIF13RPIF12RPIF11RPIF10RPIF9RPIF8RPIF7RPIF6RPIF5RPIF4RPIF3RPIF2RPIF1RPIF0
Reset value0000000000000000
0x010EXTI_FPR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FPIF15FPIF14FPIF13FPIF12FPIF11FPIF10FPIF9FPIF8FPIF7FPIF6FPIF5FPIF4FPIF3FPIF2FPIF1FPIF0
Reset value0000000000000000
0x014-0x01CReservedRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
0x020EXTI_RTSR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RT34Res.Res.
Reset value0
0x024EXTI_FTSR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FT34Res.Res.Res.
Reset value0
0x028EXTI_SWIER2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SWI34Res.Res.Res.
Reset value0

Table 63. EXTI controller register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x02CEXTI_RPR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0x030EXTI_FPR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0x034-0x05CReservedRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
0x060EXTI_EXTICR1EXTI3[7:0]EXTI2[7:0]EXTI1[7:0]EXTI0[7:0]
Reset value00000000000000000000000000000000
0x064EXTI_EXTICR2EXTI7[7:0]EXTI6[7:0]EXTI5[7:0]EXTI4[7:0]
Reset value00000000000000000000000000000000
0x068EXTI_EXTICR3EXTI11[7:0]EXTI10[7:0]EXTI9[7:0]EXTI8[7:0]
Reset value00000000000000000000000000000000
0x06CEXTI_EXTICR4EXTI15[7:0]EXTI14[7:0]EXTI13[7:0]EXTI12[7:0]
Reset value00000000000000000000000000000000
0x070-0x07CReservedRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
0x080EXTI_IMR1IM31Res.Res.Res.Res.Res.Res.IM25Res.IM23Res.Res.Res.IM19Res.Res.IM15IM14IM13IM12IM11IM10IM9IM8IM7IM6IM5IM4IM3IM2IM1IM0
Reset value11110000000000000000
0x084EXTI_EMR1EM31Res.Res.Res.Res.Res.Res.EM25Res.EM23Res.Res.Res.EM19Res.Res.EM15EM14EM13EM12EM11EM10EM9EM8EM7EM6EM5EM4EM3EM2EM1EM0
Reset value00000000000000000000
0x088-0x08CReservedRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
0x090EXTI_IMR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IM36Res.IM34Res.Res.
Reset value00
0x094EXTI_EMR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EM36Res.EM34Res.Res.
Reset value00

Refer to Section 2.2 on page 45 for the register boundary addresses.