← Commit history

Initial commit: component/stm8s103f2p6tr

Ray ·fc3fe80881 ·6h ago
2 files changed +328
README.mdadded+56
@@ -0,0 +1,56 @@+# STM8S103F2P6TR++**STMicroelectronics** · Microcontrollers (MCU/MPU/SOC) · TSSOP-20++STM8S103F2P6TR 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 | bidirectional | Timer 2 channel 1 / BEEP output / UART1 clock; general-purpose I/O with high sink output capability (HS), output speed O3. |+| 2 | PD5 | bidirectional | UART1 transmit data output (AIN5) / analog input 5; general-purpose I/O with high sink capability (HS), output speed O3. |+| 3 | PD6 | bidirectional | UART1 receive data input (AIN6) / analog input 6; general-purpose I/O with high sink capability (HS), output speed O3. |+| 4 | NRST | input | External reset input pin; active low resets the device with internal weak pull-up resistor. |+| 5 | PA1 | input | Oscillator crystal input (OSCIN) or general-purpose I/O; operates at 1.8 to 5.5 V with output speed O1. |+| 6 | PA2 | output | Oscillator crystal output (OSCOUT) or general-purpose I/O; operates at 1.8 to 5.5 V with output speed O1. |+| 7 | VSS | power_in | Digital ground reference (0 V). |+| 8 | VCAP | passive | 1.8 V internal regulator power supply bypass capacitor; requires 1 µF to 10 µF ceramic capacitor. |+| 9 | VDD | power_in | Positive digital power supply pin; operating voltage range 2.95 to 5.5 V. |+| 10 | PA3 | bidirectional | Timer 2 channel 3 / SPI slave select (NSS) [AFR1 remapping]; general-purpose I/O with high sink capability (HS), output speed O3. |+| 11 | PB5 | bidirectional | I²C data line (I²C_SDA) with true open-drain output / Timer 1 break input (TIM1_BKIN) [AFR4 remapping]; output speed O1 with true open drain. |+| 12 | PB4 | bidirectional | I²C clock line (I²C_SCL) with true open-drain output / ADC external trigger (ADC_ETR) [AFR4 remapping]; output speed O1 with true open drain. |+| 13 | PC3 | bidirectional | Timer 1 channel 3 output / top-level interrupt (TLI) [AFR3 remapping] / Timer 1 channel 1N complementary output [AFR7 remapping]; general-purpose I/O with high sink capability (HS), output speed O3. |+| 14 | PC4 | bidirectional | Timer 1 channel 4 output / configurable clock output (CLK_CCO) / analog input 2 (AIN2) / Timer 1 channel 2N complementary output [AFR7 remapping]; general-purpose I/O with high sink capability (HS), output speed O3. |+| 15 | PC5 | bidirectional | SPI clock (SPI_SCK) / Timer 2 channel 1 output [AFR0 remapping]; general-purpose I/O with high sink capability (HS), output speed O3. |+| 16 | PC6 | bidirectional | SPI master-out/slave-in (SPI_MOSI) / Timer 1 channel 1 output [AFR0 remapping]; general-purpose I/O with high sink capability (HS), output speed O3. |+| 17 | PC7 | bidirectional | SPI master-in/slave-out (SPI_MISO) / Timer 1 channel 2 output [AFR0 remapping]; general-purpose I/O with high sink capability (HS), output speed O3. |+| 18 | PD1 | bidirectional | SWIM (single-wire interface module) data interface for on-chip debugging and programming; weak pull-up during reset phase; general-purpose I/O with high sink capability (HS), output speed O4. |+| 19 | PD2 | bidirectional | Analog input 3 (AIN3) / Timer 2 channel 3 output [AFR1 remapping]; general-purpose I/O with high sink capability (HS), output speed O3. |+| 20 | PD3 | bidirectional | Analog input 4 (AIN4) / Timer 2 channel 2 output / ADC external trigger input (ADC_ETR); general-purpose I/O with high sink capability (HS), output speed O3. |++## Key specifications++| Parameter | Value |+|---|---|+| Manufacturer | STMicroelectronics |+| Package | TSSOP-20 |+| Category | Embedded Processors & Controllers |+| Pins | 20 |++## CAD (KiCad official)++- Symbol: `STM8S103F2P6TR`+- Footprint: `Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm`+- 3D model: TSSOP-20 (KiCad packages3D, STEP)+- 3D model files: `stm8s103f2p6tr-etched.step` / `stm8s103f2p6tr-etched.glb` carry the MPN laser-etched on the die in a toggleable `Adom.LaserEtch` group (Fusion-ready); `stm8s103f2p6tr.step` / `stm8s103f2p6tr.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/8588881492290514944) (113 pp, sha256 `9f8cfb286f831178`, retrieved 2026-10-07, tier: lcsc)+- **Extractor:** parts-factory `2.0.0` / `extract_pins 0.3`, primary `claude-haiku-4-5-20251001` (text), consensus `claude-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).++[Datasheet PDF](docs/stm8s103f2p6tr-datasheet.pdf)
page.jsonadded+272
@@ -0,0 +1,272 @@+{+  "slug": "stm8s103f2p6tr",+  "version": "0.1.0",+  "type": "component",+  "description": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), TSSOP-20. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",+  "tags": [+    "component",+    "embedded processors & controllers",+    "stm8s103f2p6tr",+    "factory-2.0.0",+    "extractor-text"+  ],+  "dependencies": {},+  "hero": {+    "type": "image",+    "path": "docs/hero.png"+  },+  "files": [+    "page.json",+    "README.md",+    "stm8s103f2p6tr.kicad_sym",+    "stm8s103f2p6tr.kicad_mod",+    "stm8s103f2p6tr.glb",+    "stm8s103f2p6tr.step",+    "stm8s103f2p6tr.lbr",+    "docs/hero.png",+    "docs/stm8s103f2p6tr-datasheet.pdf",+    "viewers/symbol.html",+    "viewers/footprint.html",+    "stm8s103f2p6tr-hero.glb",+    "stm8s103f2p6tr-hero.overlay.json"+  ],+  "component": {+    "mpn": "STM8S103F2P6TR",+    "manufacturer": "STMicroelectronics",+    "package": "TSSOP-20",+    "pin_count": 20,+    "category": "Embedded Processors & Controllers",+    "subcategory": "Microcontrollers (MCU/MPU/SOC)",+    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588881492290514944",+    "parts": {+      "symbol": "stm8s103f2p6tr.kicad_sym",+      "footprint": "stm8s103f2p6tr.kicad_mod",+      "model_3d": "stm8s103f2p6tr-hero.glb",+      "model_3d_plain": "stm8s103f2p6tr.glb",+      "model_3d_step": "stm8s103f2p6tr-etched.step",+      "model_3d_step_plain": "stm8s103f2p6tr.step",+      "lbr": "stm8s103f2p6tr.lbr"+    },+    "distributor_links": {+      "lcsc": "C8242",+      "digikey": "497-18849-2-ND",+      "mouser": "511-STM8S103F2P6TR"+    },+    "distributor_check": {+      "checked_at": "2026-10-07T08:51:45Z",+      "source": "Component Ocean /api/assign-pns",+      "digikey": {+        "pn": "497-18849-2-ND",+        "status": "found",+        "lifecycle": "Active"+      },+      "mouser": {+        "pn": "511-STM8S103F2P6TR",+        "status": "found"+      }+    },+    "pins": [+      {+        "number": "1",+        "name": "PD4",+        "type": "bidirectional",+        "description": "Timer 2 channel 1 / BEEP output / UART1 clock; general-purpose I/O with high sink output capability (HS), output speed O3."+      },+      {+        "number": "2",+        "name": "PD5",+        "type": "bidirectional",+        "description": "UART1 transmit data output (AIN5) / analog input 5; general-purpose I/O with high sink capability (HS), output speed O3."+      },+      {+        "number": "3",+        "name": "PD6",+        "type": "bidirectional",+        "description": "UART1 receive data input (AIN6) / analog input 6; general-purpose I/O with high sink capability (HS), output speed O3."+      },+      {+        "number": "4",+        "name": "NRST",+        "type": "input",+        "description": "External reset input pin; active low resets the device with internal weak pull-up resistor."+      },+      {+        "number": "5",+        "name": "PA1",+        "type": "input",+        "description": "Oscillator crystal input (OSCIN) or general-purpose I/O; operates at 1.8 to 5.5 V with output speed O1."+      },+      {+        "number": "6",+        "name": "PA2",+        "type": "output",+        "description": "Oscillator crystal output (OSCOUT) or general-purpose I/O; operates at 1.8 to 5.5 V with output speed O1."+      },+      {+        "number": "7",+        "name": "VSS",+        "type": "power_in",+        "description": "Digital ground reference (0 V)."+      },+      {+        "number": "8",+        "name": "VCAP",+        "type": "passive",+        "description": "1.8 V internal regulator power supply bypass capacitor; requires 1 µF to 10 µF ceramic capacitor."+      },+      {+        "number": "9",+        "name": "VDD",+        "type": "power_in",+        "description": "Positive digital power supply pin; operating voltage range 2.95 to 5.5 V."+      },+      {+        "number": "10",+        "name": "PA3",+        "type": "bidirectional",+        "description": "Timer 2 channel 3 / SPI slave select (NSS) [AFR1 remapping]; general-purpose I/O with high sink capability (HS), output speed O3."+      },+      {+        "number": "11",+        "name": "PB5",+        "type": "bidirectional",+        "description": "I²C data line (I²C_SDA) with true open-drain output / Timer 1 break input (TIM1_BKIN) [AFR4 remapping]; output speed O1 with true open drain."+      },+      {+        "number": "12",+        "name": "PB4",+        "type": "bidirectional",+        "description": "I²C clock line (I²C_SCL) with true open-drain output / ADC external trigger (ADC_ETR) [AFR4 remapping]; output speed O1 with true open drain."+      },+      {+        "number": "13",+        "name": "PC3",+        "type": "bidirectional",+        "description": "Timer 1 channel 3 output / top-level interrupt (TLI) [AFR3 remapping] / Timer 1 channel 1N complementary output [AFR7 remapping]; general-purpose I/O with high sink capability (HS), output speed O3."+      },+      {+        "number": "14",+        "name": "PC4",+        "type": "bidirectional",+        "description": "Timer 1 channel 4 output / configurable clock output (CLK_CCO) / analog input 2 (AIN2) / Timer 1 channel 2N complementary output [AFR7 remapping]; general-purpose I/O with high sink capability (HS), output speed O3."+      },+      {+        "number": "15",+        "name": "PC5",+        "type": "bidirectional",+        "description": "SPI clock (SPI_SCK) / Timer 2 channel 1 output [AFR0 remapping]; general-purpose I/O with high sink capability (HS), output speed O3."+      },+      {+        "number": "16",+        "name": "PC6",+        "type": "bidirectional",+        "description": "SPI master-out/slave-in (SPI_MOSI) / Timer 1 channel 1 output [AFR0 remapping]; general-purpose I/O with high sink capability (HS), output speed O3."+      },+      {+        "number": "17",+        "name": "PC7",+        "type": "bidirectional",+        "description": "SPI master-in/slave-out (SPI_MISO) / Timer 1 channel 2 output [AFR0 remapping]; general-purpose I/O with high sink capability (HS), output speed O3."+      },+      {+        "number": "18",+        "name": "PD1",+        "type": "bidirectional",+        "description": "SWIM (single-wire interface module) data interface for on-chip debugging and programming; weak pull-up during reset phase; general-purpose I/O with high sink capability (HS), output speed O4."+      },+      {+        "number": "19",+        "name": "PD2",+        "type": "bidirectional",+        "description": "Analog input 3 (AIN3) / Timer 2 channel 3 output [AFR1 remapping]; general-purpose I/O with high sink capability (HS), output speed O3."+      },+      {+        "number": "20",+        "name": "PD3",+        "type": "bidirectional",+        "description": "Analog input 4 (AIN4) / Timer 2 channel 2 output / ADC external trigger input (ADC_ETR); general-purpose I/O with high sink capability (HS), output speed O3."+      }+    ],+    "provenance": {+      "extractor": "extract_pins 0.3",+      "factory_chain": {+        "factory": "2.0.0",+        "extractor": "extract_pins 0.3",+        "primary_model": "claude-haiku-4-5-20251001",+        "primary_mode": "text",+        "consensus_model": "claude-sonnet-5-5",+        "consensus": "agreed",+        "guards": "pin_guards 0.1: passed",+        "guard_notes": [+          "extractor flagged: NRST pin classified as input type, but datasheet indicates it can function as open-drain output when; PA1/PA2 oscillator pins classified as input/output based on oscillator function, but can also functi; I²C pins (PB4/PB5) have true open-drain output requiring external pull-up resistors; classified as b"+        ],+        "pages_sent": 43,+        "cost_usd": 0.2739,+        "at": "2026-10-07T08:51:23"+      },+      "datasheet": {+        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588881492290514944",+        "pages": 113,+        "sha256": "9f8cfb286f831178",+        "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"+    },+    "models_3d": [+      {+        "file": "stm8s103f2p6tr.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": "stm8s103f2p6tr-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": "f8c5d7b5531e7e58b74f0d09328b23accda31f3c695eefb0780b9d51e210584e",+        "checked": "2026-10-07",+        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"+      }+    ]+  },+  "visibility": "public",+  "org": "adom",+  "author": {+    "name": "Ray",+    "email": "[email protected]"+  }+}\ No newline at end of file