name: STM32F103x8
alias: STM32F103xB
suffix: 6, 7
variations: LFBGA100, UFBGA100, LQFP48, UFQFPN48, TFBGA64, LQFP64, LQFP100, VFQFPN36
description: STM32F103x8/STM32F103xB  ARM Cartex-M3 micro-controller
keywords: IC, MCU, Micro-Controller, STM32, STM32F1, STM32F103
datasheet: https://www.st.com/resource/en/datasheet/stm32f103c8.pdf

pinout@LFBGA100:
  PORTA:
    PA0/WKUP/USART2_CTS/ADC12_IN0/TIM2_CH1_ETR-nFT: G2
    PA1/USART2_RTS/ADC12_IN1/TIM2_CH2-nFT: H2
    PA2/USART2_TX/ADC12_IN2/TIM2_CH3-nFT: J2
    PA3/USART2_RX/ADC12_IN3/TIM2_CH4-nFT: K2
    PA4/SPI1_NSS/USART2_CK/ADC12_IN4-nFT: G3
    PA5/SPI1_SCK/ADC12_IN5-nFT: H3
    PA6/SPI1_MISO/ADC12_IN6/TIM3_CH1/TIM1_BKIN-nFT: J3
    PA7/SPI1_MOSI/ADC12_IN7/TIM3_CH2/TIM1_CH1N-nFT: K2
    PA8/USART1_CK/TIM1_CH1/MCO-FT: D9
    PA9/USART1_TX/TIM1_CH2-FT: C9
    PA10/USART1_RX/TIM1_CH3-FT: D10
    PA11/USART1_CTS/CANRX/USBDM/TIM1_CH4-FT: C10
    PA12/USART1_RTS/CANTX/USBDP/TIM1_ETR-FT: B10
    JTMS/SWDIO/PA13-FT: A10
    JTCK/SWCLK/PA14-FT: A9
    JTDI/TIM2_CH1_ETR/PA15/SPI1_NSS-FT: A8
  PORTB:
    PB0/ADC12_IN8/TIM3_CH3/TIM1_CH2N-nFT: J4
    PB1/ADC12_IN9/TIM3_CH4/TIM1_CH3N-nFT: K4
    PB2/BOOT1-FT: G5
    JTDO/TIM2_CH2/PB3/TRACESWO/SPI1_SCK-FT: A7
    JNTRST/TIM3_CH1/PB4/SPI1_MISO-FT: A6
    PB5/I2C1_SMBAl/TIM3_CH2/SPI1_MOSI-nFT: C5
    PB6/I2C1_SCL/TIM4_CH1/USART1_TX-FT: B5
    PB7/I2C1_SDA/TIM4_CH2/USART1_RX-FT: A5
    PB8/TIM4_CH3/I2C1_SCL/CANRX-FT: B4
    PB9/TIM4_CH4/I2C1_SDA/CANTX-FT: A4
    PB10/I2C2_SCL/USART3_TX/TIM2_CH3-FT: J7
    PB11/I2C2_SDA/USART3_RX/TIM2_CH4-FT: K7
    PB12/SPI2_NSS/I2C2_SMBAl/USART3_CK/TIM1_BKIN-FT: K8
    PB13/SPI2_SCK/USART3_CTS/TIM1_CH1N-FT: J8
    PB14/SPI2_MISO/USART3_RTS/TIM1_CH2N-FT: H8
    PB15/SPI2_MOSI/TIM1_CH3N-FT: G8
  PORTC:
    PC0/ADC12_IN10-nFT: F1
    PC1/ADC12_IN11-nFT: F2
    PC2/ADC12_IN12-nFT: E2
    PC3/ADC12_IN13-nFT: F3
    PC4/ADC12_IN14-nFT: G4
    PC5/ADC12_IN15-nFT: H4
    PC6/TIM3_CH1-FT: F10
    PC7/TIM3_CH2-FT: E10
    PC8/TIM3_CH3-FT: F9
    PC9/TIM3_CH4-FT: E9
    PC10/USART3_TX-FT: B9
    PC11/USART3_RX-FT: B8
    PC12/USART3_CK-FT: C8
    PC13/TAMPER-RTC-nFT: A2
    PC14/OSC32_IN-nFT: A1
    PC15/OSC32_OUT-nFT: B1
  PORTD:
    PD2/TIM3_ETR-FT: B7
    PD3/USART2_CTS-FT: C7
    PD4/USART2_RTS-FT: D7
    PD5/USART2_TX-FT: B6
    PD6/USART2_RX-FT: C6
    PD7/USART2_CK-FT: D6
    PD8/USART3_TX-FT: K9
    PD9/USART3_RX-FT: J9
    PD10/USART3_CK-FT: H9
    PD11/USART3_CTS-FT: G9
    PD12/TIM4_CH1/USART3_RTS-FT: K10
    PD13/TIM4_CH2-FT: J10
    PD14/TIM4_CH3-FT: H10
    PD15/TIM4_CH4-FT: G10
  PORTE:
    PE0/TIM4_ETR-FT: D4
    PE1-FT: C4
    PE2/TRACECK-FT: A3
    PE3/TRACED0-FT: B3
    PE4/TRACED1-FT: C3
    PE5/TRACED2-FT: D3
    PE6/TRACED3-FT: E3
    PE7/TIM1_ETR-FT: H5
    PE8/TIM1_CH1N-FT: J5
    PE9/TIM1_CH1-FT: K5
    PE10/TIM1_CH2N-FT: G6
    PE11/TIM1_CH2-FT: H6
    PE12/TIM1_CH3N-FT: J6
    PE13/TIM1_CH3-FT: K6
    PE14/TIM1_CH4-FT: G7
    PE15/TIM1_BKIN-FT: H7
  CTRL:
    OSC_IN: C1
    OSC_OUT: D1
    NRST: E1
    BOOT0: D5
  GROUND:
    VSS: E7, E6, E5, E4, C2
    VSSA: G1
    VREF-: H1
  POWER:
    VDD: F7, F6, F5, F4, D2
    VDDA: K1
    VBAT: B2
    VREF+: J1
  NC: F8

