← Commit history

Initial commit: component/stpm32tr

Ray ·dc3c290a02 ·6h ago
2 files changed +363
README.mdadded+61
@@ -0,0 +1,61 @@+# STPM32TR++**STMicroelectronics** · Energy Metering · QFN-24-EP(4x4)++STPM32TR from STMicroelectronics, in a QFN-24-EP(4x4). 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 | CLKOUT/ZCR | output | Zero-crossing output or system clock output (configurable), voltage 0 to VCC. |+| 2 | CLKIN/XTAL2 | input | External clock input or crystal oscillator 2 input, voltage 0 to VCC. |+| 3 | XTAL1 | input | Crystal oscillator 1 input, voltage 0 to VCC. |+| 4 | LED1 | output | Programmable pulse output 1 for energy pulses or sigma-delta bitstream, voltage 0 to VCC. |+| 5 | LED2 | output | Programmable pulse output 2 for energy pulses or sigma-delta bitstream, voltage 0 to VCC. |+| 6 | INT1 | output | Programmable interrupt 1 output or sigma-delta bitstream output, voltage 0 to VCC. |+| 7 | EN | input | Enable pin for device operation control, voltage 0 to VCC. |+| 8 | VIP1 | input | Positive voltage input for primary channel measurement, voltage -0.3 V to 0.3 V. |+| 9 | VIN1 | input | Negative voltage input for primary channel measurement, voltage -0.3 V to 0.3 V. |+| 10 | IIP1 | input | Positive current input for primary channel measurement, voltage -0.3 V to 0.3 V. |+| 11 | IIN1 | input | Negative current input for primary channel measurement, voltage -0.3 V to 0.3 V. |+| 12 | VREF1 | power_out | Voltage reference 1 output from internal bandgap reference, voltage 1.16 V to 1.18 V. |+| 13 | GND_REF | power_in | Analog ground reference for voltage reference 1. |+| 14 | GNDA | power_in | Analog ground (shield) for analog measurement circuits. |+| 15 | VDDA | power_out | Analog power supply regulator output, 3.0 V typical. |+| 16 | GND_REG | power_in | Ground reference for internal regulators and digital circuits. |+| 17 | VCC | power_in | Main supply voltage input, voltage range 3.0 V to 3.6 V. |+| 18 | GNDD | power_in | Digital ground. |+| 19 | VDDD | power_out | Digital power supply regulator output, 1.2 V typical. |+| 20 | SYN | input | Synchronization pin for pulse generation or measurement register latching, voltage 0 to VCC. |+| 21 | SCS | input | Chip-select pin for SPI interface or interface mode selection at power-up, voltage 0 to VCC. |+| 22 | SCL | input | SPI serial clock input, voltage 0 to VCC. |+| 23 | MOSI/RXD | input | SPI master-out-slave-in data input or UART receive data input, voltage 0 to VCC. |+| 24 | MISO/TXD | output | SPI master-in-slave-out data output or UART transmit data output, voltage 0 to VCC. |+| 25 | EP | passive | Exposed pad (from the footprint; not named in the datasheet pin table). |++## Key specifications++| Parameter | Value |+|---|---|+| Manufacturer | STMicroelectronics |+| Package | QFN-24-EP(4x4) |+| Category | Data Acquisition |+| Pins | 25 |++## CAD (KiCad official)++- Symbol: `STPM32TR`+- Footprint: `Package_DFN_QFN:QFN-24-1EP_4x4mm_P0.5mm_EP2.6x2.6mm`+- 3D model: QFN-24-EP(4x4) (KiCad packages3D, STEP)+- 3D model files: `stpm32tr-etched.step` / `stpm32tr-etched.glb` carry the MPN laser-etched on the die in a toggleable `Adom.LaserEtch` group (Fusion-ready); `stpm32tr.step` / `stpm32tr.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/8586183916181475328) (122 pp, sha256 `fc11ae6e2a323f49`, 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/stpm32tr-datasheet.pdf)
page.jsonadded+302
@@ -0,0 +1,302 @@+{+  "slug": "stpm32tr",+  "version": "0.1.0",+  "type": "component",+  "description": "STMicroelectronics Energy Metering, QFN-24-EP(4x4). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",+  "tags": [+    "component",+    "data acquisition",+    "stpm32tr",+    "factory-2.0.0",+    "extractor-text"+  ],+  "dependencies": {},+  "hero": {+    "type": "image",+    "path": "docs/hero.png"+  },+  "files": [+    "page.json",+    "README.md",+    "stpm32tr.kicad_sym",+    "stpm32tr.kicad_mod",+    "stpm32tr.glb",+    "stpm32tr.step",+    "stpm32tr.lbr",+    "docs/hero.png",+    "docs/stpm32tr-datasheet.pdf",+    "viewers/symbol.html",+    "viewers/footprint.html",+    "stpm32tr-hero.glb",+    "stpm32tr-hero.overlay.json"+  ],+  "component": {+    "mpn": "STPM32TR",+    "manufacturer": "STMicroelectronics",+    "package": "QFN-24-EP(4x4)",+    "pin_count": 25,+    "category": "Data Acquisition",+    "subcategory": "Energy Metering",+    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8586183916181475328",+    "parts": {+      "symbol": "stpm32tr.kicad_sym",+      "footprint": "stpm32tr.kicad_mod",+      "model_3d": "stpm32tr-hero.glb",+      "model_3d_plain": "stpm32tr.glb",+      "model_3d_step": "stpm32tr-etched.step",+      "model_3d_step_plain": "stpm32tr.step",+      "lbr": "stpm32tr.lbr"+    },+    "distributor_links": {+      "lcsc": "C128380",+      "digikey": "497-15634-2-ND",+      "mouser": "512-STPM32TR"+    },+    "distributor_check": {+      "checked_at": "2026-10-07T07:38:19Z",+      "source": "Component Ocean /api/assign-pns",+      "digikey": {+        "pn": "497-15634-2-ND",+        "status": "found",+        "lifecycle": "Active"+      },+      "mouser": {+        "pn": "512-STPM32TR",+        "status": "found"+      }+    },+    "pins": [+      {+        "number": "1",+        "name": "CLKOUT/ZCR",+        "type": "output",+        "description": "Zero-crossing output or system clock output (configurable), voltage 0 to VCC."+      },+      {+        "number": "2",+        "name": "CLKIN/XTAL2",+        "type": "input",+        "description": "External clock input or crystal oscillator 2 input, voltage 0 to VCC."+      },+      {+        "number": "3",+        "name": "XTAL1",+        "type": "input",+        "description": "Crystal oscillator 1 input, voltage 0 to VCC."+      },+      {+        "number": "4",+        "name": "LED1",+        "type": "output",+        "description": "Programmable pulse output 1 for energy pulses or sigma-delta bitstream, voltage 0 to VCC."+      },+      {+        "number": "5",+        "name": "LED2",+        "type": "output",+        "description": "Programmable pulse output 2 for energy pulses or sigma-delta bitstream, voltage 0 to VCC."+      },+      {+        "number": "6",+        "name": "INT1",+        "type": "output",+        "description": "Programmable interrupt 1 output or sigma-delta bitstream output, voltage 0 to VCC."+      },+      {+        "number": "7",+        "name": "EN",+        "type": "input",+        "description": "Enable pin for device operation control, voltage 0 to VCC."+      },+      {+        "number": "8",+        "name": "VIP1",+        "type": "input",+        "description": "Positive voltage input for primary channel measurement, voltage -0.3 V to 0.3 V."+      },+      {+        "number": "9",+        "name": "VIN1",+        "type": "input",+        "description": "Negative voltage input for primary channel measurement, voltage -0.3 V to 0.3 V."+      },+      {+        "number": "10",+        "name": "IIP1",+        "type": "input",+        "description": "Positive current input for primary channel measurement, voltage -0.3 V to 0.3 V."+      },+      {+        "number": "11",+        "name": "IIN1",+        "type": "input",+        "description": "Negative current input for primary channel measurement, voltage -0.3 V to 0.3 V."+      },+      {+        "number": "12",+        "name": "VREF1",+        "type": "power_out",+        "description": "Voltage reference 1 output from internal bandgap reference, voltage 1.16 V to 1.18 V."+      },+      {+        "number": "13",+        "name": "GND_REF",+        "type": "power_in",+        "description": "Analog ground reference for voltage reference 1."+      },+      {+        "number": "14",+        "name": "GNDA",+        "type": "power_in",+        "description": "Analog ground (shield) for analog measurement circuits."+      },+      {+        "number": "15",+        "name": "VDDA",+        "type": "power_out",+        "description": "Analog power supply regulator output, 3.0 V typical."+      },+      {+        "number": "16",+        "name": "GND_REG",+        "type": "power_in",+        "description": "Ground reference for internal regulators and digital circuits."+      },+      {+        "number": "17",+        "name": "VCC",+        "type": "power_in",+        "description": "Main supply voltage input, voltage range 3.0 V to 3.6 V."+      },+      {+        "number": "18",+        "name": "GNDD",+        "type": "power_in",+        "description": "Digital ground."+      },+      {+        "number": "19",+        "name": "VDDD",+        "type": "power_out",+        "description": "Digital power supply regulator output, 1.2 V typical."+      },+      {+        "number": "20",+        "name": "SYN",+        "type": "input",+        "description": "Synchronization pin for pulse generation or measurement register latching, voltage 0 to VCC."+      },+      {+        "number": "21",+        "name": "SCS",+        "type": "input",+        "description": "Chip-select pin for SPI interface or interface mode selection at power-up, voltage 0 to VCC."+      },+      {+        "number": "22",+        "name": "SCL",+        "type": "input",+        "description": "SPI serial clock input, voltage 0 to VCC."+      },+      {+        "number": "23",+        "name": "MOSI/RXD",+        "type": "input",+        "description": "SPI master-out-slave-in data input or UART receive data input, voltage 0 to VCC."+      },+      {+        "number": "24",+        "name": "MISO/TXD",+        "type": "output",+        "description": "SPI master-in-slave-out data output or UART transmit data output, voltage 0 to VCC."+      },+      {+        "number": "25",+        "name": "EP",+        "type": "passive",+        "description": "Exposed pad (from the footprint; not named in the datasheet pin table)."+      }+    ],+    "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": [+          "exposed pad 25 added from the footprint"+        ],+        "pages_sent": 29,+        "cost_usd": 0.2177,+        "at": "2026-10-07T07:38:06"+      },+      "datasheet": {+        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8586183916181475328",+        "pages": 122,+        "sha256": "fc11ae6e2a323f49",+        "source_tier": "lcsc"+      },+      "cad": "KiCad official (CC-BY-SA 4.0)",+      "pins": {+        "total": 25,+        "described": 25,+        "cites_pages": true,+        "refuses_to_fabricate": true+      }+    },+    "viewers": {+      "symbol": "viewers/symbol.html",+      "footprint": "viewers/footprint.html"+    },+    "models_3d": [+      {+        "file": "stpm32tr.step",+        "role": "plain",+        "up": "Z",+        "units": "mm",+        "origin": "footprint origin = pad-pattern centre",+        "seat": "z = 0",+        "extents_mm": [+          4,+          4,+          0.77+        ],+        "zmin_mm": 0,+        "centre_offset_mm": 0,+        "footprint_binding": "identity",+        "sha256": "096fc110543e6d324c5120c2d38e3dca87a389da9b6fac234f1fe40856295ef4",+        "checked": "2026-10-07",+        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"+      },+      {+        "file": "stpm32tr-etched.step",+        "role": "eda",+        "up": "Z",+        "units": "mm",+        "origin": "footprint origin = pad-pattern centre",+        "seat": "z = 0",+        "extents_mm": [+          4,+          4,+          0.77+        ],+        "zmin_mm": 0,+        "centre_offset_mm": 0,+        "footprint_binding": "identity",+        "sha256": "d30bd2cc3f2d2a0b80eadcd28cfe19612ffd85e489f957d4922922320dd6d7ee",+        "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