component
STM8S003F3P6
Public Made by Adomby adom
STMicroelectronics Microcontrollers (MCU/MPU/SOC), TSSOP-20. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.
Also listed as STM8S003F3P6TR
← Commit history
README.mdadded+56@@ -0,0 +1,56 @@+# STM8S003F3P6++**STMicroelectronics** · Microcontrollers (MCU/MPU/SOC) · TSSOP-20++STM8S003F3P6 from STMicroelectronics, in a TSSOP-20. Pinout and pin descriptions extracted from the manufacturer datasheet by ds2sf; symbol, footprint, and 3D from KiCad-official CAD.++## Pinout++| Pin | Name | Type | Function |+|---|---|---|---|+| 1 | PD4 | bidirectional | Port D4 GPIO with high-sink output, alternate functions: Timer 2 channel 1, BEEP output, UART1 clock. |+| 2 | PD5 | bidirectional | Port D5 GPIO with high-sink output, alternate functions: analog input 5, UART1 transmit data. |+| 3 | PD6 | bidirectional | Port D6 GPIO with high-sink output, alternate functions: analog input 6, UART1 receive data. |+| 4 | NRST | input | Reset input pin with open-drain output capability and internal pull-up resistor. |+| 5 | PA1 | bidirectional | Port A1 GPIO, alternate function: OSCIN (oscillator crystal input). |+| 6 | PA2 | bidirectional | Port A2 GPIO, alternate function: OSCOUT (oscillator crystal output). |+| 7 | VSS | power_in | Digital ground reference. |+| 8 | VCAP | power_in | 1.8 V internal regulator decoupling capacitor pin; requires 470-3300 nF external capacitor with ESR ≤ 15 Ω. |+| 9 | VDD | power_in | Digital power supply; operating voltage 2.95 to 5.5 V. |+| 10 | PA3 | bidirectional | Port A3 GPIO with high-sink output, alternate functions: Timer 2 channel 3, SPI master/slave select (AFR1 remapping). |+| 11 | PB5 | bidirectional | Port B5 true open-drain GPIO, alternate functions: I2C SDA (data), Timer 1 break input (AFR4 remapping). |+| 12 | PB4 | bidirectional | Port B4 true open-drain GPIO, alternate functions: I2C SCL (clock), ADC external trigger (AFR4 remapping). |+| 13 | PC3 | bidirectional | Port C3 GPIO with high-sink output, alternate functions: Timer 1 channel 3, top level interrupt, Timer 1 inverted channel 1. |+| 14 | PC4 | bidirectional | Port C4 GPIO with high-sink output, alternate functions: Timer 1 channel 4, configurable clock output, analog input 2, Timer 1 inverted channel 2. |+| 15 | PC5 | bidirectional | Port C5 GPIO with high-sink output, alternate functions: SPI clock, Timer 2 channel 1 (AFR0 remapping). |+| 16 | PC6 | bidirectional | Port C6 GPIO with high-sink output, alternate functions: SPI MOSI (master out/slave in), Timer 1 channel 1 (AFR0 remapping). |+| 17 | PC7 | bidirectional | Port C7 GPIO with high-sink output, alternate functions: SPI MISO (master in/slave out), Timer 1 channel 2 (AFR0 remapping). |+| 18 | PD1 | bidirectional | Port D1 GPIO with high-sink output, alternate function: SWIM (single-wire interface module) data interface. |+| 19 | PD2 | bidirectional | Port D2 GPIO with high-sink output, alternate functions: analog input 3, Timer 2 channel 3 (AFR1 remapping). |+| 20 | PD3 | bidirectional | Port D3 GPIO with high-sink output, alternate functions: analog input 4, Timer 2 channel 2, ADC external trigger. |++## Key specifications++| Parameter | Value |+|---|---|+| Manufacturer | STMicroelectronics |+| Package | TSSOP-20 |+| Category | Embedded Processors & Controllers |+| Pins | 20 |++## CAD (KiCad official)++- Symbol: `STM8S003F3P6`+- Footprint: `Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm`+- 3D model: TSSOP-20 (KiCad packages3D, STEP)+- 3D model files: `stm8s003f3p6-etched.step` / `stm8s003f3p6-etched.glb` carry the MPN laser-etched on the die in a toggleable `Adom.LaserEtch` group (Fusion-ready); `stm8s003f3p6.step` / `stm8s003f3p6.glb` are the bare package body.++## Provenance++Data extracted from the manufacturer datasheet, not a distributor listing:++- **Datasheet:** [STMicroelectronics datasheet](https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8579708309418328064) (100 pp, sha256 `79e0b6f021db8416`, retrieved 2026-09-23, tier: lcsc)+- **Extractor:** parts-factory `2.0.0` / `extract_pins 0.2`, primary `claude-haiku-4-5-20251001` (text), consensus `claude-sonnet-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).++[Datasheet PDF](docs/stm8s003f3p6-datasheet.pdf)
page.jsonadded+215@@ -0,0 +1,215 @@+{+ "slug": "stm8s003f3p6",+ "version": "0.1.0",+ "type": "component",+ "description": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), TSSOP-20. Datasheet-verified pinout, KiCad symbol/footprint/3D.",+ "tags": [+ "component",+ "embedded processors & controllers",+ "stm8s003f3p6",+ "factory-2.0.0",+ "extractor-text"+ ],+ "dependencies": {},+ "hero": {+ "type": "image",+ "path": "docs/hero.png"+ },+ "files": [+ "page.json",+ "README.md",+ "stm8s003f3p6.kicad_sym",+ "stm8s003f3p6.kicad_mod",+ "stm8s003f3p6.glb",+ "stm8s003f3p6.step",+ "stm8s003f3p6.lbr",+ "docs/hero.png",+ "docs/stm8s003f3p6-datasheet.pdf",+ "viewers/symbol.html",+ "viewers/footprint.html"+ ],+ "component": {+ "mpn": "STM8S003F3P6",+ "manufacturer": "STMicroelectronics",+ "package": "TSSOP-20",+ "pin_count": 20,+ "category": "Embedded Processors & Controllers",+ "subcategory": "Microcontrollers (MCU/MPU/SOC)",+ "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8579708309418328064",+ "parts": {+ "symbol": "stm8s003f3p6.kicad_sym",+ "footprint": "stm8s003f3p6.kicad_mod",+ "model_3d": "stm8s003f3p6-etched.glb",+ "model_3d_plain": "stm8s003f3p6.glb",+ "model_3d_step": "stm8s003f3p6-etched.step",+ "model_3d_step_plain": "stm8s003f3p6.step",+ "lbr": "stm8s003f3p6.lbr"+ },+ "distributor_links": {+ "lcsc": "C18615"+ },+ "pins": [+ {+ "number": "1",+ "name": "PD4",+ "type": "bidirectional",+ "description": "Port D4 GPIO with high-sink output, alternate functions: Timer 2 channel 1, BEEP output, UART1 clock."+ },+ {+ "number": "2",+ "name": "PD5",+ "type": "bidirectional",+ "description": "Port D5 GPIO with high-sink output, alternate functions: analog input 5, UART1 transmit data."+ },+ {+ "number": "3",+ "name": "PD6",+ "type": "bidirectional",+ "description": "Port D6 GPIO with high-sink output, alternate functions: analog input 6, UART1 receive data."+ },+ {+ "number": "4",+ "name": "NRST",+ "type": "input",+ "description": "Reset input pin with open-drain output capability and internal pull-up resistor."+ },+ {+ "number": "5",+ "name": "PA1",+ "type": "bidirectional",+ "description": "Port A1 GPIO, alternate function: OSCIN (oscillator crystal input)."+ },+ {+ "number": "6",+ "name": "PA2",+ "type": "bidirectional",+ "description": "Port A2 GPIO, alternate function: OSCOUT (oscillator crystal output)."+ },+ {+ "number": "7",+ "name": "VSS",+ "type": "power_in",+ "description": "Digital ground reference."+ },+ {+ "number": "8",+ "name": "VCAP",+ "type": "power_in",+ "description": "1.8 V internal regulator decoupling capacitor pin; requires 470-3300 nF external capacitor with ESR ≤ 15 Ω."+ },+ {+ "number": "9",+ "name": "VDD",+ "type": "power_in",+ "description": "Digital power supply; operating voltage 2.95 to 5.5 V."+ },+ {+ "number": "10",+ "name": "PA3",+ "type": "bidirectional",+ "description": "Port A3 GPIO with high-sink output, alternate functions: Timer 2 channel 3, SPI master/slave select (AFR1 remapping)."+ },+ {+ "number": "11",+ "name": "PB5",+ "type": "bidirectional",+ "description": "Port B5 true open-drain GPIO, alternate functions: I2C SDA (data), Timer 1 break input (AFR4 remapping)."+ },+ {+ "number": "12",+ "name": "PB4",+ "type": "bidirectional",+ "description": "Port B4 true open-drain GPIO, alternate functions: I2C SCL (clock), ADC external trigger (AFR4 remapping)."+ },+ {+ "number": "13",+ "name": "PC3",+ "type": "bidirectional",+ "description": "Port C3 GPIO with high-sink output, alternate functions: Timer 1 channel 3, top level interrupt, Timer 1 inverted channel 1."+ },+ {+ "number": "14",+ "name": "PC4",+ "type": "bidirectional",+ "description": "Port C4 GPIO with high-sink output, alternate functions: Timer 1 channel 4, configurable clock output, analog input 2, Timer 1 inverted channel 2."+ },+ {+ "number": "15",+ "name": "PC5",+ "type": "bidirectional",+ "description": "Port C5 GPIO with high-sink output, alternate functions: SPI clock, Timer 2 channel 1 (AFR0 remapping)."+ },+ {+ "number": "16",+ "name": "PC6",+ "type": "bidirectional",+ "description": "Port C6 GPIO with high-sink output, alternate functions: SPI MOSI (master out/slave in), Timer 1 channel 1 (AFR0 remapping)."+ },+ {+ "number": "17",+ "name": "PC7",+ "type": "bidirectional",+ "description": "Port C7 GPIO with high-sink output, alternate functions: SPI MISO (master in/slave out), Timer 1 channel 2 (AFR0 remapping)."+ },+ {+ "number": "18",+ "name": "PD1",+ "type": "bidirectional",+ "description": "Port D1 GPIO with high-sink output, alternate function: SWIM (single-wire interface module) data interface."+ },+ {+ "number": "19",+ "name": "PD2",+ "type": "bidirectional",+ "description": "Port D2 GPIO with high-sink output, alternate functions: analog input 3, Timer 2 channel 3 (AFR1 remapping)."+ },+ {+ "number": "20",+ "name": "PD3",+ "type": "bidirectional",+ "description": "Port D3 GPIO with high-sink output, alternate functions: analog input 4, Timer 2 channel 2, ADC external trigger."+ }+ ],+ "provenance": {+ "extractor": "extract_pins 0.2",+ "factory_chain": {+ "factory": "2.0.0",+ "extractor": "extract_pins 0.2",+ "primary_model": "claude-haiku-4-5-20251001",+ "primary_mode": "text",+ "consensus_model": "claude-sonnet-5",+ "consensus": "agreed",+ "guards": "pin_guards 0.1: passed",+ "guard_notes": [+ "extractor flagged: NRST classified as input; though datasheet lists open-drain output capability for external reset, pr; PB4 and PB5 are true open-drain outputs; may warrant tri_state classification if ERC enforces output"+ ],+ "pages_sent": 100,+ "cost_usd": 0.6949,+ "at": "2026-09-23T05:45:06"+ },+ "datasheet": {+ "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8579708309418328064",+ "pages": 100,+ "sha256": "79e0b6f021db8416",+ "source_tier": "lcsc"+ },+ "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"+ }+ },+ "visibility": "public",+ "org": "adom",+ "author": {+ "name": "Ray",+ "email": "[email protected]"+ }+}