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: G2
    PA1: H2
    PA2: J2
    PA3: K2
    PA4: G3
    PA5: H3
    PA6: J3
    PA7: K2
    PA8: D9
    PA9: C9
    PA10: D10
    PA11: C10
    PA12: B10
    PA13: A10
    PA14: A9
    PA15: A8
  PORTB:
    PB0: J4
    PB1: K4
    PB2: G5
    PB3: A7
    PB4: A6
    PB5: C5
    PB6: B5
    PB7: A5
    PB8: B4
    PB9: A4
    PB10: J7
    PB11: K7
    PB12: K8
    PB13: J8
    PB14: H8
    PB15: G8
  PORTC:
    PC0: F1
    PC1: F2
    PC2: E2
    PC3: F3
    PC4: G4
    PC5: H4
    PC6: F10
    PC7: E10
    PC8: F9
    PC9: E9
    PC10: B9
    PC11: B8
    PC12: C8
    PC13-TAMPER-RTC: A2
    PC14-OSC32_IN: A1
    PC15-OSC32_OUT: B1
  PORTD:
    PD2: B7
    PD3: C7
    PD4: D7
    PD5: B6
    PD6: C6
    PD7: D6
    PD8: K9
    PD9: J9
    PD10: H9
    PD11: G9
    PD12: K10
    PD13: J10
    PD14: H10
    PD15: G10
  PORTE:
    PE0: D4
    PE1: C4
    PE2: A3
    PE3: B3
    PE4: C3
    PE5: D3
    PE6: E3
    PE7: H5
    PE8: J5
    PE9: K5
    PE10: G6
    PE11: H6
    PE12: J6
    PE13: K6
    PE14: G7
    PE15: 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: L2
    PA1: M2
    PA2: K3
    PA3: L3
    PA4: M3
    PA5: K4
    PA6: J3
    PA7: K3
    PA8: D11
    PA9: D10
    PA10: C12
    PA11: B12
    PA12: A12
    PA13: A11
    PA14: A10
    PA15: A9
  PORTB:
    PB0: M5
    PB1: M6
    PB2: L6
    PB3: A8
    PB4: A7
    PB5: C5
    PB6: B5
    PB7: B4
    PB8: A3
    PB9: B3
    PB10: L10
    PB11: L11
    PB12: L12
    PB13: K12
    PB14: K11
    PB15: K10
  PORTC:
    PC0: H1
    PC1: J2
    PC2: J3
    PC3: K2
    PC4: K5
    PC5: L5
    PC6: E12
    PC7: E11
    PC8: E10
    PC9: D12
    PC10: B11
    PC11: C10
    PC12: B10
    PC13-TAMPER-RTC: C1
    PC14-OSC32_IN: D1
    PC15-OSC32_OUT: E1
  PORTD:
    PD0: C9
    PD1: B9
    PD2: C8
    PD3: B8
    PD4: B7
    PD5: A6
    PD6: B6
    PD7: A5
    PD8: K9
    PD9: J9
    PD10: J12
    PD11: J11
    PD12: J10
    PD13: H12
    PD14: H11
    PD15: H10
  PORTE:
    PE0: C3
    PE1: A2
    PE2: B2
    PE3: A1
    PE4: B1
    PE5: C2
    PE6: D2
    PE7: M7
    PE8: L7
    PE9: M9
    PE10: L8
    PE11: M9
    PE12: L9
    PE13: M10
    PE14: M11
    PE15: 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: 23
    PA1: 24
    PA2: 25
    PA3: 26
    PA4: 29
    PA5: 30
    PA6: 31
    PA7: 32
    PA8: 67
    PA9: 68
    PA10: 69
    PA11: 70
    PA12: 71
    PA13: 72
    PA14: 76
    PA15: 77
  PORTB:
    PB0: 35
    PB1: 36
    PB2: 37
    PB3: 89
    PB4: 90
    PB5: 91
    PB6: 92
    PB7: 93
    PB8: 95
    PB9: 96
    PB10: 47
    PB11: 48
    PB12: 51
    PB13: 52
    PB14: 53
    PB15: 54
  PORTC:
    PC0: 15
    PC1: 16
    PC2: 17
    PC3: 18
    PC4: 33
    PC5: 34
    PC6: 63
    PC7: 64
    PC8: 65
    PC9: 66
    PC10: 78
    PC11: 79
    PC12: 80
    PC13-TAMPER-RTC: 7
    PC14-OSC32_IN: 8
    PC15-OSC32_OUT: 9
  PORTD:
    PD0: 81
    PD1: 82
    PD2: 83
    PD3: 84
    PD4: 85
    PD5: 86
    PD6: 87
    PD7: 88
    PD8: 55
    PD9: 56
    PD10: 57
    PD11: 58
    PD12: 59
    PD13: 60
    PD14: 61
    PD15: 62
  PORTE:
    PE0: 97
    PE1: 98
    PE2: 1
    PE3: 2
    PE4: 3
    PE5: 4
    PE6: 5
    PE7: 38
    PE8: 39
    PE9: 40
    PE10: 41
    PE11: 42
    PE12: 43
    PE13: 44
    PE14: 45
    PE15: 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: G2
    PA1: H2
    PA2: F3
    PA3: G3
    PA4: H3
    PA5: F4
    PA6: G4
    PA7: H4
    PA8: D7
    PA9: C7
    PA10: C6
    PA11: C8
    PA12: B8
    PA13: A8
    PA14: A7
    PA15: A6
  PORTB:
    PB0: F5
    PB1: G5
    PB2: G6
    PB3: A5
    PB4: A4
    PB5: C4
    PB6: D3
    PB7: C3
    PB8: B3
    PB9: A3
    PB10: G7
    PB11: H7
    PB12: H8
    PB13: G8
    PB14: F8
    PB15: F7
  PORTC:
    PC0: E3
    PC1: E2
    PC2: F2
    PC4: H5
    PC5: H6
    PC6: F6
    PC7: E7
    PC8: E8
    PC9: D8
    PC10: B7
    PC11: B6
    PC12: C5
    PC13-TAMPER-RTC: A2
    PC14-OSC32_IN: A1
    PC15-OSC32_OUT: B1
  PORTD:
    PD0: C1
    PD1: D1
    PD2: 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: 14
    PA1: 15
    PA2: 16
    PA3: 17
    PA4: 20
    PA5: 21
    PA6: 22
    PA7: 23
    PA8: 41
    PA9: 42
    PA10: 43
    PA11: 44
    PA12: 45
    PA13: 46
    PA14: 49
    PA15: 50
  PORTB:
    PB0: 26
    PB1: 27
    PB2: 28
    PB3: 55
    PB4: 56
    PB5: 57
    PB6: 58
    PB7: 59
    PB8: 61
    PB9: 62
    PB10: 29
    PB11: 30
    PB12: 33
    PB13: 34
    PB14: 35
    PB15: 36
  PORTC:
    PC0: 8
    PC1: 9
    PC2: 10
    PC3: 11
    PC4: 24
    PC5: 25
    PC6: 37
    PC7: 38
    PC8: 39
    PC9: 40
    PC10: 51
    PC11: 52
    PC12: 53
    PC13-TAMPER-RTC: 2
    PC14-OSC32_IN: 3
    PC15-OSC32_OUT: 4
  PORTD:
    PD2: 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: 10
    PA1: 11
    PA2: 12
    PA3: 13
    PA4: 14
    PA5: 15
    PA6: 16
    PA7: 17
    PA8: 29
    PA9: 30
    PA10: 31
    PA11: 32
    PA12: 33
    PA13: 34
    PA14: 37
    PA15: 38
  PORTB:
    PB0: 18
    PB1: 19
    PB2: 20
    PB3: 39
    PB4: 40
    PB5: 41
    PB6: 42
    PB7: 43
    PB8: 45
    PB9: 46
    PB10: 21
    PB11: 22
    PB12: 25
    PB13: 26
    PB14: 27
    PB15: 28
  PORTC:
    PC13-TAMPER-RTC: 2
    PC14-OSC32_IN: 3
    PC15-OSC32_OUT: 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: 10
    PA1: 11
    PA2: 12
    PA3: 13
    PA4: 14
    PA5: 15
    PA6: 16
    PA7: 17
    PA8: 29
    PA9: 30
    PA10: 31
    PA11: 32
    PA12: 33
    PA13: 34
    PA14: 37
    PA15: 38
  PORTB:
    PB0: 18
    PB1: 19
    PB2: 20
    PB3: 39
    PB4: 40
    PB5: 41
    PB6: 42
    PB7: 43
    PB8: 45
    PB9: 46
    PB10: 21
    PB11: 22
    PB12: 25
    PB13: 26
    PB14: 27
    PB15: 28
  PORTC:
    PC13-TAMPER-RTC: 2
    PC14-OSC32_IN: 3
    PC15-OSC32_OUT: 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: 7
    PA1: 8
    PA2: 9
    PA3: 10
    PA4: 11
    PA5: 12
    PA6: 13
    PA7: 14
    PA8: 20
    PA9: 21
    PA10: 22
    PA11: 23
    PA12: 24
    PA13: 25
    PA14: 28
    PA15: 29
  PORTB:
    PB0: 15
    PB1: 16
    PB2: 27
    PB3: 30
    PB4: 31
    PB5: 32
    PB6: 33
    PB7: 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: PA0-WKUP:, PA1-15, PB0-15, PC0-12, PC13-TAMPER-RTC, PC14-OSC32_IN, PC15-OSC32_OUT, PD0-15, PE0-15
  passive: OSC_IN, OSC_OUT, VREF+, VREF-
  power: VDD, VDDA, VBAT
  nc: NC
  ground: VSS, VSSA
  inverted: ~NRST

schematic:
  symbol: IC
  left: PORTA, PORTB, CTRL
  right: PORTC, PORTD, PORTE
  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
