name: STM32F401
alias: STM32F401xC, STM32F401xB
suffix: 6, 7
variations: UQFN48, WLCSP49, LQFP64, LQFP100, UFBGA100
description: STM32F401xB/STM32F401xC ARM Cartex-M4 micro-controller
keywords: IC, MCU, Micro-Controller, STM32, STM32F4, STM32F401
datasheet: https://www.st.com/resource/en/datasheet/stm32f401rc.pdf

pinout@UQFN48:
  PORTA:
    PA0: 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-JTMS-SWDIO: 34
    PA14-JTCK-SWCLK: 37
    PA15-JTDI: 38
  PORTB:
    PB0: 18
    PB1: 19
    PB2: 20
    PB3-JTDO-SWO: 39
    PB4-NJTRST: 40
    PB5: 41
    PB6: 42
    PB7: 43
    PB8: 45
    PB9: 46
    PB10: 21
    PB12: 25
    PB13: 26
    PB14: 27
    PB15: 28
  PORTC:
    PC13: 2
    PC14-OSC32_IN: 3
    PC15-OSC32_OUT: 4
  PORTH:
    PH0-OSC_IN: 5
    PH1-OSC_OUT: 6
  CTRL:
    NRST: 7
    BOOT0: 44
  GROUND:
    VSS: 23, 35, 47
    VSSA: 8
  POWER:
    VDD: 24, 36, 48
    VCAP_1: 22
    VDDA: 9
    VBAT: 1

pinout@WLCSP49:
  PORTA:
    PA0: F6
    PA1: G7
    PA2: E5
    PA3: E4
    PA4: G6
    PA5: F5
    PA6: F4
    PA7: F3
    PA8: D1
    PA9: D2
    PA10: C2
    PA11: C1
    PA12: C3
    PA13-JTMS-SWDIO: B3
    PA14-JTCK-SWCLK: A1
    PA15-JTDI: A2
  PORTB:
    PB0: G5
    PB1: G4
    PB2: G3
    PB3-JTDO-SWO: A3
    PB4-NJTRST: A4
    PB5: B4
    PB6: C4
    PB7: D4
    PB8: B5
    PB9: C5
    PB10: E3
    PB12: E2
    PB13: G1
    PB14: F1
    PB15: E1
  PORTC:
    PC13: D5
    PC14-OSC32_IN: C7
    PC15-OSC32_OUT: C6
  PORTH:
    PH0-OSC_IN: D7
    PH1-OSC_OUT: D6
  CTRL:
    NRST: E7
    BOOT0: A5
    PDR_ON: B6
  GROUND:
    VSS: D3, B1, A6
    VSSA: E6
  POWER:
    VDD: F2, B2, A7
    VCAP_1: G2
    VDDA: E7
    VBAT: B7

pinout@LQFP64:
  PORTA:
    PA0: 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-JTMS-SWDIO: 46
    PA14-JTCK-SWCLK: 49
    PA15-JTDI: 50
  PORTB:
    PB0: 26
    PB1: 27
    PB2: 28
    PB3-JTDO-SWO: 55
    PB4-NJTRST: 56
    PB5: 57
    PB6: 58
    PB7: 59
    PB8: 61
    PB9: 62
    PB10: 29
    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: 2
    PC14-OSC32_IN: 3
    PC15-OSC32_OUT: 4
  PORTD:
    PD2: 54
  PORTH:
    PH0-OSC_IN: 5
    PH1-OSC_OUT: 6
  CTRL:
    NRST: 7
    BOOT0: 60
  GROUND:
    VSS: 31, 47, 63, 18
    VSSA: 12
  POWER:
    VDD: 32, 48, 64, 19
    VCAP_1: 30
    VDDA: 13
    VBAT: 1

pinout@LQFP100:
  PORTA:
    PA0: 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-JTMS-SWDIO: 72
    PA14-JTCK-SWCLK: 76
    PA15-JTDI: 77
  PORTB:
    PB0: 35
    PB1: 36
    PB2: 37
    PB3-JTDO-SWO: 89
    PB4-NJTRST: 90
    PB5: 91
    PB6: 92
    PB7: 93
    PB8: 95
    PB9: 96
    PB10: 47
    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: 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: 46
  PORTH:
    PH0-OSC_IN: 12
    PH1-OSC_OUT: 13
  CTRL:
    NRST: 14
    BOOT0: 94
  GROUND:
    VSS: 49, 74, 99, 27, 10
    VREF-: 20
  POWER:
    VDD: 50, 75, 100, 28, 11, 19
    VDDA: 22
    VBAT: 6
    VREF+: 21
    VCAP_1: 48
    VCAP_2: 73

pinout@UFBGA100:
  PORTA:
    PA0: L2
    PA1: M2
    PA2: K3
    PA3: L3
    PA4: M3
    PA5: K4
    PA6: L4
    PA7: M4
    PA8: D11
    PA9: D10
    PA10: C12
    PA11: B12
    PA12: A12
    PA13-JTMS-SWDIO: A11
    PA14-JTCK: A10
    PA15-JTDI: A9
  PORTB:
    PB0: M5
    PB1: M6
    PB2: L6
    PB3-JTDO-SWO: A8
    PB4-NJTRST: A7
    PB5: C5
    PB6: B5
    PB7: B4
    PB8: A3
    PB9: B3
    PB10: L10
    PB11: K9
    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: 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
    PD9: K8
    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: M8
    PE10: L8
    PE11: M9
    PE12: L9
    PE13: M10
    PE14: M11
    PE15: M12
  PORTH:
    PH0-OSC_IN: F1
    PH1-OSC_OUT: G1
  CTRL:
    NRST: H2
    BOOT0: A4
    BYPASS_REG: E3
    PDR_ON: H3
  GROUND:
    VSS: D3, F2, F12, F11
    VSSA: J1
    VREF-: K1
  POWER:
    VDD: C4, G2, G12, G11
    VDDA: M1
    VBAT: E2
    VREF+: L1
    VCAP_1: L11
    VCAP_2: C11

properties:
  in: NRST, BOOT0, BYPASS_REG, PDR_ON
  bidir: PA0-12, PA13-JTMS-SWDIO, PA14-JTCK, PA15-JTDI, PB0-2, PB3-JTDO-SWO, PB4-NJTRST, PB5-15, PC0-13, PC14-OSC32_IN, PC15-OSC32_OUT, PD0-15, PE0-15, PF0-15, PG0-15, PH0-OSC_IN, PH1-OSC_OUT
  passive: VREF+, VREF-
  power: VDD, VDDA, VBAT
  nc: NC
  ground: VSS, VSSA
  inverted: NRST

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

housing@UQFN48:
  suffix: CCU
  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
  tabWidth: 5.500-5.700 # D2
  tabLength: 5.500-5.700 # E2
  tabPosition: 0.0, 0.0

housing@WLCSP49:
  suffix: CCY
  pattern: BGA
  bodyWidth: 2.930-3.000 # D
  bodyLength: 2.930-3.000 # E
  height: 0.525-0.585 # A
  pitch: 0.400 # e
  rowCount: 7
  columnCount: 7
  leadDiameter: 0.220-0.280 # b
  leadCount: 49

housing@LQFP64:
  suffix: RCT
  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@LQFP100:
  suffix: VCT
  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@UFBGA100:
  suffix: HCT
  pattern: BGA
  bodyWidth: 6.850-7.150 # E
  bodyLength: 6.850-7.150 # D
  height: 0.600 # A
  pitch: 0.500 # e
  rowCount: 12
  columnCount: 12
  leadDiameter: 0.150 # eee
  leadCount: 100

