Skip to main content

Subsection 9.3.2 Register Summary

Table 9.3.2. The EXTI and GPIO registers used in this chapter
Register Offset Bit(s) used Purpose RM0490
EXTI_FTSR1 0x004 FT4 Falling trigger selection: 1 enables falling-edge detection on that line §12.5.2
EXTI_RTSR1 0x000 RT\(n\) Rising trigger selection: the mirror of FTSR1; set both for any-edge detection §12.5.1
EXTI_FPR1 0x010 FPIF4 Falling edge pending: set by hardware on a detected edge; rc_w1, cleared by writing 1 §12.5.5
EXTI_EXTICRx 0x060 + 4(\(x\)−1) EXTI4[7:0] Port selection: which port drives each line; four 8-bit fields per register §12.5.6
EXTI_IMR1 0x080 IM4 Interrupt mask: 1 lets a detected event request an interrupt; masked at reset §12.5.7
GPIOx_ODR 0x14 OD\(y\) Output data: read-write, so |= and ^= on it are read-modify-write §6.4.6
GPIOx_BSRR 0x18 BS\(y\text{,}\) BR\(y\) Bit set/reset: write-only; 1 in [15:0] sets a pin, 1 in [31:16] clears it, 0 does nothing §6.4.7
GPIOx_BRR 0x28 BR\(y\) Bit reset: write-only, and does exactly what BSRR’s upper half does §6.4.11
The three EXTI vectors, from RM0490 §11.3, Table 40: lines 0 and 1 are position 5, EXTI0_1; lines 2 and 3 are position 6, EXTI2_3; lines 4 through 15 are position 7, EXTI4_15, at vector address 0x0000_005C. The CMSIS constant appends _IRQn to the acronym and the handler name appends _IRQHandler.