pinout@UFBGA100:
  PORTA:
    PA0/WKUP/USART2_CTS/ADC12_IN0/TIM2_CH1_ETR-nFT: L2
    PA1/USART2_RTS/ADC12_IN1/TIM2_CH2-nFT: M2
    PA2/USART2_TX/ADC12_IN2/TIM2_CH3-nFT: K3
    PA3/USART2_RX/ADC12_IN3/TIM2_CH4-nFT: L3
    PA4/SPI1_NSS/USART2_CK/ADC12_IN4-nFT: M3
    PA5/SPI1_SCK/ADC12_IN5-nFT: K4
    PA6/SPI1_MISO/ADC12_IN6/TIM3_CH1/TIM1_BKIN-nFT: J3
    PA7/SPI1_MOSI/ADC12_IN7/TIM3_CH2/TIM1_CH1N-nFT: K3
    PA8/USART1_CK/TIM1_CH1/MCO-FT: D11
    PA9/USART1_TX/TIM1_CH2-FT: D10
    PA10/USART1_RX/TIM1_CH3-FT: C12
    PA11/USART1_CTS/CANRX/USBDM/TIM1_CH4-FT: B12
    PA12/USART1_RTS/CANTX/USBDP/TIM1_ETR-FT: A12
    JTMS/SWDIO/PA13-FT: A11
    JTCK/SWCLK/PA14-FT: A10
    JTDI/TIM2_CH1_ETR/PA15/SPI1_NSS-FT: A9
  PORTB:
    PB0/ADC12_IN8/TIM3_CH3/TIM1_CH2N-nFT: M5
    PB1/ADC12_IN9/TIM3_CH4/TIM1_CH3N-nFT: M6
    PB2/BOOT1-FT: L6
    JTDO/TIM2_CH2/PB3/TRACESWO/SPI1_SCK-FT: A8
    JNTRST/TIM3_CH1/PB4/SPI1_MISO-FT: A7
    PB5/I2C1_SMBAl/TIM3_CH2/SPI1_MOSI-nFT: C5
    PB6/I2C1_SCL/TIM4_CH1/USART1_TX-FT: B5
    PB7/I2C1_SDA/TIM4_CH2/USART1_RX-FT: B4
    PB8/TIM4_CH3/I2C1_SCL/CANRX-FT: A3
    PB9/TIM4_CH4/I2C1_SDA/CANTX-FT: B3
    PB10/I2C2_SCL/USART3_TX/TIM2_CH3-FT: L10
    PB11/I2C2_SDA/USART3_RX/TIM2_CH4-FT: L11
    PB12/SPI2_NSS/I2C2_SMBAl/USART3_CK/TIM1_BKIN-FT: L12
    PB13/SPI2_SCK/USART3_CTS/TIM1_CH1N-FT: K12
    PB14/SPI2_MISO/USART3_RTS/TIM1_CH2N-FT: K11
    PB15/SPI2_MOSI/TIM1_CH3N-FT: K10
  PORTC:
    PC0/ADC12_IN10-nFT: H1
    PC1/ADC12_IN11-nFT: J2
    PC2/ADC12_IN12-nFT: J3
    PC3/ADC12_IN13-nFT: K2
    PC4/ADC12_IN14-nFT: K5
    PC5/ADC12_IN15-nFT: L5
    PC6/TIM3_CH1-FT: E12
    PC7/TIM3_CH2-FT: E11
    PC8/TIM3_CH3-FT: E10
    PC9/TIM3_CH4-FT: D12
    PC10/USART3_TX-FT: B11
    PC11/USART3_RX-FT: C10
    PC12/USART3_CK-FT: B10
    PC13/TAMPER-RTC-nFT: C1
    PC14/OSC32_IN-nFT: D1
    PC15/OSC32_OUT-nFT: E1
  PORTD:
    PD0/CANRX-FT: C9
    PD1/CANTX-FT: B9
    PD2/TIM3_ETR-FT: C8
    PD3/USART2_CTS-FT: B8
    PD4/USART2_RTS-FT: B7
    PD5/USART2_TX-FT: A6
    PD6/USART2_RX-FT: B6
    PD7/USART2_CK-FT: A5
    PD8/USART3_TX-FT: K9
    PD9/USART3_RX-FT: J9
    PD10/USART3_CK-FT: J12
    PD11/USART3_CTS-FT: J11
    PD12/TIM4_CH1/USART3_RTS-FT: J10
    PD13/TIM4_CH2-FT: H12
    PD14/TIM4_CH3-FT: H11
    PD15/TIM4_CH4-FT: H10
  PORTE:
    PE0/TIM4_ETR-FT: C3
    PE1-FT: A2
    PE2/TRACECK-FT: B2
    PE3/TRACED0-FT: A1
    PE4/TRACED1-FT: B1
    PE5/TRACED2-FT: C2
    PE6/TRACED3-FT: D2
    PE7/TIM1_ETR-FT: M7
    PE8/TIM1_CH1N-FT: L7
    PE9/TIM1_CH1-FT: M9
    PE10/TIM1_CH2N-FT: L8
    PE11/TIM1_CH2-FT: M9
    PE12/TIM1_CH3N-FT: L9
    PE13/TIM1_CH3-FT: M10
    PE14/TIM1_CH4-FT: M11
    PE15/TIM1_BKIN-FT: M12
  CTRL:
    OSC_IN: F1
    OSC_OUT: G1
    NRST: H2
    BOOT0: A4
  GROUND:
    VSS: F12, F11, D3, E3, F2
    VSSA: J1
    VREF-: K1
  POWER:
    VDD: G12, G11, C4, H3, G2
    VDDA: M1
    VBAT: E2
    VREF+: L1
  NC: C11

