← Commit history

Initial commit: component/stm8s103f2m6

Ray ·c9efca183a ·4d ago
2 files changed +286
README.mdadded+56
@@ -0,0 +1,56 @@+# STM8S103F2M6++**STMicroelectronics** · Microcontroller Units (MCUs/MPUs/SOCs) · SOP-20-300mil++STM8S103F2M6 from STMicroelectronics, in a SOP-20-300mil. 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 | Port D4 configurable as Timer 2 channel 1, BEEP output, or UART1 clock with high sink output capability. |+| 2 | PD5/AIN5/UART1_TX | bidirectional | Port D5 configurable as analog input 5 or UART1 transmit data with high sink output capability. |+| 3 | PD6/AIN6/UART1_RX | bidirectional | Port D6 configurable as analog input 6 or UART1 receive data with high sink output capability. |+| 4 | NRST | input | Active-low reset input with 30 to 80 kΩ internal pull-up resistor and approximately 75 ns input filter. |+| 5 | PA1/OSCIN | bidirectional | Port A1 configurable as crystal/oscillator input or standard GPIO with weak pull-up; O1 output speed. |+| 6 | PA2/OSCOUT | bidirectional | Port A2 configurable as crystal/oscillator output or standard GPIO; O1 output speed. |+| 7 | VSS | power_in | Digital ground; all ground pins must be connected to complete power distribution. |+| 8 | VCAP | passive | Internal voltage regulator bypass capacitor connection; requires 470 nF to 3.3 µF capacitor to ground with ESR 0.3 Ω and ESL 15 nH maximum. |+| 9 | VDD | power_in | Digital power supply; 2.95 to 5.5 V operating voltage range; all supply pins must be connected to external power. |+| 10 | PA3/TIM2_CH3/SPI_NSS | bidirectional | Port A3 configurable as Timer 2 channel 3, SPI master/slave select, or GPIO with high sink output capability and O3 speed. |+| 11 | PB5/I2C_SDA/TIM1_BKIN | bidirectional | Port B5 configurable as I2C data (true open-drain), Timer 1 break input, or GPIO; O1 output speed. |+| 12 | PB4/I2C_SCL | bidirectional | Port B4 configurable as I2C clock (true open-drain), ADC external trigger, or GPIO; O1 output speed. |+| 13 | PC3/TIM1_CH3/TLI | bidirectional | Port C3 configurable as Timer 1 channel 3, top-level interrupt, or GPIO with high sink output capability and O3 speed. |+| 14 | PC4/CLK_CCO/TIM1_CH4/AIN2 | bidirectional | Port C4 configurable as configurable clock output, Timer 1 channel 4, analog input 2, or GPIO with high sink output capability and O3 speed. |+| 15 | PC5/SPI_SCK | bidirectional | Port C5 configurable as SPI clock, Timer 2 channel 1, or GPIO with high sink output capability and O3 speed. |+| 16 | PC6/SPI_MOSI | bidirectional | Port C6 configurable as SPI master out/slave in, Timer 1 channel 1, or GPIO with high sink output capability and O3 speed. |+| 17 | PC7/SPI_MISO | bidirectional | Port C7 configurable as SPI master in/slave out, Timer 1 channel 2, or GPIO with high sink output capability and O3 speed. |+| 18 | PD1/SWIM | bidirectional | Port D1 configurable as SWIM data interface or GPIO with high sink output capability, O4 speed, and internal pull-up during reset phase. |+| 19 | PD2/AIN3 | bidirectional | Port D2 configurable as analog input 3, Timer 2 channel 3, or GPIO with high sink output capability and O3 speed. |+| 20 | PD3/AIN4/TIM2_CH2/ADC_ETR | bidirectional | Port D3 configurable as analog input 4, Timer 2 channel 2, ADC external trigger, or GPIO with high sink output capability and O3 speed. |++## Key specifications++| Parameter | Value |+|---|---|+| Manufacturer | STMicroelectronics |+| Package | SOP-20-300mil |+| Category | Single Chip Microcomputer/Microcontroller |+| Pins | 20 |++## CAD (KiCad official)++- Symbol: `STM8S103F2M6`+- Footprint: `Package_SO:SOP-20_7.5x12.8mm_P1.27mm`+- 3D model: SOP-20-300mil, generated from the KiCad footprint (body from the F.Fab outline, terminals on the pads, 2.65 mm nominal SOIC height). Neither the vendor nor KiCad ships a 3D model for this package, so the dimensions are nominal, not the manufacturer's CAD (STEP)+- 3D model files: `stm8s103f2m6-etched.step` / `stm8s103f2m6-etched.glb` carry the MPN laser-etched on the die in a toggleable `Adom.LaserEtch` group (Fusion-ready); `stm8s103f2m6.step` / `stm8s103f2m6.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/8588922750673301504) (121 pp, sha256 `ac23789ac0a2f408`, retrieved 2026-10-01, tier: lcsc)+- **Extractor:** parts-factory `2.0.0` / `extract_pins 0.2`, primary `claude-haiku-4-5-20251001` (text), consensus `claude-sonnet-4-6` (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/stm8s103f2m6-datasheet.pdf)
page.jsonadded+230
@@ -0,0 +1,230 @@+{+  "slug": "stm8s103f2m6",+  "version": "0.1.0",+  "type": "component",+  "description": "STMicroelectronics Microcontroller Units (MCUs/MPUs/SOCs), SOP-20-300mil. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",+  "tags": [+    "component",+    "single chip microcomputer-microcontroller",+    "stm8s103f2m6",+    "factory-2.0.0",+    "extractor-text"+  ],+  "dependencies": {},+  "hero": {+    "type": "image",+    "path": "docs/hero.png"+  },+  "files": [+    "page.json",+    "README.md",+    "stm8s103f2m6.kicad_sym",+    "stm8s103f2m6.kicad_mod",+    "stm8s103f2m6.glb",+    "stm8s103f2m6.step",+    "stm8s103f2m6.lbr",+    "docs/hero.png",+    "docs/stm8s103f2m6-datasheet.pdf",+    "viewers/symbol.html",+    "viewers/footprint.html"+  ],+  "component": {+    "mpn": "STM8S103F2M6",+    "manufacturer": "STMicroelectronics",+    "package": "SOP-20-300mil",+    "pin_count": 20,+    "category": "Single Chip Microcomputer/Microcontroller",+    "subcategory": "Microcontroller Units (MCUs/MPUs/SOCs)",+    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588922750673301504",+    "parts": {+      "symbol": "stm8s103f2m6.kicad_sym",+      "footprint": "stm8s103f2m6.kicad_mod",+      "model_3d": "stm8s103f2m6-etched.glb",+      "model_3d_plain": "stm8s103f2m6.glb",+      "model_3d_step": "stm8s103f2m6-etched.step",+      "model_3d_step_plain": "stm8s103f2m6.step",+      "lbr": "stm8s103f2m6.lbr"+    },+    "distributor_links": {+      "lcsc": "C1338322",+      "digikey": "497-16856-ND",+      "mouser": "511-STM8S103F2M6"+    },+    "distributor_check": {+      "checked_at": "2026-10-01T17:35:04Z",+      "source": "Component Ocean /api/assign-pns",+      "digikey": {+        "pn": "497-16856-ND",+        "status": "found",+        "lifecycle": "Active"+      },+      "mouser": {+        "pn": "511-STM8S103F2M6",+        "status": "found"+      }+    },+    "pins": [+      {+        "number": "1",+        "name": "PD4/BEEP/TIM2_CH1/UART1_CK",+        "type": "bidirectional",+        "description": "Port D4 configurable as Timer 2 channel 1, BEEP output, or UART1 clock with high sink output capability."+      },+      {+        "number": "2",+        "name": "PD5/AIN5/UART1_TX",+        "type": "bidirectional",+        "description": "Port D5 configurable as analog input 5 or UART1 transmit data with high sink output capability."+      },+      {+        "number": "3",+        "name": "PD6/AIN6/UART1_RX",+        "type": "bidirectional",+        "description": "Port D6 configurable as analog input 6 or UART1 receive data with high sink output capability."+      },+      {+        "number": "4",+        "name": "NRST",+        "type": "input",+        "description": "Active-low reset input with 30 to 80 kΩ internal pull-up resistor and approximately 75 ns input filter."+      },+      {+        "number": "5",+        "name": "PA1/OSCIN",+        "type": "bidirectional",+        "description": "Port A1 configurable as crystal/oscillator input or standard GPIO with weak pull-up; O1 output speed."+      },+      {+        "number": "6",+        "name": "PA2/OSCOUT",+        "type": "bidirectional",+        "description": "Port A2 configurable as crystal/oscillator output or standard GPIO; O1 output speed."+      },+      {+        "number": "7",+        "name": "VSS",+        "type": "power_in",+        "description": "Digital ground; all ground pins must be connected to complete power distribution."+      },+      {+        "number": "8",+        "name": "VCAP",+        "type": "passive",+        "description": "Internal voltage regulator bypass capacitor connection; requires 470 nF to 3.3 µF capacitor to ground with ESR 0.3 Ω and ESL 15 nH maximum."+      },+      {+        "number": "9",+        "name": "VDD",+        "type": "power_in",+        "description": "Digital power supply; 2.95 to 5.5 V operating voltage range; all supply pins must be connected to external power."+      },+      {+        "number": "10",+        "name": "PA3/TIM2_CH3/SPI_NSS",+        "type": "bidirectional",+        "description": "Port A3 configurable as Timer 2 channel 3, SPI master/slave select, or GPIO with high sink output capability and O3 speed."+      },+      {+        "number": "11",+        "name": "PB5/I2C_SDA/TIM1_BKIN",+        "type": "bidirectional",+        "description": "Port B5 configurable as I2C data (true open-drain), Timer 1 break input, or GPIO; O1 output speed."+      },+      {+        "number": "12",+        "name": "PB4/I2C_SCL",+        "type": "bidirectional",+        "description": "Port B4 configurable as I2C clock (true open-drain), ADC external trigger, or GPIO; O1 output speed."+      },+      {+        "number": "13",+        "name": "PC3/TIM1_CH3/TLI",+        "type": "bidirectional",+        "description": "Port C3 configurable as Timer 1 channel 3, top-level interrupt, or GPIO with high sink output capability and O3 speed."+      },+      {+        "number": "14",+        "name": "PC4/CLK_CCO/TIM1_CH4/AIN2",+        "type": "bidirectional",+        "description": "Port C4 configurable as configurable clock output, Timer 1 channel 4, analog input 2, or GPIO with high sink output capability and O3 speed."+      },+      {+        "number": "15",+        "name": "PC5/SPI_SCK",+        "type": "bidirectional",+        "description": "Port C5 configurable as SPI clock, Timer 2 channel 1, or GPIO with high sink output capability and O3 speed."+      },+      {+        "number": "16",+        "name": "PC6/SPI_MOSI",+        "type": "bidirectional",+        "description": "Port C6 configurable as SPI master out/slave in, Timer 1 channel 1, or GPIO with high sink output capability and O3 speed."+      },+      {+        "number": "17",+        "name": "PC7/SPI_MISO",+        "type": "bidirectional",+        "description": "Port C7 configurable as SPI master in/slave out, Timer 1 channel 2, or GPIO with high sink output capability and O3 speed."+      },+      {+        "number": "18",+        "name": "PD1/SWIM",+        "type": "bidirectional",+        "description": "Port D1 configurable as SWIM data interface or GPIO with high sink output capability, O4 speed, and internal pull-up during reset phase."+      },+      {+        "number": "19",+        "name": "PD2/AIN3",+        "type": "bidirectional",+        "description": "Port D2 configurable as analog input 3, Timer 2 channel 3, or GPIO with high sink output capability and O3 speed."+      },+      {+        "number": "20",+        "name": "PD3/AIN4/TIM2_CH2/ADC_ETR",+        "type": "bidirectional",+        "description": "Port D3 configurable as analog input 4, Timer 2 channel 2, ADC external trigger, or GPIO with high sink output capability and O3 speed."+      }+    ],+    "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-4-6",+        "consensus": "agreed",+        "guards": "pin_guards 0.1: passed",+        "guard_notes": [+          "extractor flagged: PA1 and PA2 classification: These pins are classified as bidirectional I/O since they can function a"+        ],+        "pages_sent": 121,+        "cost_usd": 0.7598,+        "at": "2026-10-01T17:34:39"+      },+      "datasheet": {+        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588922750673301504",+        "pages": 121,+        "sha256": "ac23789ac0a2f408",+        "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]"+  }+}\ No newline at end of file