component
STM8S003F3
Public Made by Adomby adom
ST 8-bit STM8 value-line MCU, TSSOP-20. 16 MHz, 8 KB flash, 1 KB RAM, 128 B EEPROM. Ultra-low-cost. Datasheet-verified.
main
Ray
stm8s003f3: component.models_3d pose record per STEP (Z-up, seated z=0, pad-centre origin, identity binding)
09048e0
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
{
"schema_version": 1,
"type": "component",
"slug": "stm8s003f3",
"title": "STM8S003F3",
"brief": "ST 8-bit STM8 value-line MCU, TSSOP-20. 16 MHz, 8 KB flash, 1 KB RAM, 128 B EEPROM. Ultra-low-cost. Datasheet-verified.",
"version": "0.1.0",
"license": "CC-BY-SA-4.0",
"tags": [
"component",
"microcontroller",
"mcu",
"stm8",
"8-bit",
"tssop-20",
"stmicroelectronics"
],
"component": {
"mpn": "STM8S003F3",
"manufacturer": "STMicroelectronics",
"package": "TSSOP-20",
"pin_count": 20,
"category": "Microcontroller",
"subcategory": "8-bit STM8 MCU (value line)",
"datasheet": "https://www.st.com/resource/en/datasheet/stm8s003f3.pdf",
"parts": {
"symbol": "stm8s003f3.kicad_sym",
"footprint": "stm8s003f3.kicad_mod",
"model_3d": "stm8s003f3-etched.glb",
"model_3d_plain": "stm8s003f3.glb",
"lbr": "stm8s003f3.lbr",
"model_3d_step": "stm8s003f3-etched.step",
"model_3d_step_plain": "stm8s003f3.step"
},
"distributor_links": {},
"pins": [
{
"number": "1",
"name": "PD4/BEEP/TIM2_CH1/UART1_CK",
"type": "bidirectional",
"description": "Port D bit 4. High-sink GPIO (fast/slow programmable, floating after reset). Muxed default alternate functions: TIM2 channel 1, BEEP output, and UART1 synchronous clock."
},
{
"number": "2",
"name": "PD5/AIN5/UART1_TX",
"type": "bidirectional",
"description": "Port D bit 5. High-sink GPIO. Muxed with ADC analog input 5 and UART1 data transmit."
},
{
"number": "3",
"name": "PD6/AIN6/UART1_RX",
"type": "bidirectional",
"description": "Port D bit 6. High-sink GPIO. Muxed with ADC analog input 6 and UART1 data receive."
},
{
"number": "4",
"name": "NRST",
"type": "bidirectional",
"description": "Active-low bidirectional reset with integrated weak pull-up. Asserted low by the internal POR/BOR, watchdog or an external reset source; can also be driven low externally to reset the device."
},
{
"number": "5",
"name": "PA1/OSCIN",
"type": "bidirectional",
"description": "Port A bit 1 (slow O1 output, floating after reset). Doubles as the HSE crystal/resonator input (OSCIN) or external clock input."
},
{
"number": "6",
"name": "PA2/OSCOUT",
"type": "bidirectional",
"description": "Port A bit 2 (slow O1 output, floating after reset). Doubles as the HSE crystal/resonator output (OSCOUT)."
},
{
"number": "7",
"name": "VSS",
"type": "power_in",
"description": "Digital ground return for VDD."
},
{
"number": "8",
"name": "VCAP",
"type": "passive",
"description": "Output of the internal 1.8 V core regulator. Requires an external stabilization capacitor to VSS (see Section 9.3.1 VCAP external capacitor). Do not drive externally."
},
{
"number": "9",
"name": "VDD",
"type": "power_in",
"description": "Main digital power supply, 2.95 V to 5.5 V operating range. Decouple locally to VSS."
},
{
"number": "10",
"name": "PA3/TIM2_CH3/[SPI_NSS]",
"type": "bidirectional",
"description": "Port A bit 3. High-sink GPIO. Default alternate function: TIM2 channel 3. When alternate-function remap bit AFR1 is programmed the pin instead becomes the SPI master/slave-select input (SPI_NSS)."
},
{
"number": "11",
"name": "PB5/I2C_SDA/[TIM1_BKIN]",
"type": "bidirectional",
"description": "Port B bit 5. True open-drain output (no P-buffer, no weak pull-up, no protection diode to VDD); an external pull-up is required. Default alternate function: I2C SDA data line. When AFR4 is programmed the pin becomes TIM1 break input (TIM1_BKIN)."
},
{
"number": "12",
"name": "PB4/I2C_SCL/[ADC_ETR]",
"type": "bidirectional",
"description": "Port B bit 4. True open-drain output (no P-buffer, no weak pull-up, no protection diode to VDD); external pull-up required. Default alternate function: I2C SCL clock. When AFR4 is programmed the pin becomes ADC external trigger (ADC_ETR)."
},
{
"number": "13",
"name": "PC3/TIM1_CH3/[TLI]/[TIM1_CH1N]",
"type": "bidirectional",
"description": "Port C bit 3. High-sink GPIO. Default alternate function: TIM1 channel 3. Remap options: top-level interrupt (TLI) via AFR3, or TIM1 complementary channel 1 (TIM1_CH1N) via AFR7."
},
{
"number": "14",
"name": "PC4/CLK_CCO/TIM1_CH4/AIN2/[TIM1_CH2N]",
"type": "bidirectional",
"description": "Port C bit 4. High-sink GPIO. Default alternate functions: configurable clock output (CCO), TIM1 channel 4, and ADC analog input 2. When AFR7 is programmed the pin becomes TIM1 complementary channel 2 (TIM1_CH2N)."
},
{
"number": "15",
"name": "PC5/SPI_SCK/[TIM2_CH1]",
"type": "bidirectional",
"description": "Port C bit 5. High-sink GPIO. Default alternate function: SPI clock (SCK). When AFR0 is programmed the pin becomes TIM2 channel 1."
},
{
"number": "16",
"name": "PC6/SPI_MOSI/[TIM1_CH1]",
"type": "bidirectional",
"description": "Port C bit 6. High-sink GPIO. Default alternate function: SPI master-out/slave-in (MOSI). When AFR0 is programmed the pin becomes TIM1 channel 1."
},
{
"number": "17",
"name": "PC7/SPI_MISO/[TIM1_CH2]",
"type": "bidirectional",
"description": "Port C bit 7. High-sink GPIO. Default alternate function: SPI master-in/slave-out (MISO). When AFR0 is programmed the pin becomes TIM1 channel 2."
},
{
"number": "18",
"name": "PD1/SWIM",
"type": "bidirectional",
"description": "Port D bit 1. High-sink GPIO with fast/slow programmability (O4). SWIM single-wire debug and in-circuit programming data pin. In input pull-up during reset phase and after internal reset release to allow SWIM entry."
},
{
"number": "19",
"name": "PD2/AIN3/[TIM2_CH3]",
"type": "bidirectional",
"description": "Port D bit 2. High-sink GPIO. Default alternate function: ADC analog input 3. When AFR1 is programmed the pin becomes TIM2 channel 3."
},
{
"number": "20",
"name": "PD3/AIN4/TIM2_CH2/ADC_ETR",
"type": "bidirectional",
"description": "Port D bit 3. High-sink GPIO. Default alternate functions: ADC analog input 4, TIM2 channel 2, and ADC external trigger (ADC_ETR)."
}
],
"provenance": {
"extractor": "ds2sf",
"datasheet": {
"url": "https://www.st.com/resource/en/datasheet/stm8s003f3.pdf",
"pages": 103,
"sha256": "1a0775fefcda1553",
"source_tier": "mfr"
},
"cad": "KiCad official (CC-BY-SA 4.0)",
"pins": {
"total": 20,
"described": 20,
"cites_pages": true,
"refuses_to_fabricate": true
}
},
"viewers": {
"symbol": "viewers/symbol.html",
"footprint": "viewers/footprint.html"
},
"models_3d": [
{
"file": "stm8s003f3.step",
"role": "plain",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
6.4,
6.5,
1.2
],
"zmin_mm": 0,
"centre_offset_mm": 0,
"footprint_binding": "identity",
"sha256": "97339947f3a7196470ec2f1d9f9b92bb2fc2ab66ad53be0cf105192585ef3c9a",
"checked": "2026-10-07",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
},
{
"file": "stm8s003f3-etched.step",
"role": "eda",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
6.4,
6.5,
1.2
],
"zmin_mm": 0,
"centre_offset_mm": 0,
"footprint_binding": "identity",
"sha256": "5e346ef51e9d25b70fb042eeb6ec35dc73e4230d703a8f085093b6ebd37afd8d",
"checked": "2026-10-07",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
}
]
},
"metadata": {
"specs": {
"Core": "8-bit STM8",
"Max clock": "16 MHz",
"Flash": "8 KB",
"RAM": "1 KB",
"EEPROM": "128 B (100k cycles)",
"GPIO": "16",
"ADC": "10-bit (5 ch)",
"Serial": "UART + SPI + I2C",
"Supply voltage": "2.95-5.5 V",
"Package": "TSSOP-20"
}
},
"sections": [
"hero",
"viewers",
"readme",
"breadcrumbs",
"info"
],
"discovery_triggers": [
"stm8s003f3",
"stm8s003",
"cheap mcu",
"8-bit stm8",
"20 cent microcontroller"
],
"discovery_pitch": "STM8S003F3 8-bit STM8 value-line MCU (TSSOP-20) with datasheet-verified pinout, KiCad symbol/footprint/3D, and full provenance.",
"author": {
"name": "Ray"
},
"dependencies": {},
"hero": {
"type": "image",
"path": "docs/hero.png"
},
"files": [
"page.json",
"README.md",
"stm8s003f3.kicad_sym",
"stm8s003f3.kicad_mod",
"stm8s003f3.glb",
"stm8s003f3.lbr",
"docs/hero.png",
"docs/stm8s003f3-datasheet.pdf",
"viewers/symbol.html",
"viewers/footprint.html",
"stm8s003f3-etched.step"
],
"variants": [
{
"mpn": "STM8S003F3P6 (TSSOP-20)",
"kind": "packaging"
},
{
"mpn": "STM8S003F3U6 (UFQFPN-20)",
"kind": "packaging"
}
]
}