pinout@LQFP100:
  PORTA:
    PA0/WKUP/USART2_CTS/ADC12_IN0/TIM2_CH1_ETR-nFT: 23
    PA1/USART2_RTS/ADC12_IN1/TIM2_CH2-nFT: 24
    PA2/USART2_TX/ADC12_IN2/TIM2_CH3-nFT: 25
    PA3/USART2_RX/ADC12_IN3/TIM2_CH4-nFT: 26
    PA4/SPI1_NSS/USART2_CK/ADC12_IN4-nFT: 29
    PA5/SPI1_SCK/ADC12_IN5-nFT: 30
    PA6/SPI1_MISO/ADC12_IN6/TIM3_CH1/TIM1_BKIN-nFT: 31
    PA7/SPI1_MOSI/ADC12_IN7/TIM3_CH2/TIM1_CH1N-nFT: 32
    PA8/USART1_CK/TIM1_CH1/MCO-FT: 67
    PA9/USART1_TX/TIM1_CH2-FT: 68
    PA10/USART1_RX/TIM1_CH3-FT: 69
    PA11/USART1_CTS/CANRX/USBDM/TIM1_CH4-FT: 70
    PA12/USART1_RTS/CANTX/USBDP/TIM1_ETR-FT: 71
    JTMS/SWDIO/PA13-FT: 72
    JTCK/SWCLK/PA14-FT: 76
    JTDI/TIM2_CH1_ETR/PA15/SPI1_NSS-FT: 77
  PORTB:
    PB0/ADC12_IN8/TIM3_CH3/TIM1_CH2N-nFT: 35
    PB1/ADC12_IN9/TIM3_CH4/TIM1_CH3N-nFT: 36
    PB2/BOOT1-FT: 37
    JTDO/TIM2_CH2/PB3/TRACESWO/SPI1_SCK-FT: 89
    JNTRST/TIM3_CH1/PB4/SPI1_MISO-FT: 90
    PB5/I2C1_SMBAl/TIM3_CH2/SPI1_MOSI-nFT: 91
    PB6/I2C1_SCL/TIM4_CH1/USART1_TX-FT: 92
    PB7/I2C1_SDA/TIM4_CH2/USART1_RX-FT: 93
    PB8/TIM4_CH3/I2C1_SCL/CANRX-FT: 95
    PB9/TIM4_CH4/I2C1_SDA/CANTX-FT: 96
    PB10/I2C2_SCL/USART3_TX/TIM2_CH3-FT: 47
    PB11/I2C2_SDA/USART3_RX/TIM2_CH4-FT: 48
    PB12/SPI2_NSS/I2C2_SMBAl/USART3_CK/TIM1_BKIN-FT: 51
    PB13/SPI2_SCK/USART3_CTS/TIM1_CH1N-FT: 52
    PB14/SPI2_MISO/USART3_RTS/TIM1_CH2N-FT: 53
    PB15/SPI2_MOSI/TIM1_CH3N-FT: 54
  PORTC:
    PC0/ADC12_IN10-nFT: 15
    PC1/ADC12_IN11-nFT: 16
    PC2/ADC12_IN12-nFT: 17
    PC3/ADC12_IN13-nFT: 18
    PC4/ADC12_IN14-nFT: 33
    PC5/ADC12_IN15-nFT: 34
    PC6/TIM3_CH1-FT: 63
    PC7/TIM3_CH2-FT: 64
    PC8/TIM3_CH3-FT: 65
    PC9/TIM3_CH4-FT: 66
    PC10/USART3_TX-FT: 78
    PC11/USART3_RX-FT: 79
    PC12/USART3_CK-FT: 80
    PC13/TAMPER-RTC-nFT: 7
    PC14/OSC32_IN-nFT: 8
    PC15/OSC32_OUT-nFT: 9
  PORTD:
    PD0/CANRX-FT: 81
    PD1/CANTX-FT: 82
    PD2/TIM3_ETR-FT: 83
    PD3/USART2_CTS-FT: 84
    PD4/USART2_RTS-FT: 85
    PD5/USART2_TX-FT: 86
    PD6/USART2_RX-FT: 87
    PD7/USART2_CK-FT: 88
    PD8/USART3_TX-FT: 55
    PD9/USART3_RX-FT: 56
    PD10/USART3_CK-FT: 57
    PD11/USART3_CTS-FT: 58
    PD12/TIM4_CH1/USART3_RTS-FT: 59
    PD13/TIM4_CH2-FT: 60
    PD14/TIM4_CH3-FT: 61
    PD15/TIM4_CH4-FT: 62
  PORTE:
    PE0/TIM4_ETR-FT: 97
    PE1-FT: 98
    PE2/TRACECK-FT: 1
    PE3/TRACED0-FT: 2
    PE4/TRACED1-FT: 3
    PE5/TRACED2-FT: 4
    PE6/TRACED3-FT: 5
    PE7/TIM1_ETR-FT: 38
    PE8/TIM1_CH1N-FT: 39
    PE9/TIM1_CH1-FT: 40
    PE10/TIM1_CH2N-FT: 41
    PE11/TIM1_CH2-FT: 42
    PE12/TIM1_CH3N-FT: 43
    PE13/TIM1_CH3-FT: 44
    PE14/TIM1_CH4-FT: 45
    PE15/TIM1_BKIN-FT: 47
  CTRL:
    OSC_IN: 12
    OSC_OUT: 13
    NRST: 14
    BOOT0: 94
  GROUND:
    VSS: 49, 74, 99, 27, 10
    VSSA: 19
    VREF-: 20
  POWER:
    VDD: 50, 75, 100, 28, 11
    VDDA: 22
    VBAT: 6
    VREF+: 21
  NC: 73

