STM32 各引脚功能
ADCx 对应引脚:
ADC3_IN4->PF6
ADC3_IN5->PF7
ADC3_IN6->PF8
ADC3_IN7->PF9
ADC3_IN8->PF10
ADC123_IN0->PA0
ADC123_IN1->PA1
ADC123_IN2->PA2
ADC123_IN3->PA3
ADC12_IN4->PA4
ADC12_IN5->PA5
ADC12_IN6->PA6
ADC12_IN7->PA7
ADC12_IN8->PB0
ADC12_IN9->PB1
ADC123_IN10->PC0
ADC123_IN11->PC1
ADC123_IN12->PC2
ADC123_IN13->PC3
ADC12_IN14->PC4
ADC12_IN15->PC5
ADC 的通道对应于相应的引脚对应于相应的 ADC 规则窗口配置
DMA 通道对应于 DMA_PeripheralBaseAddr 这个基地址
CANx 对应引脚:
CAN_RX->PA11
CAN_TX->PA12
FSMC 对应引脚:
FSMC_A0->PF0
FSMC_A1->PF1
FSMC_A2->PF2
FSMC_A3->PF3
FSMC_A4->PF4
FSMC_A5->PF5
FSMC_A6->PF12
FSMC_A7->PF13
FSMC_A8->PF14
FSMC_A9->PF15
FSMC_A10->PG0
FSMC_A11->PG1
FSMC_A12->PG2
FSMC_A13->PG3
FSMC_A14->PG4
FSMC_A15->PG5
FSMC_A16->PD11
FSMC_A17->PD12
FSMC_A18->PD13
FSMC_A24->PG13
FSMC_A25->PG14
FSMC_NIORD->PF6
FSMC_NREG->PF7
FSMC_NIOWR->PF8
FSMC_CD->PF9
FSMC_NIOS16->PF11
FSMC_D0->PD14
FSMC_D1->PD15
FSMC_D2->PD0
FSMC_D3->PD1
FSMC_D4->PE7
FSMC_D5->PE8
FSMC_D6->PE9
FSMC_D7->PE10
FSMC_D8->PE11
FSMC_D9->PE12
FSMC_D10->PE13
FSMC_D11->PE14
FSMC_D12->PE15
FSMC_D13->PD8
FSMC_D14->PD9
FSMC_D15->PD10
FSMC_INTR->PF10
FSMC_INT2->PG6
FSMC_INT3->PG7
FSMC_CLK->PD3
FSMC_NOE->PD4
FSMC_NWE->PD5
FSMC_NWAIT->PD6
FSMC_NCE2->PD7
FSMC_NCE3->PG9
FSMC_NCE4_1->PG10
FSMC_NCE4_2->PG11
FSMC_NE4->PG12
FSMC_NADV->PB7
FSMC_NBL0->PE0
FSMC_NBL1->PE1
I2Cx 对应引脚:
I2C2_SCL->PB10
I2C2_SDA->PB11
I2C2_SMBA->PB12
I2C1_SMBA->PB5
I2C1_SCl->PB6
I2C1_SDA->PB7
I2Sx 对应引脚:
I2S2_WS->PB12
I2S2_CK->PB13
I2S2_SD->PB15
I2S2_MCK->PC6
SPIx 对应引脚:
SPI1_NSS->PA4
SPI1_SCK->PA5
SPI1_MISO->PA6
SPI1_MOSI->PA7
SPI2_NSS->PB12
SPI2_SCK->PB13
SPI2_MISO->PB14
SPI2_MOSI->PB15
SPI3_NSS->PA15
SPI3_SCK->PB3
SPI3_MISO->PB4
SPI3_MOSI->PB5
SDIO 引脚:
SDIO_D6->PC6
SDIO_D7->PC7
SDIO_D0->PC8
SDIO_D1->PC9
SDIO_D2->PC10
SDIO_D3->PC11
SDIO_CK->PC12
SDIO_CMD->PD2
TIMx 对应引脚:
TIM1_BKIN->PB12
TIM1_CH1N->PB13
TIM1_CH2N->PB14
TIM1_CH3N->PB15
TIM1_CH1->PA8
TIM1_CH2->PA9
TIM1_CH3->PA10
TIM1_CH4->PA11
TIM1_ETR->PA12
TIM2_CH1->PA0
TIM2_CH2->PA1
TIM2_CH3->PA2
TIM2_Ch4->PA3
TIM3_ETR->PD2
TIM3_CH1->PB4-PC6-Remap
TIM3_CH2->PB5-PC7-Remap
TIM3_CH3->PC8-Remap
TIM3_CH4->PC9-Remap
TIM4_CH1->PD12-Remap
TIM4_CH2->PD13-Remap
TIM4_CH3->PD14-Remap
TIM4_CH4->PD15-Remap
TIM5_CH1->PA0
TIM5_CH2->PA1
TIM5_CH3->PA2
TIM5_CH4->PA3
TIM8_ETR->PA0
TIM8_BKIN->PA6
TIM8_CH1N->PA7
TIM8_CH2N->PB0
TIM8_CH3N->PB1
TIM8_CH1->PC6
TIM8_CH2->PC7
TIM8_CH3->PC8
TIM8_CH4->PC9
USARTx 对应引脚:
USART2_RTS->PA0
USART2_RTS->PA1
USART2_TX->PA2
USART2_RX->PA3
USART2_CK->PA4
USART3_TX->PB10
USART3_RX->PB11
USART3_CX->PB12
USART3_CTS->PB13
USART3_RTS->PB14
USART1_CK->PA8
USART1_TX->PA9
USART1_RX->PA10
USART1_CTS->PA11
USART1_RTS->PA12
UART4_TX->PC10
UART4_RX->PC11
UART5_TX->PC12
UART5_RX->PD2