component
STM8S903F3M6
Public Made by Adomby adom
STMicroelectronics Microcontroller Units (MCUs/MPUs/SOCs), SOIC-20-300mil. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.
← Commit history
README.mdadded+56@@ -0,0 +1,56 @@+# STM8S903F3M6++**STMicroelectronics** · Microcontroller Units (MCUs/MPUs/SOCs) · SOIC-20-300mil++STM8S903F3M6 from STMicroelectronics, in a SOIC-20-300mil. Pinout and pin descriptions extracted from the manufacturer datasheet by ds2sf; symbol, footprint, and 3D from KiCad-official CAD.++## Pinout++| Pin | Name | Type | Function |+|---|---|---|---|+| 4 | NRST | bidirectional | Reset input with internal 30-80 kΩ pull-up resistor and filtered input for active-low asynchronous reset. |+| 5 | PA1/OSCIN | bidirectional | Port A pin with oscillator crystal/resonator input for high-speed external clock source (1-16 MHz). |+| 6 | PA2/OSCOUT | bidirectional | Port A pin with oscillator crystal/resonator output for external crystal/resonator operation (1-16 MHz). |+| 7 | VSS | power_in | Digital ground (0V reference) for power return and signal reference. |+| 8 | VCAP | power_out | 1.8V regulated output from internal voltage regulator requiring external 470-3300 nF capacitor with ESR 0-0.3 Ω. |+| 9 | VDD | power_in | Digital power supply input (2.95-5.5V operating range) with maximum 100 mA total source capability. |+| 10 | PA3/TIM5_CH3 | bidirectional | Port A GPIO pin with Timer 5 channel 3 capture/compare/PWM, remappable to SPI master/slave select or UART1 transmit. |+| 11 | PB5/I2C_SDA | bidirectional | Port B GPIO pin with I2C data line (true open-drain output, 400 kbit/s maximum), alternate Timer 1 break input. |+| 12 | PB4/I2C_SCL | bidirectional | Port B GPIO pin with I2C clock line (true open-drain output, 400 kbit/s maximum), alternate ADC external trigger. |+| 13 | PC3/TIM1_CH3/TLI | bidirectional | Port C GPIO pin for Timer 1 channel 3 capture/compare or top-level interrupt input, remappable to Timer 1 inverted channel 1. |+| 14 | PC4/TIM1_CH4/CLK_CCO/AIN2 | bidirectional | Port C GPIO pin with Timer 1 channel 4, configurable master clock output, or 10-bit ADC input channel 2 (0-VDD). |+| 15 | PC5/SPI_SCK | bidirectional | Port C GPIO pin with SPI serial clock output (8 Mbit/s master, 7 Mbit/s slave), remappable to Timer 5 channel 1. |+| 16 | PC6/SPI_MOSI | bidirectional | Port C GPIO pin with SPI master out/slave in data line (8 Mbit/s bidirectional), remappable to Timer 1 channel 1. |+| 17 | PC7/SPI_MISO | bidirectional | Port C GPIO pin with SPI master in/slave out data line (8 Mbit/s bidirectional), remappable to Timer 1 channel 2. |+| 18 | PD1/SWIM | bidirectional | Port D GPIO pin for single-wire interface module (SWIM) debug communication with 145 bytes/ms maximum data rate. |+| 19 | PD2/AIN3 | bidirectional | Port D GPIO pin with 10-bit ADC analog input channel 3 (input range 0-VDD), remappable to Timer 5 channel 3. |+| 20 | PD3/AIN4/TIM5_CH2/ADC_ETR | bidirectional | Port D GPIO pin with 10-bit ADC input channel 4, Timer 5 channel 2, or ADC external trigger input. |+| 1 | PD4/TIM5_CH1/BEEP | bidirectional | Port D GPIO pin with Timer 5 channel 1, BEEP audio output (1, 2, or 4 kHz selectable), or UART1 clock via option byte. |+| 2 | PD5/AIN5/UART1_TX | bidirectional | Port D GPIO pin with 10-bit ADC analog input channel 5 (0-VDD) or UART1 transmit data output (1 Mbit/s maximum). |+| 3 | PD6/AIN6/UART1_RX | bidirectional | Port D GPIO pin with 10-bit ADC analog input channel 6 (0-VDD) or UART1 receive data input (1 Mbit/s maximum). |++## Key specifications++| Parameter | Value |+|---|---|+| Manufacturer | STMicroelectronics |+| Package | SOIC-20-300mil |+| Category | Single Chip Microcomputer/Microcontroller |+| Pins | 20 |++## CAD (KiCad official)++- Symbol: `STM8S903F3M6`+- Footprint: `Package_SO:SOIC-20W_7.5x12.8mm_P1.27mm`+- 3D model: SOIC-20-300mil (KiCad packages3D, STEP)+- 3D model files: `stm8s903f3m6-etched.step` / `stm8s903f3m6-etched.glb` carry the MPN laser-etched on the die in a toggleable `Adom.LaserEtch` group (Fusion-ready); `stm8s903f3m6.step` / `stm8s903f3m6.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/8588922897385861120) (124 pp, sha256 `76ef2064c8429253`, retrieved 2026-09-22, 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/stm8s903f3m6-datasheet.pdf)
page.jsonadded+213@@ -0,0 +1,213 @@+{+ "slug": "stm8s903f3m6",+ "version": "0.1.0",+ "type": "component",+ "description": "STMicroelectronics Microcontroller Units (MCUs/MPUs/SOCs), SOIC-20-300mil. Datasheet-verified pinout, KiCad symbol/footprint/3D.",+ "tags": [+ "component",+ "single chip microcomputer-microcontroller",+ "stm8s903f3m6",+ "factory-2.0.0",+ "extractor-text"+ ],+ "dependencies": {},+ "hero": {+ "type": "image",+ "path": "docs/hero.png"+ },+ "files": [+ "page.json",+ "README.md",+ "stm8s903f3m6.kicad_sym",+ "stm8s903f3m6.kicad_mod",+ "stm8s903f3m6.glb",+ "stm8s903f3m6.step",+ "stm8s903f3m6.lbr",+ "docs/hero.png",+ "docs/stm8s903f3m6-datasheet.pdf",+ "viewers/symbol.html",+ "viewers/footprint.html"+ ],+ "component": {+ "mpn": "STM8S903F3M6",+ "manufacturer": "STMicroelectronics",+ "package": "SOIC-20-300mil",+ "pin_count": 20,+ "category": "Single Chip Microcomputer/Microcontroller",+ "subcategory": "Microcontroller Units (MCUs/MPUs/SOCs)",+ "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588922897385861120",+ "parts": {+ "symbol": "stm8s903f3m6.kicad_sym",+ "footprint": "stm8s903f3m6.kicad_mod",+ "model_3d": "stm8s903f3m6-etched.glb",+ "model_3d_plain": "stm8s903f3m6.glb",+ "model_3d_step": "stm8s903f3m6-etched.step",+ "model_3d_step_plain": "stm8s903f3m6.step",+ "lbr": "stm8s903f3m6.lbr"+ },+ "distributor_links": {+ "lcsc": "C1341018"+ },+ "pins": [+ {+ "number": "4",+ "name": "NRST",+ "type": "bidirectional",+ "description": "Reset input with internal 30-80 kΩ pull-up resistor and filtered input for active-low asynchronous reset."+ },+ {+ "number": "5",+ "name": "PA1/OSCIN",+ "type": "bidirectional",+ "description": "Port A pin with oscillator crystal/resonator input for high-speed external clock source (1-16 MHz)."+ },+ {+ "number": "6",+ "name": "PA2/OSCOUT",+ "type": "bidirectional",+ "description": "Port A pin with oscillator crystal/resonator output for external crystal/resonator operation (1-16 MHz)."+ },+ {+ "number": "7",+ "name": "VSS",+ "type": "power_in",+ "description": "Digital ground (0V reference) for power return and signal reference."+ },+ {+ "number": "8",+ "name": "VCAP",+ "type": "power_out",+ "description": "1.8V regulated output from internal voltage regulator requiring external 470-3300 nF capacitor with ESR 0-0.3 Ω."+ },+ {+ "number": "9",+ "name": "VDD",+ "type": "power_in",+ "description": "Digital power supply input (2.95-5.5V operating range) with maximum 100 mA total source capability."+ },+ {+ "number": "10",+ "name": "PA3/TIM5_CH3",+ "type": "bidirectional",+ "description": "Port A GPIO pin with Timer 5 channel 3 capture/compare/PWM, remappable to SPI master/slave select or UART1 transmit."+ },+ {+ "number": "11",+ "name": "PB5/I2C_SDA",+ "type": "bidirectional",+ "description": "Port B GPIO pin with I2C data line (true open-drain output, 400 kbit/s maximum), alternate Timer 1 break input."+ },+ {+ "number": "12",+ "name": "PB4/I2C_SCL",+ "type": "bidirectional",+ "description": "Port B GPIO pin with I2C clock line (true open-drain output, 400 kbit/s maximum), alternate ADC external trigger."+ },+ {+ "number": "13",+ "name": "PC3/TIM1_CH3/TLI",+ "type": "bidirectional",+ "description": "Port C GPIO pin for Timer 1 channel 3 capture/compare or top-level interrupt input, remappable to Timer 1 inverted channel 1."+ },+ {+ "number": "14",+ "name": "PC4/TIM1_CH4/CLK_CCO/AIN2",+ "type": "bidirectional",+ "description": "Port C GPIO pin with Timer 1 channel 4, configurable master clock output, or 10-bit ADC input channel 2 (0-VDD)."+ },+ {+ "number": "15",+ "name": "PC5/SPI_SCK",+ "type": "bidirectional",+ "description": "Port C GPIO pin with SPI serial clock output (8 Mbit/s master, 7 Mbit/s slave), remappable to Timer 5 channel 1."+ },+ {+ "number": "16",+ "name": "PC6/SPI_MOSI",+ "type": "bidirectional",+ "description": "Port C GPIO pin with SPI master out/slave in data line (8 Mbit/s bidirectional), remappable to Timer 1 channel 1."+ },+ {+ "number": "17",+ "name": "PC7/SPI_MISO",+ "type": "bidirectional",+ "description": "Port C GPIO pin with SPI master in/slave out data line (8 Mbit/s bidirectional), remappable to Timer 1 channel 2."+ },+ {+ "number": "18",+ "name": "PD1/SWIM",+ "type": "bidirectional",+ "description": "Port D GPIO pin for single-wire interface module (SWIM) debug communication with 145 bytes/ms maximum data rate."+ },+ {+ "number": "19",+ "name": "PD2/AIN3",+ "type": "bidirectional",+ "description": "Port D GPIO pin with 10-bit ADC analog input channel 3 (input range 0-VDD), remappable to Timer 5 channel 3."+ },+ {+ "number": "20",+ "name": "PD3/AIN4/TIM5_CH2/ADC_ETR",+ "type": "bidirectional",+ "description": "Port D GPIO pin with 10-bit ADC input channel 4, Timer 5 channel 2, or ADC external trigger input."+ },+ {+ "number": "1",+ "name": "PD4/TIM5_CH1/BEEP",+ "type": "bidirectional",+ "description": "Port D GPIO pin with Timer 5 channel 1, BEEP audio output (1, 2, or 4 kHz selectable), or UART1 clock via option byte."+ },+ {+ "number": "2",+ "name": "PD5/AIN5/UART1_TX",+ "type": "bidirectional",+ "description": "Port D GPIO pin with 10-bit ADC analog input channel 5 (0-VDD) or UART1 transmit data output (1 Mbit/s maximum)."+ },+ {+ "number": "3",+ "name": "PD6/AIN6/UART1_RX",+ "type": "bidirectional",+ "description": "Port D GPIO pin with 10-bit ADC analog input channel 6 (0-VDD) or UART1 receive data input (1 Mbit/s maximum)."+ }+ ],+ "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": [],+ "pages_sent": 124,+ "cost_usd": 0.8804,+ "at": "2026-09-22T13:14:15"+ },+ "datasheet": {+ "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588922897385861120",+ "pages": 124,+ "sha256": "76ef2064c8429253",+ "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]"+ }+}