pinout@TFBGA64:
  PORTA:
    PA0/WKUP/USART2_CTS/ADC12_IN0/TIM2_CH1_ETR-nFT: G2
    PA1/USART2_RTS/ADC12_IN1/TIM2_CH2-nFT: H2
    PA2/USART2_TX/ADC12_IN2/TIM2_CH3-nFT: F3
    PA3/USART2_RX/ADC12_IN3/TIM2_CH4-nFT: G3
    PA4/SPI1_NSS/USART2_CK/ADC12_IN4-nFT: H3
    PA5/SPI1_SCK/ADC12_IN5-nFT: F4
    PA6/SPI1_MISO/ADC12_IN6/TIM3_CH1/TIM1_BKIN-nFT: G4
    PA7/SPI1_MOSI/ADC12_IN7/TIM3_CH2/TIM1_CH1N-nFT: H4
    PA8/USART1_CK/TIM1_CH1/MCO-FT: D7
    PA9/USART1_TX/TIM1_CH2-FT: C7
    PA10/USART1_RX/TIM1_CH3-FT: C6
    PA11/USART1_CTS/CANRX/USBDM/TIM1_CH4-FT: C8
    PA12/USART1_RTS/CANTX/USBDP/TIM1_ETR-FT: B8
    JTMS/SWDIO/PA13-FT: A8
    JTCK/SWCLK/PA14-FT: A7
    JTDI/TIM2_CH1_ETR/PA15/SPI1_NSS-FT: A6
  PORTB:
    PB0/ADC12_IN8/TIM3_CH3/TIM1_CH2N-nFT: F5
    PB1/ADC12_IN9/TIM3_CH4/TIM1_CH3N-nFT: G5
    PB2/BOOT1-FT: G6
    JTDO/TIM2_CH2/PB3/TRACESWO/SPI1_SCK-FT: A5
    JNTRST/TIM3_CH1/PB4/SPI1_MISO-FT: A4
    PB5/I2C1_SMBAl/TIM3_CH2/SPI1_MOSI-nFT: C4
    PB6/I2C1_SCL/TIM4_CH1/USART1_TX-FT: D3
    PB7/I2C1_SDA/TIM4_CH2/USART1_RX-FT: C3
    PB8/TIM4_CH3/I2C1_SCL/CANRX-FT: B3
    PB9/TIM4_CH4/I2C1_SDA/CANTX-FT: A3
    PB10/I2C2_SCL/USART3_TX/TIM2_CH3-FT: G7
    PB11/I2C2_SDA/USART3_RX/TIM2_CH4-FT: H7
    PB12/SPI2_NSS/I2C2_SMBAl/USART3_CK/TIM1_BKIN-FT: H8
    PB13/SPI2_SCK/USART3_CTS/TIM1_CH1N-FT: G8
    PB14/SPI2_MISO/USART3_RTS/TIM1_CH2N-FT: F8
    PB15/SPI2_MOSI/TIM1_CH3N-FT: F7
  PORTC:
    PC0/ADC12_IN10-nFT: E3
    PC1/ADC12_IN11-nFT: E2
    PC2/ADC12_IN12-nFT: F2
    PC4/ADC12_IN14-nFT: H5
    PC5/ADC12_IN15-nFT: H6
    PC6/TIM3_CH1-FT: F6
    PC7/TIM3_CH2-FT: E7
    PC8/TIM3_CH3-FT: E8
    PC9/TIM3_CH4-FT: D8
    PC10/USART3_TX-FT: B7
    PC11/USART3_RX-FT: B6
    PC12/USART3_CK-FT: C5
    PC13/TAMPER-RTC-nFT: A2
    PC14/OSC32_IN-nFT: A1
    PC15/OSC32_OUT-nFT: B1
  PORTD:
    PD0/CANRX-FT: C1
    PD1/CANTX-FT: D1
    PD2/TIM3_ETR-FT: B5
  CTRL:
    OSC_IN: C1
    OSC_OUT: D1
    NRST: E1
    BOOT0: B4
  GROUND:
    VSS: D6, D5, D4, C2
    VSSA: F1
  POWER:
    VDD: E6, E5, E4, D2
    VDDA: H1
    VBAT: B2
    VREF+: G1

