STM32F103
STM32F103C8T6 LQFP48 · 7 × 7 mm
STM32F103RBT6
LQFP64 · 10 × 10 mmPinout
LQFP64 · TOP VIEWChip pinout. For power, look up VDD, VDDA or VBAT. VIN and VOUT are board labels; VIN in the datasheet means input voltage.
Pin colors
Find interface
Selected #1 VBAT Pin details below ↓
Details for the selected pin
#1 VBAT
Supply inputBackup power for the RTC, low-speed oscillator and backup registers.
- Backup supply
- 1.8–3.6 V
- Without a backup supply
- Connect VBAT to VDD
Pin list
64 / 64Select a pin for wiring details. Hover, focus or tap an underlined signal to read its meaning.
| Pin | Purpose | Voltage summary | Signals |
|---|---|---|---|
| Supply inputBackup power for the RTC, low-speed oscillator and backup registers. |
| — | |
| GPIO / tamper inputPort C bit 13. Tamper input for the RTC backup domain. |
| Real-time clock (RTC) tamper detection input. | |
| GPIO / oscillator inputPort C bit 14. Input for the 32.768 kHz LSE crystal or external RTC clock. |
| Low-speed external (LSE) oscillator input for a 32.768 kHz crystal or external clock. | |
| GPIO / oscillator outputPort C bit 15. LSE crystal amplifier output. Leave open in external clock bypass mode. |
| Low-speed external (LSE) crystal oscillator output. | |
| Oscillator input / GPIOInput for the HSE crystal or external clock. Use PD01_REMAP = 1 for PD0 when HSE is unused. |
| Remapped Port D bit 0 when HSE is unused. | |
| Oscillator output / GPIOHSE crystal amplifier output. Leave open in external clock bypass mode. Use PD01_REMAP = 1 for PD1 when HSE is unused. |
| Remapped Port D bit 1 when HSE is unused. | |
| Reset I/OActive-low reset with an internal pull-up. Pull low to reset the chip. |
| — | |
| GPIO / ADC inputPort C bit 0. Configurable digital input or output. |
| Analog-to-digital converter (ADC) 1 or 2, analog input channel 10. | |
| GPIO / ADC inputPort C bit 1. Configurable digital input or output. |
| Analog-to-digital converter (ADC) 1 or 2, analog input channel 11. | |
| GPIO / ADC inputPort C bit 2. Configurable digital input or output. |
| Analog-to-digital converter (ADC) 1 or 2, analog input channel 12. | |
| GPIO / ADC inputPort C bit 3. Configurable digital input or output. |
| Analog-to-digital converter (ADC) 1 or 2, analog input channel 13. | |
| GroundAnalog ground and internal negative ADC reference for these packages. |
| — | |
| Supply inputAnalog supply and internal positive ADC reference for these packages. |
| — | |
| GPIO / ADC inputPort A bit 0. Wake-up input for Standby mode. Also available as ADC channel 0, USART2 CTS or TIM2 channel 1 / external trigger. |
| Standby wake-up input. Universal synchronous/asynchronous receiver/transmitter (USART) 2, clear-to-send input. Analog-to-digital converter (ADC) 1 or 2, analog input channel 0. Timer 2, channel 1 input capture, output compare or pulse-width modulation (PWM), or external trigger input. | |
| GPIO / ADC inputPort A bit 1. Configurable digital input or output. |
| Universal synchronous/asynchronous receiver/transmitter (USART) 2, request-to-send output. Analog-to-digital converter (ADC) 1 or 2, analog input channel 1. Timer 2, channel 2 input capture, output compare or pulse-width modulation (PWM). | |
| GPIO / ADC inputPort A bit 2. Configurable digital input or output. |
| Universal synchronous/asynchronous receiver/transmitter (USART) 2, transmit data output. Analog-to-digital converter (ADC) 1 or 2, analog input channel 2. Timer 2, channel 3 input capture, output compare or pulse-width modulation (PWM). | |
| GPIO / ADC inputPort A bit 3. Configurable digital input or output. |
| Universal synchronous/asynchronous receiver/transmitter (USART) 2, receive data input. Analog-to-digital converter (ADC) 1 or 2, analog input channel 3. Timer 2, channel 4 input capture, output compare or pulse-width modulation (PWM). | |
| GroundDigital ground return. Connect every VSS pin. |
| — | |
| Supply inputMain digital supply. Connect every VDD pin. |
| — | |
| GPIO / ADC inputPort A bit 4. Configurable digital input or output. |
| Serial Peripheral Interface (SPI) 1, negative slave select (chip select), input in slave mode or input/output in master mode. Universal synchronous/asynchronous receiver/transmitter (USART) 2, synchronous clock output. Analog-to-digital converter (ADC) 1 or 2, analog input channel 4. | |
| GPIO / ADC inputPort A bit 5. Configurable digital input or output. |
| Serial Peripheral Interface (SPI) 1, serial clock, output in master mode or input in slave mode. Analog-to-digital converter (ADC) 1 or 2, analog input channel 5. | |
| GPIO / ADC inputPort A bit 6. Configurable digital input or output. |
| Serial Peripheral Interface (SPI) 1, master in, slave out: data from slave to master. Analog-to-digital converter (ADC) 1 or 2, analog input channel 6. Timer 3, channel 1 input capture, output compare or pulse-width modulation (PWM). Remapped Timer 1, break input for shutting off timer outputs. | |
| GPIO / ADC inputPort A bit 7. Configurable digital input or output. |
| Serial Peripheral Interface (SPI) 1, master out, slave in: data from master to slave. Analog-to-digital converter (ADC) 1 or 2, analog input channel 7. Timer 3, channel 2 input capture, output compare or pulse-width modulation (PWM). Remapped Timer 1, channel 1 complementary pulse-width modulation (PWM) output. | |
| GPIO / ADC inputPort C bit 4. Configurable digital input or output. |
| Analog-to-digital converter (ADC) 1 or 2, analog input channel 14. | |
| GPIO / ADC inputPort C bit 5. Configurable digital input or output. |
| Analog-to-digital converter (ADC) 1 or 2, analog input channel 15. | |
| GPIO / ADC inputPort B bit 0. Configurable digital input or output. |
| Analog-to-digital converter (ADC) 1 or 2, analog input channel 8. Timer 3, channel 3 input capture, output compare or pulse-width modulation (PWM). Remapped Timer 1, channel 2 complementary pulse-width modulation (PWM) output. | |
| GPIO / ADC inputPort B bit 1. Configurable digital input or output. |
| Analog-to-digital converter (ADC) 1 or 2, analog input channel 9. Timer 3, channel 4 input capture, output compare or pulse-width modulation (PWM). Remapped Timer 1, channel 3 complementary pulse-width modulation (PWM) output. | |
| GPIO / boot inputPort B bit 2. Acts as BOOT1 at reset when BOOT0 is high: low selects system memory, high selects SRAM. |
| After reset Port B bit 2 / boot selection input 1. Sampled with BOOT0 to select the boot memory. | |
| GPIOPort B bit 10. Configurable digital input or output. |
| Inter-Integrated Circuit (I²C) 2, open-drain clock line. Use an external pull-up. Universal synchronous/asynchronous receiver/transmitter (USART) 3, transmit data output. Remapped Timer 2, channel 3 input capture, output compare or pulse-width modulation (PWM). | |
| GPIOPort B bit 11. Configurable digital input or output. |
| Inter-Integrated Circuit (I²C) 2, open-drain data line. Use an external pull-up. Universal synchronous/asynchronous receiver/transmitter (USART) 3, receive data input. Remapped Timer 2, channel 4 input capture, output compare or pulse-width modulation (PWM). | |
| GroundDigital ground return. Connect every VSS pin. |
| — | |
| Supply inputMain digital supply. Connect every VDD pin. |
| — | |
| GPIOPort B bit 12. Configurable digital input or output. |
| Serial Peripheral Interface (SPI) 2, negative slave select (chip select), input in slave mode or input/output in master mode. Inter-Integrated Circuit (I²C) 2, System Management Bus (SMBus) alert line. Universal synchronous/asynchronous receiver/transmitter (USART) 3, synchronous clock output. Timer 1, break input for shutting off timer outputs. | |
| GPIOPort B bit 13. Configurable digital input or output. |
| Serial Peripheral Interface (SPI) 2, serial clock, output in master mode or input in slave mode. Universal synchronous/asynchronous receiver/transmitter (USART) 3, clear-to-send input. Timer 1, channel 1 complementary pulse-width modulation (PWM) output. | |
| GPIOPort B bit 14. Configurable digital input or output. |
| Serial Peripheral Interface (SPI) 2, master in, slave out: data from slave to master. Universal synchronous/asynchronous receiver/transmitter (USART) 3, request-to-send output. Timer 1, channel 2 complementary pulse-width modulation (PWM) output. | |
| GPIOPort B bit 15. Configurable digital input or output. |
| Serial Peripheral Interface (SPI) 2, master out, slave in: data from master to slave. Timer 1, channel 3 complementary pulse-width modulation (PWM) output. | |
| GPIOPort C bit 6. Configurable digital input or output. |
| Remapped Timer 3, channel 1 input capture, output compare or pulse-width modulation (PWM). | |
| GPIOPort C bit 7. Configurable digital input or output. |
| Remapped Timer 3, channel 2 input capture, output compare or pulse-width modulation (PWM). | |
| GPIOPort C bit 8. Configurable digital input or output. |
| Remapped Timer 3, channel 3 input capture, output compare or pulse-width modulation (PWM). | |
| GPIOPort C bit 9. Configurable digital input or output. |
| Remapped Timer 3, channel 4 input capture, output compare or pulse-width modulation (PWM). | |
| GPIOPort A bit 8. Configurable digital input or output. |
| Universal synchronous/asynchronous receiver/transmitter (USART) 1, synchronous clock output. Timer 1, channel 1 input capture, output compare or pulse-width modulation (PWM). Microcontroller clock output. | |
| GPIOPort A bit 9. Configurable digital input or output. |
| Universal synchronous/asynchronous receiver/transmitter (USART) 1, transmit data output. Timer 1, channel 2 input capture, output compare or pulse-width modulation (PWM). | |
| GPIOPort A bit 10. Configurable digital input or output. |
| Universal synchronous/asynchronous receiver/transmitter (USART) 1, receive data input. Timer 1, channel 3 input capture, output compare or pulse-width modulation (PWM). | |
| GPIO / USB D−Port A bit 11. USB Full Speed D−, CAN receive, USART1 CTS or TIM1 channel 4. |
| Universal synchronous/asynchronous receiver/transmitter (USART) 1, clear-to-send input. Controller Area Network (CAN) receive input. Connect to the receive-data output (RXD) of a CAN transceiver. Universal Serial Bus (USB), Full Speed negative data line (D−). Timer 1, channel 4 input capture, output compare or pulse-width modulation (PWM). | |
| GPIO / USB D+Port A bit 12. USB Full Speed D+, CAN transmit, USART1 RTS or TIM1 external trigger. |
| Universal synchronous/asynchronous receiver/transmitter (USART) 1, request-to-send output. Controller Area Network (CAN) transmit output. Connect to the transmit-data input (TXD) of a CAN transceiver. Universal Serial Bus (USB), Full Speed positive data line (D+). Pull up with 1.5 kΩ to 3.0–3.6 V. Timer 1, external trigger input. | |
| GPIO / debug I/OSWD data (SWDIO) or JTAG mode select (JTMS) after reset. Can be released for GPIO. |
| After reset Joint Test Action Group (JTAG) test mode select / Serial Wire Debug (SWD) bidirectional data line. | |
| GroundDigital ground return. Connect every VSS pin. |
| — | |
| Supply inputMain digital supply. Connect every VDD pin. |
| — | |
| GPIO / debug inputSWD clock (SWCLK) or JTAG clock (JTCK) after reset. Can be released for GPIO. |
| After reset JTAG test clock / Serial Wire Debug (SWD) clock input. | |
| GPIO / debug inputJTAG data input (JTDI) after reset. Can be released for GPIO, SPI1 chip select or TIM2 channel 1 / external trigger. |
| After reset JTAG test data input. Remapped Timer 2, channel 1 input capture, output compare or pulse-width modulation (PWM), or external trigger input. Serial Peripheral Interface (SPI) 1, negative slave select (chip select), input in slave mode or input/output in master mode. | |
| GPIOPort C bit 10. Configurable digital input or output. |
| Remapped Universal synchronous/asynchronous receiver/transmitter (USART) 3, transmit data output. | |
| GPIOPort C bit 11. Configurable digital input or output. |
| Remapped Universal synchronous/asynchronous receiver/transmitter (USART) 3, receive data input. | |
| GPIOPort C bit 12. Configurable digital input or output. |
| Remapped Universal synchronous/asynchronous receiver/transmitter (USART) 3, synchronous clock output. | |
| GPIOPort D bit 2. Configurable digital input or output. |
| Timer 3, external trigger input. | |
| GPIO / debug outputJTAG data output (JTDO) or trace output (TRACESWO). Can also carry SPI1 clock or TIM2 channel 2. |
| After reset JTAG test data output / Serial Wire Output (SWO) trace data output. Remapped Timer 2, channel 2 input capture, output compare or pulse-width modulation (PWM). Serial Peripheral Interface (SPI) 1, serial clock, output in master mode or input in slave mode. | |
| GPIO / debug inputJTAG reset (JNTRST) after reset. Can also carry SPI1 MISO or TIM3 channel 1. |
| After reset JTAG test reset input, active low. Remapped Timer 3, channel 1 input capture, output compare or pulse-width modulation (PWM). Serial Peripheral Interface (SPI) 1, master in, slave out: data from slave to master. | |
| GPIOPort B bit 5. Configurable digital input or output. |
| Inter-Integrated Circuit (I²C) 1, System Management Bus (SMBus) alert line. Remapped Timer 3, channel 2 input capture, output compare or pulse-width modulation (PWM). Serial Peripheral Interface (SPI) 1, master out, slave in: data from master to slave. | |
| GPIOPort B bit 6. Configurable digital input or output. |
| Inter-Integrated Circuit (I²C) 1, open-drain clock line. Use an external pull-up. Timer 4, channel 1 input capture, output compare or pulse-width modulation (PWM). Remapped Universal synchronous/asynchronous receiver/transmitter (USART) 1, transmit data output. | |
| GPIOPort B bit 7. Configurable digital input or output. |
| Inter-Integrated Circuit (I²C) 1, open-drain data line. Use an external pull-up. Timer 4, channel 2 input capture, output compare or pulse-width modulation (PWM). Remapped Universal synchronous/asynchronous receiver/transmitter (USART) 1, receive data input. | |
| Boot inputSampled at reset. Low selects user Flash. High selects system memory or SRAM according to BOOT1. |
| — | |
| GPIOPort B bit 8. Configurable digital input or output. |
| Timer 4, channel 3 input capture, output compare or pulse-width modulation (PWM). Remapped Inter-Integrated Circuit (I²C) 1, open-drain clock line. Use an external pull-up. Controller Area Network (CAN) receive input. Connect to the receive-data output (RXD) of a CAN transceiver. | |
| GPIOPort B bit 9. Configurable digital input or output. |
| Timer 4, channel 4 input capture, output compare or pulse-width modulation (PWM). Remapped Inter-Integrated Circuit (I²C) 1, open-drain data line. Use an external pull-up. Controller Area Network (CAN) transmit output. Connect to the transmit-data input (TXD) of a CAN transceiver. | |
| GroundDigital ground return. Connect every VSS pin. |
| — | |
| Supply inputMain digital supply. Connect every VDD pin. |
| — |
Compare variants
Cortex-M3Arm core
72 MHzMaximum core frequency
20 KBSRAM on both variants
2.0–3.6 VVDD operating voltage
The family supports USB Full Speed, CAN 2.0B, up to three USARTs, two SPI interfaces, and two I²C interfaces. See the pinout for signals available on each package.
Electrical reference tables
Electrical specifications for the pins and modes shown above. Source: ST DS5319 Rev 19.
Table 5 · PC13–PC15 output limits
| Parameter | Value and conditions |
|---|---|
| PC13–PC15 output speed | ≤ 2 MHzLoad capacitance ≤ 30 pF |
| PC13–PC15 output current | ≤ 3 mA sinkingDo not use as a current source. |
Table 9 · Supply and input voltage ranges
| Parameter | Value and conditions |
|---|---|
| Backup supply | 1.8–3.6 V |
| Digital input range | −0.3 V to VDD + 0.3 VStandard I/O |
| Analog supply | 2.0–3.6 VADC off. Use the same supply source as VDD. |
| Digital supply | 2.0–3.6 VRelative to VSS |
| Digital input range | −0.3 to 5.5 V5 V-tolerant I/O at 2.0 V < VDD ≤ 3.6 V |
| Digital input range | −0.3 to 5.2 V5 V-tolerant I/O at VDD = 2.0 V |
| BOOT0 input range | 0–5.5 V |
Table 20 · HSE bypass clock
| Parameter | Value and conditions |
|---|---|
| External clock LOW | VSS to 0.3 × VDD |
| External clock HIGH | 0.7 × VDD to VDD |
| HSE bypass clock frequency | 1–25 MHz |
Table 21 · LSE bypass clock
| Parameter | Value and conditions |
|---|---|
| External clock LOW | VSS to 0.3 × VDD |
| External clock HIGH | 0.7 × VDD to VDD |
Table 36 · Digital input thresholds and internal pulls
| Parameter | Value and conditions |
|---|---|
| Input LOW | ≤ 0.35 × VDD≤ 1.155 V at VDD = 3.3 V |
| Input HIGH | ≥ 0.65 × VDD≥ 2.145 V at VDD = 3.3 V |
| Internal pull-up or pull-down | 30–50 kΩ |
| Internal pulls above VDD + 0.3 V | Disable both pull-up and pull-down |
Table 37 · GPIO output levels
| Parameter | Value and conditions |
|---|---|
| Push-pull output LOW | ≤ 0.4 VWhen remapped to PD1 · At VDD = 3.3 V and 8 mA load |
| Push-pull output HIGH | ≥ 2.9 VWhen remapped to PD1 · At VDD = 3.3 V and 8 mA load |
| Push-pull output LOW | ≤ 0.4 VAt VDD = 3.3 V and 8 mA load |
| Push-pull output HIGH | ≥ 2.9 VAt VDD = 3.3 V and 8 mA load |
Table 39 · Reset input
| Parameter | Value and conditions |
|---|---|
| Reset input LOW | ≤ 0.8 V |
| Reset input HIGH | ≥ 2.0 V |
| Internal reset pull-up | 30–50 kΩ |
| Low pulse that passes the reset filter | ≥ 300 ns |
Table 45 · USB Full Speed supply
| Parameter | Value and conditions |
|---|---|
| USB Full Speed supply | 3.0–3.6 VVDD in USB mode. Use USB data-line signal levels. |
Table 47 · ADC input range
| Parameter | Value and conditions |
|---|---|
| ADC input range | VSSA to VDDA0–3.3 V at VDDA = 3.3 V. Analog mode, 12-bit ADC. |
| Analog supply | 2.4–3.6 VADC enabled. Use the same supply source as VDD. |
Figure 14 · Supply decoupling
| Parameter | Value and conditions |
|---|---|
| Bypass capacitors | 10 nF and 1 µFBetween VDDA and VSSA |
| Digital supply decoupling | 100 nF at each VDD pin |
| Bulk capacitor | 4.7 µF at VDD_3 |
Figure 31 · Reset capacitor
| Parameter | Value and conditions |
|---|---|
| Reset capacitor | 100 nFBetween NRST and ground |
Documentation and discussions
- Datasheet for STM32F103· ST DS5319 Rev 19 · PDF
- Reference manual for STM32F10xxx· ST RM0008 Rev 21 · PDF
- Custom STM32F103C8T6 board · Spark Logic
- STM32F103C8T6 power consumption · Spark Logic
