RM0033
For pins 0 to 7, the GPIOx_AFRL[31:0] register selects the dedicated alternate function
AF0 (system)
AF1 (TIM1/TIM2)
AF2 (TIM3..5)
AF3 (TIM8..11)
AF4 (I2C1..3)
AF5 (SPI1/SPI2)
AF6 (SPI3)
AF7 (USART1..3)
AF8 (USART4..6)
AF9 (CAN1/CAN2, TIM12..14)
AF10 (OTG_FS, OTG_HS)
AF11 (ETH)
AF12 (FSMC, SDIO, OTG_HS (1) )
AF13 (DCMI)
AF14
AF15 (EVENTOUT)
For pins 8 to 15, the GPIOx_AFRH[31:0] register selects the dedicated alternate function
AF0 (system)
AF1 (TIM1/TIM2)
AF2 (TIM3..5)
AF3 (TIM8..11)
AF4 (I2C1..3)
AF5 (SPI1/SPI2)
AF6 (SPI3)
AF7 (USART1..3)
AF8 (USART4..6)
AF9 (CAN1/CAN2, TIM12..14)
AF10 (OTG_FS, OTG_HS)
AF11 (ETH)
AF12 (FSMC, SDIO, OTG_HS (1) )
AF13 (DCMI)
AF14
AF15 (EVENTOUT)
1. Configured in FS.
Figure 14. Selecting an alternate function
AFRL[31:0]
AFRH[31:0]
RM0033 Rev 9
General-purpose I/Os (GPIO)
Pin x (x = 0..7)
1
Pin x (x = 8..15)
1
ai17538
143/1381
158
Need help?
Do you have a question about the STM32F207 Series and is the answer not in the manual?
Questions and answers