pinout@LQFP64:
  PORTA:
    PA0/WKUP/USART2_CTS/ADC12_IN0/TIM2_CH1_ETR-nFT: 14
    PA1/USART2_RTS/ADC12_IN1/TIM2_CH2-nFT: 15
    PA2/USART2_TX/ADC12_IN2/TIM2_CH3-nFT: 16
    PA3/USART2_RX/ADC12_IN3/TIM2_CH4-nFT: 17
    PA4/SPI1_NSS/USART2_CK/ADC12_IN4-nFT: 20
    PA5/SPI1_SCK/ADC12_IN5-nFT: 21
    PA6/SPI1_MISO/ADC12_IN6/TIM3_CH1/TIM1_BKIN-nFT: 22
    PA7/SPI1_MOSI/ADC12_IN7/TIM3_CH2/TIM1_CH1N-nFT: 23
    PA8/USART1_CK/TIM1_CH1/MCO-FT: 41
    PA9/USART1_TX/TIM1_CH2-FT: 42
    PA10/USART1_RX/TIM1_CH3-FT: 43
    PA11/USART1_CTS/CANRX/USBDM/TIM1_CH4-FT: 44
    PA12/USART1_RTS/CANTX/USBDP/TIM1_ETR-FT: 45
    JTMS/SWDIO/PA13-FT: 46
    JTCK/SWCLK/PA14-FT: 49
    JTDI/TIM2_CH1_ETR/PA15/SPI1_NSS-FT: 50
  PORTB:
    PB0/ADC12_IN8/TIM3_CH3/TIM1_CH2N-nFT: 26
    PB1/ADC12_IN9/TIM3_CH4/TIM1_CH3N-nFT: 27
    PB2/BOOT1-FT: 28
    JTDO/TIM2_CH2/PB3/TRACESWO/SPI1_SCK-FT: 55
    JNTRST/TIM3_CH1/PB4/SPI1_MISO-FT: 56
    PB5/I2C1_SMBAl/TIM3_CH2/SPI1_MOSI-nFT: 57
    PB6/I2C1_SCL/TIM4_CH1/USART1_TX-FT: 58
    PB7/I2C1_SDA/TIM4_CH2/USART1_RX-FT: 59
    PB8/TIM4_CH3/I2C1_SCL/CANRX-FT: 61
    PB9/TIM4_CH4/I2C1_SDA/CANTX-FT: 62
    PB10/I2C2_SCL/USART3_TX/TIM2_CH3-FT: 29
    PB11/I2C2_SDA/USART3_RX/TIM2_CH4-FT: 30
    PB12/SPI2_NSS/I2C2_SMBAl/USART3_CK/TIM1_BKIN-FT: 33
    PB13/SPI2_SCK/USART3_CTS/TIM1_CH1N-FT: 34
    PB14/SPI2_MISO/USART3_RTS/TIM1_CH2N-FT: 35
    PB15/SPI2_MOSI/TIM1_CH3N-FT: 36
  PORTC:
    PC0/ADC12_IN10-nFT: 8
    PC1/ADC12_IN11-nFT: 9
    PC2/ADC12_IN12-nFT: 10
    PC3/ADC12_IN13-nFT: 11
    PC4/ADC12_IN14-nFT: 24
    PC5/ADC12_IN15-nFT: 25
    PC6/TIM3_CH1-FT: 37
    PC7/TIM3_CH2-FT: 38
    PC8/TIM3_CH3-FT: 39
    PC9/TIM3_CH4-FT: 40
    PC10/USART3_TX-FT: 51
    PC11/USART3_RX-FT: 52
    PC12/USART3_CK-FT: 53
    PC13/TAMPER-RTC-nFT: 2
    PC14/OSC32_IN-nFT: 3
    PC15/OSC32_OUT-nFT: 4
  PORTD:
    PD2/TIM3_ETR-FT: 54
  CTRL:
    OSC_IN: 5
    OSC_OUT: 6
    NRST: 7
    BOOT0: 60
  GROUND:
    VSS: 31, 47, 63, 18
    VSSA: 12
  POWER:
    VDD: 32, 48, 64, 19
    VDDA: 13
    VBAT: 1

