Files
Last update 3 years 9 months
by
Dipesh Manandhar
FilesDocumentation | |
---|---|
.. | |
ECUDocumentation.md | |
Pins.md |
Pins.mdPins
This document describes the different functions of each pin on the STM32 MCU. The highlighted functions are the recommended function to use for the pin, though not all of the recommendations must be followed. Some recommendations, however (such as those required for SWD programming/debugging) must be followed. See the datasheet for more details.
Sorted by Pin Name
STM Pin Name | MbedOS Pin Name(s) | Function(s) |
---|---|---|
PA0 | PA_0 |
USART2_CTS, UART4_TX, ADC1_IN0 |
PA1 | PA_1 |
SPI4_MOSI, USART2_RTS, UART4_RX, ADC1_IN1 |
PA2 | PA_2 |
USART2_TX, ADC1_IN2 |
PA3 | PA_3 /A0 |
USART2_RX, ADC1_IN3 |
PA4 | PA_4 |
SPI1_NSS, SPI3_NSS, USART2_CK, ADC1_IN4, DAC_OUT1 |
PA5 | PA_5 /D13 |
SPI1_SCK, ADC1_IN5, DAC_OUT2 |
PA6 | PA_6 /D12 |
SPI1_MISO, ADC1_IN6 |
PA7 | PA_7 /D11 |
SPI1_MOSI, ADC1_IN7 |
PA8 | PA_8 |
I2C3_SCL, USART1_CK, UART7_RX, CAN3_RX |
PA9 | PA_9 |
I2C3_SMBA, SPI2_SCK, USART1_TX |
PA10 | PA_10 |
SPI2_MOSI, SPI5_MOSI, USART1_RX |
PA11 | PA_11 |
SPI2_NSS, SPI4_MISO, USART1_CTS, USART6_TX, CAN1_RX, UART4_RX |
PA12 | PA_12 |
SPI2_MISO, SPI5_MISO, USART1_RTS, USART6_RX, CAN1_TX, UART4_TX |
PA13 | PA_13 |
SWDIO |
PA14 | PA_14 |
SWCLK |
PA15 | PA_15 |
JTDI, SPI1_NSS,SPI3_NSS, USART1_TX, UART7_TX, CAN3_TX |
PB0 | PB_0 /LED1 |
SPI5_SCK, ADC1_IN8, LED1 |
PB1 | PB_1 |
SPI5_NSS, ADC1_IN9 |
PB2 | PB_2 |
BOOT1 |
PB3 | PB_3 |
SWO, I2CFMP1_SDA, SPI1_SCK, SPI3_SCK, USART1_RX, UART7_RX, I2C2_SDA, CAN3_RX |
PB4 | PB_4 |
SPI1_MISO, SPI3_MISO, UART7_TX, I2C3_SDA, CAN3_TX |
PB5 | PB_5 |
I2C1_SMBA, SPI1_MOSI, SPI3_MOSI, CAN2_RX, UART5_RX |
PB6 | PB_6 |
I2C1_SCL, USART1_TX, CAN2_TX, UART5_TX |
PB7 | PB_7 /LED2 |
I2C1_SDA, USART1_RX, LED2 |
PB8 | PB_8 |
I2C1_SCL, SPI5_MOSI, CAN1_RX, I2C3_SDA, UART5_RX |
PB9 | PB_9 |
I2C1_SDA, SPI2_NSS, CAN1_TX, I2C2_SDA, UART5_TX |
PB10 | PB_10 |
I2C2_SCL, SPI2_SCK, USART3_TX, I2CFMP1_SCL |
PB12 | PB_12 |
I2C2_SMBA, SPI2_NSS, SPI4_NSS, SPI3_SCK, USART3_CK, CAN2_RX, UART5_RX |
PB13 | PB_13 |
I2CFMP1_SMBA, SPI2_SCK, SPI4_SCK, USART3_CTS, CAN2_TX, UART5_TX |
PB14 | PB_14 /LED3 |
I2CFMP1_SDA, SPI2_MISO, USART3_RTS, LED3 |
PB15 | PB_15 |
I2CFMP1_SCL, SPI2_MOSI |
PC0 | PC_0 /A1 |
ADC1_IN10 |
PC1 | PC_1 /A3 |
ADC1_IN11 |
PC2 | PC_2 |
SPI2_MISO, ADC1_IN12 |
PC3 | PC_3 /A2 |
SPI2_MOSI, ADC1_IN13 |
PC4 | PC_4 /A4 |
ADC1_IN14 |
PC5 | PC_5 /A5 |
I2CFMP1_SMBA, USART3_RX, ADC1_IN15 |
PC6 | PC_6 |
I2CFMP1_SCL, USART6_TX |
PC7 | PC_7 |
I2CFMP1_SDA, SPI2_SCK, USART6_RX |
PC8 | PC_8 |
USART6_CK |
PC9 | PC_9 |
I2C3_SDA |
PC10 | PC_10 |
USB_TX (USART3_TX), SPI3_SCK |
PC11 | PC_11 |
USB_RX (USART3_RX), SPI3_MISO, UART4_RX |
PC12 | PC_12 |
SPI3_MOSI, USART3_CK, UART5_TX |
PC13 | PC_13 /BUTTON1 |
ANTI_TAMP (BUTTON1) |
PC14 | PC_14 |
OSC32_IN |
PC15 | PC_15 |
OSC32_OUT |
PD2 | PD_2 |
UART5_RX |
PH2 | PH_0 |
OSC_IN |
PH2 | PH_1 |
OSC_OUT |