Generated by kicad-footprint-generator · KiCad file format 20260206
STM8S103F2P6
STMicroelectronics · Microcontrollers (MCU/MPU/SOC) · TSSOP-20
STM8S103F2P6 from STMicroelectronics, in a TSSOP-20. Pinout and pin descriptions extracted from the manufacturer datasheet (extract_pins, cross-checked by a second model); symbol, footprint, and 3D from KiCad-official CAD.
Pinout
| Pin | Name | Type | Function |
|---|---|---|---|
| 1 | PD4/BEEP/TIM2_CH1/UART1_CK | bidirectional | High-sink I/O port D4, also serving as BEEP output, Timer 2 channel 1 and UART1 clock. |
| 2 | PD5/AIN5/UART1_TX | bidirectional | High-sink I/O port D5, also serving as analog input 5 and UART1 data transmit. |
| 3 | PD6/AIN6/UART1_RX | bidirectional | High-sink I/O port D6, also serving as analog input 6 and UART1 data receive. |
| 4 | NRST | bidirectional | Reset pin (I/O) with internal reset function; reset state is the default after internal reset release. |
| 5 | PA1/OSCIN | bidirectional | Port A1 also used as resonator/crystal input; in Halt/Active-halt it is automatically set to input weak pull-up and cannot wake the device. |
| 6 | PA2/OSCOUT | bidirectional | Port A2 also used as resonator/crystal output. |
| 7 | VSS | power_in | Digital ground. |
| 8 | VCAP | passive | 1.8 V regulator capacitor connection. |
| 9 | VDD | power_in | Digital power supply; the device operates from 2.95 to 5.5 V. |
| 10 | PA3/TIM2_CH3/[SPI_NSS] | bidirectional | High-sink I/O port A3, also Timer 2 channel 3; SPI master/slave select is available via option-bit remapping AFR1. |
| 11 | PB5/I2C_SDA/[TIM1_BKIN] | bidirectional | True open-drain I/O port B5 used as I2C data; Timer 1 break input is available via remapping AFR4. |
| 12 | PB4/I2C_SCL | bidirectional | True open-drain I/O port B4 used as I2C clock; ADC external trigger is available via remapping AFR4. |
| 13 | PC3/TIM1_CH3/[TLI]/[TIM1_CH1N] | bidirectional | High-sink I/O port C3, also Timer 1 channel 3; top level interrupt (AFR3) and Timer 1 inverted channel 1 (AFR7) are available via remapping. |
| 14 | PC4/CLK_CCO/TIM1_CH4/AIN2/[TIM1_CH2N] | bidirectional | High-sink I/O port C4, also configurable clock output, Timer 1 channel 4 and analog input 2; Timer 1 inverted channel 2 is available via remapping AFR7. |
| 15 | PC5/SPI_SCK/[TIM2_CH1] | bidirectional | High-sink I/O port C5, also SPI clock; Timer 2 channel 1 is available via remapping AFR0. |
| 16 | PC6/SPI_MOSI/[TIM1_CH1] | bidirectional | High-sink I/O port C6, also SPI master out/slave in; Timer 1 channel 1 is available via remapping AFR0. |
| 17 | PC7/SPI_MISO/[TIM1_CH2] | bidirectional | High-sink I/O port C7, also SPI master in/slave out; Timer 1 channel 2 is available via remapping AFR0. |
| 18 | PD1/SWIM | bidirectional | High-sink I/O port D1 used as SWIM data interface; it is in input pull-up during the reset phase and after internal reset release. |
| 19 | PD2/AIN3/[TIM2_CH3] | bidirectional | High-sink I/O port D2, also analog input 3; Timer 2 channel 3 is available via remapping AFR1. |
| 20 | PD3/AIN4/TIM2_CH2/ADC_ETR | bidirectional | High-sink I/O port D3, also analog input 4, Timer 2 channel 2 and ADC external trigger. |
Key specifications
| Parameter | Value |
|---|---|
| Manufacturer | STMicroelectronics |
| Package | TSSOP-20 |
| Category | Embedded Processors & Controllers |
| Pins | 20 |
Electrical characteristics
Limits as printed in the datasheet (page.json metadata.characteristics carries them as data).
| Parameter | Symbol | Min | Typ | Max | Unit | Conditions | Page |
|---|---|---|---|---|---|---|---|
| Supply voltage | VDDx - VSS | -0.3 | 6.5 | V | 51 | ||
| Input voltage on true open drain pins | VIN | 6.5 | V | 51 | |||
| Variations between different power pins | /VDDx - VDD/ | 50 | mV | 51 | |||
| Variations between all the different ground pins | /VSSx - VSS/ | 50 | mV | 51 | |||
| Total current into VDD power lines (source) | IVDD | 100 | mA | 51 | |||
| Total current out of VSS ground lines (sink) | IVSS | 80 | mA | 51 | |||
| Output current sunk by any I/O and control pin | IIO | 20 | mA | 51 | |||
| Output current source by any I/Os and control pin | IIO | -20 | mA | 51 | |||
| Injected current on NRST pin | IINJ(PIN) | -4 | 4 | mA | 52 | ||
| Total injected current (sum of all I/O and control pins) | ΣIINJ | -20 | 20 | mA | 52 | ||
| Storage temperature range | TSTG | -65 | 150 | °C | 52 | ||
| Maximum junction temperature | TJ | 150 | °C | 52 | |||
| Internal CPU clock frequency | fCPU | 0 | 16 | MHz | 52 | ||
| Standard operating voltage | VDD | 2.95 | 5.5 | V | 52 | ||
| CEXT: capacitance of external capacitor | VCAP | 470 | 3300 | nF | 52 | ||
| ESR of external capacitor | ESR | 0.3 | Ω | at 1 MHz | 52 | ||
| ESL of external capacitor | ESL | 15 | nH | 52 | |||
| Power dissipation TSSOP20 | PD | 238 | mW | at TA = 75 °C for suffix 6 | 52 | ||
| Ambient temperature for suffix 6 version | TA | -40 | 85 | °C | 52 | ||
| Junction temperature range suffix 6 version | TJ | -40 | 105 | °C | 52 | ||
| Reset release delay | tTEMP | 1.7 | ms | VDD rising | 54 | ||
| Power-on reset threshold | VIT+ | 2.6 | 2.7 | 2.85 | V | 54 | |
| Brown-out reset threshold | VIT- | 2.5 | 2.65 | 2.8 | V | 54 | |
| Brown-out reset hysteresis | VHYS(BOR) | 70 | mV | 54 | |||
| Supply current in Run mode, code executed from Flash, HSI RC osc | IDD(RUN) | 3.7 | 4.5 | mA | VDD = 5 V, fCPU = fMASTER = 16 MHz | 56 | |
| Supply current in Run mode, code executed from Flash, HSE user ext. clock | IDD(RUN) | 4.3 | 4.75 | mA | VDD = 5 V, fCPU = fMASTER = 16 MHz | 56 | |
| Supply current in Run mode, code executed from Flash, HSI RC osc | IDD(RUN) | 3.9 | 4.7 | mA | VDD = 3.3 V, fCPU = fMASTER = 16 MHz | 56 | |
| Supply current in wait mode, HSI RC osc | IDD(WFI) | 0.89 | 1.1 | mA | VDD = 5 V, fCPU = fMASTER = 16 MHz | 57 | |
| HSI oscillator power consumption | IDD(HSI) | 170 | 250 | µA | 67 | ||
| External high speed oscillator frequency | fHSE | 1 | 16 | MHz | 65 | ||
| Recommended load capacitance | C | 20 | pF | 65 | |||
| Startup time | tSU(HSE) | 1 | ms | VDD is stabilized | 65 | ||
| Frequency | fHSI | 16 | MHz | 67 | |||
| Accuracy of HSI oscillator (factory calibrated) | ACCHS | -1 | 1 | % | VDD = 5 V, TA = 25 °C | 67 | |
| Accuracy of HSI oscillator (factory calibrated) | ACCHS | -2 | 2 | % | VDD = 5 V, -25°C ≤ TA ≤ 85 °C | 67 | |
| Accuracy of HSI oscillator (factory calibrated) | ACCHS | -3 | 3 | % | 2.95 V ≤ VDD ≤ 5.5 V, -40°C ≤ TA ≤ 125 °C | 67 | |
| Frequency | fLSI | 110 | 128 | 150 | kHz | 68 | |
| Operating voltage (all modes, execution/write/erase) | VDD | 2.95 | 5.5 | V | fCPU ≤ 16 MHz | 69 | |
| Standard programming time (including erase) for byte/word/block | tprog | 6.6 | ms | 1 byte/4 byte/64 byte | 69 | ||
| Erase time for 1 block (64 byte) | terase | 3.33 | ms | 69 | |||
| Data retention (program and data memory) after 10k erase/write cycles | tRET | 20 | year | at TA = +55 °C | 69 | ||
| Pull-up resistor | Rpu | 30 | 55 | 80 | kΩ | VDD = 5 V, VIN = VSS | 70 |
| Digital input leakage current | Ilkg | -1 | 1 | µA | VSS ≤ VIN ≤ VDD | 70 | |
| Output low level with 8 pins sunk | VOL | 2 | V | IIO = 10 mA, VDD = 5 V | 71 | ||
| Output low level with 4 pins sunk | VOL | 1 | V | IIO = 4 mA, VDD = 3.3 V | 71 | ||
| Output high level with 8 pins sourced | VOH | 2.8 | V | IIO = 10 mA, VDD = 5 V | 71 | ||
| Output high level with 4 pins sourced | VOH | 2.1 | V | IIO = 4 mA, VDD = 3.3 V | 71 | ||
| Output low level with 8 pins sunk (high sink ports) | VOL | 0.8 | V | IIO = 10 mA, VDD = 5 V | 72 | ||
| Output high level with 8 pins sourced (high sink ports) | VOH | 4 | V | IIO = 10 mA, VDD = 5 V | 72 | ||
| NRST output low level voltage | VOL(NRST) | 0.5 | V | IOL = 3 mA | 75 | ||
| NRST pull-up resistor | RPU(NRST) | 30 | 55 | 80 | kΩ | 75 | |
| NRST input filtered pulse | tIFP(NRST) | 75 | ns | 75 | |||
| SPI clock frequency master mode | fSCK | 0 | 8 | MHz | Master mode | 77 | |
| SPI clock frequency slave mode | fSCK | 0 | 7 | MHz | Slave mode | 77 | |
| SCL clock low time (standard mode I2C) | tw(SCLL) | 4.7 | µs | Standard mode I2C | 81 | ||
| ADC clock frequency | fADC | 1 | 4 | MHz | VDD = 2.95 to 5.5 V | 82 | |
| ADC clock frequency | fADC | 1 | 6 | MHz | VDD = 4.5 to 5.5 V | 82 | |
| Thermal resistance junction-ambient TSSOP20 - 4.4mm | ΘJA | 84 | °C/W | JEDEC JESD51-2, 4-layer PCB, natural convection | 106 |
CAD (KiCad official)
- Symbol:
STM8S103F2P6 - Footprint:
Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm - 3D model: TSSOP-20 (KiCad packages3D, STEP)
- 3D model files:
stm8s103f2p6-etched.step/stm8s103f2p6-etched.glbcarry the MPN laser-etched on the die in a toggleableAdom.LaserEtchgroup (Fusion-ready);stm8s103f2p6.step/stm8s103f2p6.glbare the bare package body.
Provenance
Data extracted from the manufacturer datasheet, not a distributor listing:
- Datasheet: STMicroelectronics datasheet (121 pp, sha256
ac23789ac0a2f408, retrieved 2026-11-05, tier: manufacturer) - Extractor: parts-factory
2.0.0/extract_pins 0.3, primaryclaude-haiku-5-5(text), consensusclaude-sonnet-5-5(agreed), guards: pin_guards 0.1: passed. Pins are checked against the footprint pad set and their cited datasheet pages before publish. - CAD: KiCad official libraries (CC-BY-SA 4.0).