pinout@LQFP48:
  PORTA:
    PA0/WKUP/USART2_CTS/ADC12_IN0/TIM2_CH1_ETR-nFT: 10
    PA1/USART2_RTS/ADC12_IN1/TIM2_CH2-nFT: 11
    PA2/USART2_TX/ADC12_IN2/TIM2_CH3-nFT: 12
    PA3/USART2_RX/ADC12_IN3/TIM2_CH4-nFT: 13
    PA4/SPI1_NSS/USART2_CK/ADC12_IN4-nFT: 14
    PA5/SPI1_SCK/ADC12_IN5-nFT: 15
    PA6/SPI1_MISO/ADC12_IN6/TIM3_CH1/TIM1_BKIN-nFT: 16
    PA7/SPI1_MOSI/ADC12_IN7/TIM3_CH2/TIM1_CH1N-nFT: 17
    PA8/USART1_CK/TIM1_CH1/MCO-FT: 29
    PA9/USART1_TX/TIM1_CH2-FT: 30
    PA10/USART1_RX/TIM1_CH3-FT: 31
    PA11/USART1_CTS/CANRX/USBDM/TIM1_CH4-FT: 32
    PA12/USART1_RTS/CANTX/USBDP/TIM1_ETR-FT: 33
    JTMS/SWDIO/PA13-FT: 34
    JTCK/SWCLK/PA14-FT: 37
    JTDI/TIM2_CH1_ETR/PA15/SPI1_NSS-FT: 38
  PORTB:
    PB0/ADC12_IN8/TIM3_CH3/TIM1_CH2N-nFT: 18
    PB1/ADC12_IN9/TIM3_CH4/TIM1_CH3N-nFT: 19
    PB2/BOOT1-FT: 20
    JTDO/TIM2_CH2/PB3/TRACESWO/SPI1_SCK-FT: 39
    JNTRST/TIM3_CH1/PB4/SPI1_MISO-FT: 40
    PB5/I2C1_SMBAl/TIM3_CH2/SPI1_MOSI-nFT: 41
    PB6/I2C1_SCL/TIM4_CH1/USART1_TX-FT: 42
    PB7/I2C1_SDA/TIM4_CH2/USART1_RX-FT: 43
    PB8/TIM4_CH3/I2C1_SCL/CANRX-FT: 45
    PB9/TIM4_CH4/I2C1_SDA/CANTX-FT: 46
    PB10/I2C2_SCL/USART3_TX/TIM2_CH3-FT: 21
    PB11/I2C2_SDA/USART3_RX/TIM2_CH4-FT: 22
    PB12/SPI2_NSS/I2C2_SMBAl/USART3_CK/TIM1_BKIN-FT: 25
    PB13/SPI2_SCK/USART3_CTS/TIM1_CH1N-FT: 26
    PB14/SPI2_MISO/USART3_RTS/TIM1_CH2N-FT: 27
    PB15/SPI2_MOSI/TIM1_CH3N-FT: 28
  PORTC:
    PC13/TAMPER-RTC-nFT: 2
    PC14/OSC32_IN-nFT: 3
    PC15/OSC32_OUT-nFT: 4
  CTRL:
    OSC_IN: 5
    OSC_OUT: 6
    NRST: 7
    BOOT0: 44
  GROUND:
    VSS: 23, 35, 47
    VSSA: 8
  POWER:
    VDD: 24, 36, 48
    VDDA: 9
    VBAT: 1

