← Commit history

Initial commit: component/stm32f042k6t6

Ray ·56742087fa ·
2 files changed +355
README.mdadded+68
@@ -0,0 +1,68 @@+# STM32F042K6T6++**STMicroelectronics** · Microcontrollers (MCU/MPU/SOC) · LQFP-32(7x7)++STM32F042K6T6 from STMicroelectronics, in a LQFP-32(7x7). 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 | VDD | power_in | Digital power supply for I/Os and internal regulator, VDD = 2.0 to 3.6 V; must be decoupled with ceramic capacitors close to the pin. |+| 2 | PF0-OSC_IN | bidirectional | General-purpose I/O PF0, 5 V-tolerant Fm+ capable (FTf); alternate functions CRS_SYNC and I2C1_SDA; additional function OSC_IN, the 4-32 MHz external crystal/resonator oscillator input. |+| 3 | PF1-OSC_OUT | bidirectional | General-purpose I/O PF1, 5 V-tolerant Fm+ capable (FTf); alternate function I2C1_SCL; additional function OSC_OUT, the 4-32 MHz external crystal/resonator oscillator output. |+| 4 | NRST | bidirectional | Bidirectional reset pin with embedded weak pull-up resistor; device reset input / internal reset output, active low. |+| 5 | VDDA | power_in | External analog power supply for ADC, reset blocks, RCs and PLL; from VDD to 3.6 V, minimum 2.4 V when the ADC is used; must always be ≥ VDD and established first. |+| 6 | PA0 | bidirectional | 3.3 V-tolerant ADC-connected I/O (TTa); alternate functions USART2_CTS, TIM2_CH1_ETR, TSC_G1_IO1; additional functions RTC_TAMP2, WKUP1, ADC_IN0. |+| 7 | PA1 | bidirectional | 3.3 V-tolerant ADC-connected I/O (TTa); alternate functions USART2_RTS, TIM2_CH2, TSC_G1_IO2, EVENTOUT; additional function ADC_IN1. |+| 8 | PA2 | bidirectional | 3.3 V-tolerant ADC-connected I/O (TTa); alternate functions USART2_TX, TIM2_CH3, TSC_G1_IO3; additional functions ADC_IN2, WKUP4. |+| 9 | PA3 | bidirectional | 3.3 V-tolerant ADC-connected I/O (TTa); alternate functions USART2_RX, TIM2_CH4, TSC_G1_IO4; additional function ADC_IN3. |+| 10 | PA4 | bidirectional | 3.3 V-tolerant ADC-connected I/O (TTa); alternate functions SPI1_NSS/I2S1_WS, USART2_CK, USB_NOE, TSC_G2_IO1, TIM14_CH1; additional function ADC_IN4. |+| 11 | PA5 | bidirectional | 3.3 V-tolerant ADC-connected I/O (TTa); alternate functions SPI1_SCK/I2S1_CK, CEC, TIM2_CH1_ETR, TSC_G2_IO2; additional function ADC_IN5. |+| 12 | PA6 | bidirectional | 3.3 V-tolerant ADC-connected I/O (TTa); alternate functions SPI1_MISO/I2S1_MCK, TIM3_CH1, TIM1_BKIN, TIM16_CH1, TSC_G2_IO3, EVENTOUT; additional function ADC_IN6. |+| 13 | PA7 | bidirectional | 3.3 V-tolerant ADC-connected I/O (TTa); alternate functions SPI1_MOSI/I2S1_SD, TIM3_CH2, TIM14_CH1, TIM1_CH1N, TIM17_CH1, TSC_G2_IO4, EVENTOUT; additional function ADC_IN7. |+| 14 | PB0 | bidirectional | 3.3 V-tolerant ADC-connected I/O (TTa); alternate functions TIM3_CH3, TIM1_CH2N, TSC_G3_IO2, EVENTOUT; additional function ADC_IN8. |+| 15 | PB1 | bidirectional | 3.3 V-tolerant ADC-connected I/O (TTa); alternate functions TIM3_CH4, TIM14_CH1, TIM1_CH3N, TSC_G3_IO3; additional function ADC_IN9. |+| 16 | VSS | power_in | Ground pin. |+| 17 | VDDIO2 | power_in | Independent digital power supply for the marked I/Os (PA8-PA15 group), VDDIO2 = 1.65 to 3.6 V; must not be supplied unless VDD is present. |+| 18 | PA8 | bidirectional | 5 V-tolerant I/O (FT), supplied from VDDIO2; alternate functions MCO, USART1_CK, TIM1_CH1, EVENTOUT, CRS_SYNC. |+| 19 | PA9 | bidirectional | 5 V-tolerant Fm+ capable I/O (FTf), supplied from VDDIO2; alternate functions USART1_TX, TIM1_CH2, TSC_G4_IO1, I2C1_SCL; usable for Flash bootloader USART reprogramming. |+| 20 | PA10 | bidirectional | 5 V-tolerant Fm+ capable I/O (FTf), supplied from VDDIO2; alternate functions USART1_RX, TIM1_CH3, TIM17_BKIN, TSC_G4_IO2, I2C1_SDA; usable for Flash bootloader USART reprogramming. |+| 21 | PA11 | bidirectional | 5 V-tolerant Fm+ capable I/O (FTf), supplied from VDDIO2; alternate functions CAN_RX, USART1_CTS, TIM1_CH4, TSC_G4_IO3, EVENTOUT, I2C1_SCL; additional function USB_DM; pin pair PA11/12 can be remapped in place of PA9/10 via SYSCFG_CFGR1. |+| 22 | PA12 | bidirectional | 5 V-tolerant Fm+ capable I/O (FTf), supplied from VDDIO2; alternate functions CAN_TX, USART1_RTS, TIM1_ETR, TSC_G4_IO4, EVENTOUT, I2C1_SDA; additional function USB_DP. |+| 23 | PA13 | bidirectional | 5 V-tolerant I/O (FT), supplied from VDDIO2; alternate functions IR_OUT, SWDIO; additional function USB_NOE; after reset configured as SWDIO with internal pull-up activated. |+| 24 | PA14 | bidirectional | 5 V-tolerant I/O (FT), supplied from VDDIO2; alternate functions USART2_TX, SWCLK; after reset configured as SWCLK with internal pull-down activated. |+| 25 | PA15 | bidirectional | 5 V-tolerant I/O (FT), supplied from VDDIO2; alternate functions SPI1_NSS/I2S1_WS, USART2_RX, TIM2_CH1_ETR, EVENTOUT; additional function USB_NOE. |+| 26 | PB3 | bidirectional | 5 V-tolerant I/O (FT); alternate functions SPI1_SCK/I2S1_CK, TIM2_CH2, TSC_G5_IO1, EVENTOUT. |+| 27 | PB4 | bidirectional | 5 V-tolerant I/O (FT); alternate functions SPI1_MISO/I2S1_MCK, TIM17_BKIN, TIM3_CH1, TSC_G5_IO2, EVENTOUT. |+| 28 | PB5 | bidirectional | 5 V-tolerant I/O (FT); alternate functions SPI1_MOSI/I2S1_SD, I2C1_SMBA, TIM16_BKIN, TIM3_CH2; additional function WKUP6. |+| 29 | PB6 | bidirectional | 5 V-tolerant Fm+ capable I/O (FTf); alternate functions I2C1_SCL, USART1_TX, TIM16_CH1N, TSC_G5_IO3. |+| 30 | PB7 | bidirectional | 5 V-tolerant Fm+ capable I/O (FTf); alternate functions I2C1_SDA, USART1_RX, TIM17_CH1N, TSC_G5_IO4. |+| 31 | PB8-BOOT0 | bidirectional | 5 V-tolerant Fm+ capable I/O (FTf); alternate functions I2C1_SCL, CEC, TIM16_CH1, TSC_SYNC, CAN_RX; also acts as BOOT0 boot-memory selection input sampled at reset. |+| 32 | VSS | power_in | Ground pin; on packages other than the 48-pin ones there is no separate VSSA pin, so the VSSA analog ground pad of the silicon die is internally bonded to this VSS pin. |++## Key specifications++| Parameter | Value |+|---|---|+| Manufacturer | STMicroelectronics |+| Package | LQFP-32(7x7) |+| Category | Embedded Processors & Controllers |+| Pins | 32 |++## CAD (KiCad official)++- Symbol: `STM32F042K6T6`+- Footprint: `Package_QFP:LQFP-32_7x7mm_P0.8mm`+- 3D model: LQFP-32(7x7) (KiCad packages3D, STEP)+- 3D model files: `stm32f042k6t6-etched.step` / `stm32f042k6t6-etched.glb` carry the MPN laser-etched on the die in a toggleable `Adom.LaserEtch` group (Fusion-ready); `stm32f042k6t6.step` / `stm32f042k6t6.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/8586176041157611520) (118 pp, sha256 `4c7b3ccc0428dbff`, 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/stm32f042k6t6-datasheet.pdf)
page.jsonadded+287
@@ -0,0 +1,287 @@+{+  "slug": "stm32f042k6t6",+  "version": "0.1.0",+  "type": "component",+  "description": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-32(7x7). Datasheet-verified pinout, KiCad symbol/footprint/3D.",+  "tags": [+    "component",+    "embedded processors & controllers",+    "stm32f042k6t6",+    "factory-2.0.0",+    "extractor-text"+  ],+  "dependencies": {},+  "hero": {+    "type": "image",+    "path": "docs/hero.png"+  },+  "files": [+    "page.json",+    "README.md",+    "stm32f042k6t6.kicad_sym",+    "stm32f042k6t6.kicad_mod",+    "stm32f042k6t6.glb",+    "stm32f042k6t6.step",+    "stm32f042k6t6.lbr",+    "docs/hero.png",+    "docs/stm32f042k6t6-datasheet.pdf",+    "viewers/symbol.html",+    "viewers/footprint.html"+  ],+  "component": {+    "mpn": "STM32F042K6T6",+    "manufacturer": "STMicroelectronics",+    "package": "LQFP-32(7x7)",+    "pin_count": 32,+    "category": "Embedded Processors & Controllers",+    "subcategory": "Microcontrollers (MCU/MPU/SOC)",+    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8586176041157611520",+    "parts": {+      "symbol": "stm32f042k6t6.kicad_sym",+      "footprint": "stm32f042k6t6.kicad_mod",+      "model_3d": "stm32f042k6t6-etched.glb",+      "model_3d_plain": "stm32f042k6t6.glb",+      "model_3d_step": "stm32f042k6t6-etched.step",+      "model_3d_step_plain": "stm32f042k6t6.step",+      "lbr": "stm32f042k6t6.lbr"+    },+    "distributor_links": {+      "lcsc": "C69216"+    },+    "pins": [+      {+        "number": "1",+        "name": "VDD",+        "type": "power_in",+        "description": "Digital power supply for I/Os and internal regulator, VDD = 2.0 to 3.6 V; must be decoupled with ceramic capacitors close to the pin."+      },+      {+        "number": "2",+        "name": "PF0-OSC_IN",+        "type": "bidirectional",+        "description": "General-purpose I/O PF0, 5 V-tolerant Fm+ capable (FTf); alternate functions CRS_SYNC and I2C1_SDA; additional function OSC_IN, the 4-32 MHz external crystal/resonator oscillator input."+      },+      {+        "number": "3",+        "name": "PF1-OSC_OUT",+        "type": "bidirectional",+        "description": "General-purpose I/O PF1, 5 V-tolerant Fm+ capable (FTf); alternate function I2C1_SCL; additional function OSC_OUT, the 4-32 MHz external crystal/resonator oscillator output."+      },+      {+        "number": "4",+        "name": "NRST",+        "type": "bidirectional",+        "description": "Bidirectional reset pin with embedded weak pull-up resistor; device reset input / internal reset output, active low."+      },+      {+        "number": "5",+        "name": "VDDA",+        "type": "power_in",+        "description": "External analog power supply for ADC, reset blocks, RCs and PLL; from VDD to 3.6 V, minimum 2.4 V when the ADC is used; must always be ≥ VDD and established first."+      },+      {+        "number": "6",+        "name": "PA0",+        "type": "bidirectional",+        "description": "3.3 V-tolerant ADC-connected I/O (TTa); alternate functions USART2_CTS, TIM2_CH1_ETR, TSC_G1_IO1; additional functions RTC_TAMP2, WKUP1, ADC_IN0."+      },+      {+        "number": "7",+        "name": "PA1",+        "type": "bidirectional",+        "description": "3.3 V-tolerant ADC-connected I/O (TTa); alternate functions USART2_RTS, TIM2_CH2, TSC_G1_IO2, EVENTOUT; additional function ADC_IN1."+      },+      {+        "number": "8",+        "name": "PA2",+        "type": "bidirectional",+        "description": "3.3 V-tolerant ADC-connected I/O (TTa); alternate functions USART2_TX, TIM2_CH3, TSC_G1_IO3; additional functions ADC_IN2, WKUP4."+      },+      {+        "number": "9",+        "name": "PA3",+        "type": "bidirectional",+        "description": "3.3 V-tolerant ADC-connected I/O (TTa); alternate functions USART2_RX, TIM2_CH4, TSC_G1_IO4; additional function ADC_IN3."+      },+      {+        "number": "10",+        "name": "PA4",+        "type": "bidirectional",+        "description": "3.3 V-tolerant ADC-connected I/O (TTa); alternate functions SPI1_NSS/I2S1_WS, USART2_CK, USB_NOE, TSC_G2_IO1, TIM14_CH1; additional function ADC_IN4."+      },+      {+        "number": "11",+        "name": "PA5",+        "type": "bidirectional",+        "description": "3.3 V-tolerant ADC-connected I/O (TTa); alternate functions SPI1_SCK/I2S1_CK, CEC, TIM2_CH1_ETR, TSC_G2_IO2; additional function ADC_IN5."+      },+      {+        "number": "12",+        "name": "PA6",+        "type": "bidirectional",+        "description": "3.3 V-tolerant ADC-connected I/O (TTa); alternate functions SPI1_MISO/I2S1_MCK, TIM3_CH1, TIM1_BKIN, TIM16_CH1, TSC_G2_IO3, EVENTOUT; additional function ADC_IN6."+      },+      {+        "number": "13",+        "name": "PA7",+        "type": "bidirectional",+        "description": "3.3 V-tolerant ADC-connected I/O (TTa); alternate functions SPI1_MOSI/I2S1_SD, TIM3_CH2, TIM14_CH1, TIM1_CH1N, TIM17_CH1, TSC_G2_IO4, EVENTOUT; additional function ADC_IN7."+      },+      {+        "number": "14",+        "name": "PB0",+        "type": "bidirectional",+        "description": "3.3 V-tolerant ADC-connected I/O (TTa); alternate functions TIM3_CH3, TIM1_CH2N, TSC_G3_IO2, EVENTOUT; additional function ADC_IN8."+      },+      {+        "number": "15",+        "name": "PB1",+        "type": "bidirectional",+        "description": "3.3 V-tolerant ADC-connected I/O (TTa); alternate functions TIM3_CH4, TIM14_CH1, TIM1_CH3N, TSC_G3_IO3; additional function ADC_IN9."+      },+      {+        "number": "16",+        "name": "VSS",+        "type": "power_in",+        "description": "Ground pin."+      },+      {+        "number": "17",+        "name": "VDDIO2",+        "type": "power_in",+        "description": "Independent digital power supply for the marked I/Os (PA8-PA15 group), VDDIO2 = 1.65 to 3.6 V; must not be supplied unless VDD is present."+      },+      {+        "number": "18",+        "name": "PA8",+        "type": "bidirectional",+        "description": "5 V-tolerant I/O (FT), supplied from VDDIO2; alternate functions MCO, USART1_CK, TIM1_CH1, EVENTOUT, CRS_SYNC."+      },+      {+        "number": "19",+        "name": "PA9",+        "type": "bidirectional",+        "description": "5 V-tolerant Fm+ capable I/O (FTf), supplied from VDDIO2; alternate functions USART1_TX, TIM1_CH2, TSC_G4_IO1, I2C1_SCL; usable for Flash bootloader USART reprogramming."+      },+      {+        "number": "20",+        "name": "PA10",+        "type": "bidirectional",+        "description": "5 V-tolerant Fm+ capable I/O (FTf), supplied from VDDIO2; alternate functions USART1_RX, TIM1_CH3, TIM17_BKIN, TSC_G4_IO2, I2C1_SDA; usable for Flash bootloader USART reprogramming."+      },+      {+        "number": "21",+        "name": "PA11",+        "type": "bidirectional",+        "description": "5 V-tolerant Fm+ capable I/O (FTf), supplied from VDDIO2; alternate functions CAN_RX, USART1_CTS, TIM1_CH4, TSC_G4_IO3, EVENTOUT, I2C1_SCL; additional function USB_DM; pin pair PA11/12 can be remapped in place of PA9/10 via SYSCFG_CFGR1."+      },+      {+        "number": "22",+        "name": "PA12",+        "type": "bidirectional",+        "description": "5 V-tolerant Fm+ capable I/O (FTf), supplied from VDDIO2; alternate functions CAN_TX, USART1_RTS, TIM1_ETR, TSC_G4_IO4, EVENTOUT, I2C1_SDA; additional function USB_DP."+      },+      {+        "number": "23",+        "name": "PA13",+        "type": "bidirectional",+        "description": "5 V-tolerant I/O (FT), supplied from VDDIO2; alternate functions IR_OUT, SWDIO; additional function USB_NOE; after reset configured as SWDIO with internal pull-up activated."+      },+      {+        "number": "24",+        "name": "PA14",+        "type": "bidirectional",+        "description": "5 V-tolerant I/O (FT), supplied from VDDIO2; alternate functions USART2_TX, SWCLK; after reset configured as SWCLK with internal pull-down activated."+      },+      {+        "number": "25",+        "name": "PA15",+        "type": "bidirectional",+        "description": "5 V-tolerant I/O (FT), supplied from VDDIO2; alternate functions SPI1_NSS/I2S1_WS, USART2_RX, TIM2_CH1_ETR, EVENTOUT; additional function USB_NOE."+      },+      {+        "number": "26",+        "name": "PB3",+        "type": "bidirectional",+        "description": "5 V-tolerant I/O (FT); alternate functions SPI1_SCK/I2S1_CK, TIM2_CH2, TSC_G5_IO1, EVENTOUT."+      },+      {+        "number": "27",+        "name": "PB4",+        "type": "bidirectional",+        "description": "5 V-tolerant I/O (FT); alternate functions SPI1_MISO/I2S1_MCK, TIM17_BKIN, TIM3_CH1, TSC_G5_IO2, EVENTOUT."+      },+      {+        "number": "28",+        "name": "PB5",+        "type": "bidirectional",+        "description": "5 V-tolerant I/O (FT); alternate functions SPI1_MOSI/I2S1_SD, I2C1_SMBA, TIM16_BKIN, TIM3_CH2; additional function WKUP6."+      },+      {+        "number": "29",+        "name": "PB6",+        "type": "bidirectional",+        "description": "5 V-tolerant Fm+ capable I/O (FTf); alternate functions I2C1_SCL, USART1_TX, TIM16_CH1N, TSC_G5_IO3."+      },+      {+        "number": "30",+        "name": "PB7",+        "type": "bidirectional",+        "description": "5 V-tolerant Fm+ capable I/O (FTf); alternate functions I2C1_SDA, USART1_RX, TIM17_CH1N, TSC_G5_IO4."+      },+      {+        "number": "31",+        "name": "PB8-BOOT0",+        "type": "bidirectional",+        "description": "5 V-tolerant Fm+ capable I/O (FTf); alternate functions I2C1_SCL, CEC, TIM16_CH1, TSC_SYNC, CAN_RX; also acts as BOOT0 boot-memory selection input sampled at reset."+      },+      {+        "number": "32",+        "name": "VSS",+        "type": "power_in",+        "description": "Ground pin; on packages other than the 48-pin ones there is no separate VSSA pin, so the VSSA analog ground pad of the silicon die is internally bonded to this VSS pin."+      }+    ],+    "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: Both pins are labeled as PB8 in the datasheet - pin 31 is specifically identified as PB8-BOOT0 (with"+        ],+        "pages_sent": 118,+        "cost_usd": 1.3427,+        "at": "2026-09-23T14:46:22"+      },+      "datasheet": {+        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8586176041157611520",+        "pages": 118,+        "sha256": "4c7b3ccc0428dbff",+        "source_tier": "lcsc"+      },+      "cad": "KiCad official (CC-BY-SA 4.0)",+      "pins": {+        "total": 32,+        "described": 32,+        "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