pinout@UFQFPN48:
  PORTA:
    PA0/WKUP/USART2_CTS/ADC12_IN0/TIM2_CH1_ETR-nFT: 10
    PA1/USART2_RTS/ADC12_IN1/TIM2_CH2-nFT: 11
    PA2/USART2_TX/ADC12_IN2/TIM2_CH3-nFT: 12
    PA3/USART2_RX/ADC12_IN3/TIM2_CH4-nFT: 13
    PA4/SPI1_NSS/USART2_CK/ADC12_IN4-nFT: 14
    PA5/SPI1_SCK/ADC12_IN5-nFT: 15
    PA6/SPI1_MISO/ADC12_IN6/TIM3_CH1/TIM1_BKIN-nFT: 16
    PA7/SPI1_MOSI/ADC12_IN7/TIM3_CH2/TIM1_CH1N-nFT: 17
    PA8/USART1_CK/TIM1_CH1/MCO-FT: 29
    PA9/USART1_TX/TIM1_CH2-FT: 30
    PA10/USART1_RX/TIM1_CH3-FT: 31
    PA11/USART1_CTS/CANRX/USBDM/TIM1_CH4-FT: 32
    PA12/USART1_RTS/CANTX/USBDP/TIM1_ETR-FT: 33
    JTMS/SWDIO/PA13-FT: 34
    JTCK/SWCLK/PA14-FT: 37
    JTDI/TIM2_CH1_ETR/PA15/SPI1_NSS-FT: 38
  PORTB:
    PB0/ADC12_IN8/TIM3_CH3/TIM1_CH2N-nFT: 18
    PB1/ADC12_IN9/TIM3_CH4/TIM1_CH3N-nFT: 19
    PB2/BOOT1-FT: 20
    JTDO/TIM2_CH2/PB3/TRACESWO/SPI1_SCK-FT: 39
    JNTRST/TIM3_CH1/PB4/SPI1_MISO-FT: 40
    PB5/I2C1_SMBAl/TIM3_CH2/SPI1_MOSI-nFT: 41
    PB6/I2C1_SCL/TIM4_CH1/USART1_TX-FT: 42
    PB7/I2C1_SDA/TIM4_CH2/USART1_RX-FT: 43
    PB8/TIM4_CH3/I2C1_SCL/CANRX-FT: 45
    PB9/TIM4_CH4/I2C1_SDA/CANTX-FT: 46
    PB10/I2C2_SCL/USART3_TX/TIM2_CH3-FT: 21
    PB11/I2C2_SDA/USART3_RX/TIM2_CH4-FT: 22
    PB12/SPI2_NSS/I2C2_SMBAl/USART3_CK/TIM1_BKIN-FT: 25
    PB13/SPI2_SCK/USART3_CTS/TIM1_CH1N-FT: 26
    PB14/SPI2_MISO/USART3_RTS/TIM1_CH2N-FT: 27
    PB15/SPI2_MOSI/TIM1_CH3N-FT: 28
  PORTC:
    PC13/TAMPER-RTC-nFT: 2
    PC14/OSC32_IN-nFT: 3
    PC15/OSC32_OUT-nFT: 4
  CTRL:
    OSC_IN: 5
    OSC_OUT: 6
    NRST: 7
    BOOT0: 44
  GROUND:
    VSS: 23, 35, 47
    VSSA: 8
  POWER:
    VDD: 24, 36, 48
    VDDA: 9
    VBAT: 1

pinout@VFQFPN36:
  PORTA:
    PA0/WKUP/USART2_CTS/ADC12_IN0/TIM2_CH1_ETR-nFT: 7
    PA1/USART2_RTS/ADC12_IN1/TIM2_CH2-nFT: 8
    PA2/USART2_TX/ADC12_IN2/TIM2_CH3-nFT: 9
    PA3/USART2_RX/ADC12_IN3/TIM2_CH4-nFT: 10
    PA4/SPI1_NSS/USART2_CK/ADC12_IN4-nFT: 11
    PA5/SPI1_SCK/ADC12_IN5-nFT: 12
    PA6/SPI1_MISO/ADC12_IN6/TIM3_CH1/TIM1_BKIN-nFT: 13
    PA7/SPI1_MOSI/ADC12_IN7/TIM3_CH2/TIM1_CH1N-nFT: 14
    PA8/USART1_CK/TIM1_CH1/MCO-FT: 20
    PA9/USART1_TX/TIM1_CH2-FT: 21
    PA10/USART1_RX/TIM1_CH3-FT: 22
    PA11/USART1_CTS/CANRX/USBDM/TIM1_CH4-FT: 23
    PA12/USART1_RTS/CANTX/USBDP/TIM1_ETR-FT: 24
    JTMS/SWDIO/PA13-FT: 25
    JTCK/SWCLK/PA14-FT: 28
    JTDI/TIM2_CH1_ETR/PA15/SPI1_NSS-FT: 29
  PORTB:
    PB0/ADC12_IN8/TIM3_CH3/TIM1_CH2N-nFT: 15
    PB1/ADC12_IN9/TIM3_CH4/TIM1_CH3N-nFT: 16
    PB2/BOOT1-FT: 27
    JTDO/TIM2_CH2/PB3/TRACESWO/SPI1_SCK-FT: 30
    JNTRST/TIM3_CH1/PB4/SPI1_MISO-FT: 31
    PB5/I2C1_SMBAl/TIM3_CH2/SPI1_MOSI-nFT: 32
    PB6/I2C1_SCL/TIM4_CH1/USART1_TX-FT: 33
    PB7/I2C1_SDA/TIM4_CH2/USART1_RX-FT: 34
  CTRL:
    OSC_IN: 2
    OSC_OUT: 3
    NRST: 4
    BOOT0: 35
  GROUND:
    VSS: 18, 26, 36
    VSSA: 5
  POWER:
    VDD: 19, 27, 1
    VDDA: 6

properties:
  in: ~NRST, BOOT0
  bidir: PORTA, PORTB, PORTC, PORTD, PORTE 
  passive: OSC_IN, OSC_OUT, VREF+, VREF-
  power: VDD, VDDA, VBAT
  nc: NC
  ground: VSS, VSSA
  inverted: ~NRST

schematic@LFBGA100:
  symbol: IC
  left: PORTA, PORTB, CTRL
  right: PORTC, PORTD, PORTE
  top: POWER
  bottom: GROUND

schematic@UFBGA100:
  symbol: IC
  left: PORTA, PORTB, CTRL
  right: PORTC, PORTD, PORTE
  top: POWER
  bottom: GROUND

schematic@LQFP100:
  symbol: IC
  left: PORTA, PORTB, CTRL
  right: PORTC, PORTD, PORTE
  top: POWER
  bottom: GROUND

schematic@TFBGA64:
  symbol: IC
  left: PORTA, PORTB
  right: PORTC, PORTD, CTRL
  top: POWER
  bottom: GROUND

schematic@LQFP64:
  symbol: IC
  left: PORTA, PORTB
  right: PORTC, PORTD, CTRL
  top: POWER
  bottom: GROUND

schematic@LQFP48:
  symbol: IC
  left: PORTA, CTRL
  right: PORTB, PORTC
  top: POWER
  bottom: GROUND

schematic@UFQFPN48:
  symbol: IC
  left: PORTA, CTRL
  right: PORTB, PORTC
  top: POWER
  bottom: GROUND

schematic@VFQFPN36:
  symbol: IC
  left: PORTA
  right: PORTB, CTRL
  top: POWER
  bottom: GROUND

housing@LFBGA100:
  pattern: BGA
  bodyWidth: 9.850-10.150 # E
  bodyLength: 9.850-10.150 # D
  height: 1.700 # A
  pitch: 0.800 # e
  rowCount: 10
  columnCount: 10
  leadDiameter: 0.150 # eee
  leadCount: 100

housing@UFBGA100:
  pattern: BGA
  bodyWidth: 6.950-7.050 # E
  bodyLength: 6.950-7.050 # D
  height: 0.460-0.600 # A
  pitch: 0.500 # e
  rowCount: 12
  columnCount: 12
  leadDiameter: 0.150 # eee
  leadCount: 100

housing@LQFP100:
  pattern: QFP
  bodyWidth: 13.800-14.200 # D1
  bodyLength: 13.800-14.200 # E1
  height: 1.600 # A
  leadWidth: 0.17-0.27 # b
  leadLength: 0.45-0.75 # L
  leadSpan: 15.800-16.200 # D
  pitch: 0.5 # e
  leadCount: 100
  rowCount: 25
  columnCount: 25

housing@TFBGA64:
  pattern: BGA
  bodyWidth: 4.850-5.150 # E
  bodyLength: 4.850-5.150 # D
  height: 1.200 # A
  pitch: 0.500 # e
  rowCount: 8
  columnCount: 8
  leadDiameter: 0.150 # eee
  leadCount: 64

housing@LQFP64:
  pattern: QFP
  bodyWidth: 10.000 # D1
  bodyLength: 10.000 # E1
  height: 1.600 # A
  leadWidth: 0.17-0.27 # b
  leadLength: 0.45-0.75 # L
  leadSpan: 12.000 # D
  pitch: 0.5 # e
  leadCount: 64
  rowCount: 16
  columnCount: 16

housing@LQFP48:
  pattern: QFP
  bodyWidth: 7.000 # D1
  bodyLength: 7.000 # E1
  height: 1.600 # A
  leadWidth: 0.17-0.27 # b
  leadLength: 0.45-0.75 # L
  leadSpan: 8.800-9.200 # D
  pitch: 0.5 # e
  leadCount: 48
  rowCount: 12
  columnCount: 12

housing@UFQFPN48:
  pattern: QFN
  bodyWidth: 6.900-7.100 # D
  bodyLength: 6.900-7.100 # E
  height: 0.500-0.600 # A
  leadWidth: 0.200-0.300 # b
  leadLength: 0.300-0.500 # L
  pitch: 0.5 # e
  leadCount: 48
  rowCount: 12
  columnCount: 12

housing@VFQFPN36:
  pattern: QFN
  bodyWidth: 5.875-6.125 # D
  bodyLength: 5.875-6.125 # E
  height: 0.800-1.000 # A
  leadWidth: 0.180-0.300 # b
  leadLength: 0.350-0.750 # L
  pitch: 0.5 # e
  leadCount: 36
  rowCount: 9
  columnCount: 9
