← Commit history
README.mdadded+56@@ -0,0 +1,56 @@+# STM32F042F4P6++**STMicroelectronics** · Microcontrollers (MCU/MPU/SOC) · TSSOP-20++STM32F042F4P6 from STMicroelectronics, in a TSSOP-20. Pinout and pin descriptions extracted from the manufacturer datasheet (extract_pins, cross-checked by a second model, then checked against ST open pin data); symbol, footprint, and 3D from KiCad-official CAD.++## Pinout++| Pin | Name | Type | Function |+|---|---|---|---|+| 1 | PB8-BOOT0 | bidirectional | 5V-tolerant FM+-capable (FTf) I/O; doubles as BOOT0 boot-memory-selection input; alternate functions I2C1_SCL, CEC, TIM16_CH1, TSC_SYNC, CAN_RX. |+| 2 | PF0-OSC_IN | bidirectional | 5V-tolerant FM+-capable (FTf) I/O; default GPIO PF0 after reset; additional function OSC_IN (HSE crystal input, 4-32 MHz); alternate functions CRS_SYNC (AF0), I2C1_SDA (AF1). |+| 3 | PF1-OSC_OUT | bidirectional | 5V-tolerant FM+-capable (FTf) I/O; default GPIO PF1 after reset; additional function OSC_OUT (HSE crystal output); alternate function I2C1_SCL (AF1). |+| 4 | NRST | bidirectional | Active-low device reset input / internal reset output with embedded 25-55 kΩ pull-up resistor; input pulses shorter than 100 ns are filtered and not recognised as reset. |+| 5 | VDDA | power_in | Analog power supply 2.0-3.6 V (minimum 2.4 V when ADC is used); must be ≥ VDD; powers ADC, internal oscillators, PLL, and voltage reference. |+| 6 | PA0 | bidirectional | 3.3V-tolerant (TTa) analog-capable I/O; alternate functions USART2_CTS, TIM2_CH1_ETR, TSC_G1_IO1; additional functions WKUP1, RTC_TAMP2, ADC_IN0. |+| 7 | PA1 | bidirectional | 3.3V-tolerant (TTa) analog-capable I/O; input range 0 V to VDDA; alternate functions USART2_RTS, TIM2_CH2, TSC_G1_IO2, EVENTOUT; additional function ADC_IN1. |+| 8 | PA2 | bidirectional | 3.3V-tolerant (TTa) analog-capable I/O; alternate functions USART2_TX, TIM2_CH3, TSC_G1_IO3; additional functions ADC_IN2, WKUP4. |+| 9 | PA3 | bidirectional | 3.3V-tolerant (TTa) analog-capable I/O; alternate functions USART2_RX, TIM2_CH4, TSC_G1_IO4; additional function ADC_IN3. |+| 10 | PA4 | bidirectional | 3.3V-tolerant (TTa) analog-capable I/O; alternate functions SPI1_NSS/I2S1_WS, TIM14_CH1, TSC_G2_IO1, USART2_CK; additional functions USB_NOE, ADC_IN4. |+| 11 | PA5 | bidirectional | 3.3V-tolerant (TTa) analog-capable I/O; alternate functions SPI1_SCK/I2S1_CK, CEC, TIM2_CH1_ETR, TSC_G2_IO2; additional function ADC_IN5. |+| 12 | PA6 | bidirectional | 3.3V-tolerant (TTa) analog-capable I/O; alternate functions SPI1_MISO/I2S1_MCK, TIM3_CH1, TIM1_BKIN, TIM16_CH1, TSC_G2_IO3, EVENTOUT; additional function ADC_IN6. |+| 13 | PA7 | bidirectional | 3.3V-tolerant (TTa) analog-capable I/O; alternate functions SPI1_MOSI/I2S1_SD, TIM3_CH2, TIM14_CH1, TIM1_CH1N, TIM17_CH1, TSC_G2_IO4, EVENTOUT; additional function ADC_IN7. |+| 14 | PB1 | bidirectional | 3.3V-tolerant (TTa) analog-capable I/O; alternate functions TIM3_CH4, TIM14_CH1, TIM1_CH3N, TSC_G3_IO3; additional function ADC_IN9. |+| 15 | VSS | power_in | Digital and analog ground (0 V reference); the VSSA pad of the silicon die is internally connected to this pin on all packages below 48 pins (no separate VSSA pin on TSSOP20). |+| 16 | VDD | power_in | 2.0-3.6 V main digital power supply; on TSSOP20 both VDD and VDDIO2 table entries map to this single pin, so VDDIO2-supplied I/Os (PA9, PA10, PA13, PA14) are also powered from here. |+| 17 | PA9 | bidirectional | 5V-tolerant FM+-capable (FTf) I/O supplied by VDDIO2; default PA9 (USART1_TX, TIM1_CH2, TSC_G4_IO1, I2C1_SCL); remappable to PA11 (CAN_RX, USART1_CTS, TIM1_CH4, USB_DM) via SYSCFG_CFGR1. |+| 18 | PA10 | bidirectional | 5V-tolerant FM+-capable (FTf) I/O supplied by VDDIO2; default PA10 (USART1_RX, TIM1_CH3, TIM17_BKIN, TSC_G4_IO2, I2C1_SDA); remappable to PA12 (CAN_TX, USART1_RTS, TIM1_ETR, USB_DP) via SYSCFG_CFGR1. |+| 19 | PA13 | bidirectional | 5V-tolerant (FT) I/O supplied by VDDIO2; configured as SWDIO (internal pull-up activated) after reset; alternate functions IR_OUT (AF1), USB_NOE (AF2). |+| 20 | PA14 | bidirectional | 5V-tolerant (FT) I/O supplied by VDDIO2; configured as SWCLK (internal pull-down activated) after reset; alternate function USART2_TX (AF1). |++## Key specifications++| Parameter | Value |+|---|---|+| Manufacturer | STMicroelectronics |+| Package | TSSOP-20 |+| Category | Embedded Processors & Controllers |+| Pins | 20 |++## CAD (KiCad official)++- Symbol: `STM32F042F4P6`+- Footprint: `Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm`+- 3D model: TSSOP-20 (KiCad packages3D, STEP)+- 3D model files: `stm32f042f4p6-etched.step` / `stm32f042f4p6-etched.glb` carry the MPN laser-etched on the die in a toggleable `Adom.LaserEtch` group (Fusion-ready); `stm32f042f4p6.step` / `stm32f042f4p6.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/8588882166306914304) (117 pp, sha256 `7af7ec8f5a596b23`, retrieved 2026-09-26, 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/stm32f042f4p6-datasheet.pdf)
page.jsonadded+229@@ -0,0 +1,229 @@+{+ "slug": "stm32f042f4p6",+ "version": "0.1.0",+ "type": "component",+ "description": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), TSSOP-20. Pinout checked against ST's open pin data, KiCad symbol/footprint/3D.",+ "tags": [+ "component",+ "embedded processors & controllers",+ "stm32f042f4p6",+ "factory-2.0.0",+ "extractor-text"+ ],+ "dependencies": {},+ "hero": {+ "type": "image",+ "path": "docs/hero.png"+ },+ "files": [+ "page.json",+ "README.md",+ "stm32f042f4p6.kicad_sym",+ "stm32f042f4p6.kicad_mod",+ "stm32f042f4p6.glb",+ "stm32f042f4p6.step",+ "stm32f042f4p6.lbr",+ "docs/hero.png",+ "docs/stm32f042f4p6-datasheet.pdf",+ "viewers/symbol.html",+ "viewers/footprint.html"+ ],+ "component": {+ "mpn": "STM32F042F4P6",+ "manufacturer": "STMicroelectronics",+ "package": "TSSOP-20",+ "pin_count": 20,+ "category": "Embedded Processors & Controllers",+ "subcategory": "Microcontrollers (MCU/MPU/SOC)",+ "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588882166306914304",+ "parts": {+ "symbol": "stm32f042f4p6.kicad_sym",+ "footprint": "stm32f042f4p6.kicad_mod",+ "model_3d": "stm32f042f4p6-etched.glb",+ "model_3d_plain": "stm32f042f4p6.glb",+ "model_3d_step": "stm32f042f4p6-etched.step",+ "model_3d_step_plain": "stm32f042f4p6.step",+ "lbr": "stm32f042f4p6.lbr"+ },+ "distributor_links": {+ "lcsc": "C81002",+ "digikey": "497-17343-ND",+ "mouser": "511-STM32F042F4P6"+ },+ "distributor_check": {+ "checked_at": "2026-09-26T16:38:30Z",+ "source": "Component Ocean /api/assign-pns",+ "digikey": {+ "pn": "497-17343-ND",+ "status": "found"+ },+ "mouser": {+ "pn": "511-STM32F042F4P6",+ "status": "found"+ }+ },+ "pins": [+ {+ "number": "1",+ "name": "PB8-BOOT0",+ "type": "bidirectional",+ "description": "5V-tolerant FM+-capable (FTf) I/O; doubles as BOOT0 boot-memory-selection input; alternate functions I2C1_SCL, CEC, TIM16_CH1, TSC_SYNC, CAN_RX."+ },+ {+ "number": "2",+ "name": "PF0-OSC_IN",+ "type": "bidirectional",+ "description": "5V-tolerant FM+-capable (FTf) I/O; default GPIO PF0 after reset; additional function OSC_IN (HSE crystal input, 4-32 MHz); alternate functions CRS_SYNC (AF0), I2C1_SDA (AF1)."+ },+ {+ "number": "3",+ "name": "PF1-OSC_OUT",+ "type": "bidirectional",+ "description": "5V-tolerant FM+-capable (FTf) I/O; default GPIO PF1 after reset; additional function OSC_OUT (HSE crystal output); alternate function I2C1_SCL (AF1)."+ },+ {+ "number": "4",+ "name": "NRST",+ "type": "bidirectional",+ "description": "Active-low device reset input / internal reset output with embedded 25-55 kΩ pull-up resistor; input pulses shorter than 100 ns are filtered and not recognised as reset."+ },+ {+ "number": "5",+ "name": "VDDA",+ "type": "power_in",+ "description": "Analog power supply 2.0-3.6 V (minimum 2.4 V when ADC is used); must be ≥ VDD; powers ADC, internal oscillators, PLL, and voltage reference."+ },+ {+ "number": "6",+ "name": "PA0",+ "type": "bidirectional",+ "description": "3.3V-tolerant (TTa) analog-capable I/O; alternate functions USART2_CTS, TIM2_CH1_ETR, TSC_G1_IO1; additional functions WKUP1, RTC_TAMP2, ADC_IN0."+ },+ {+ "number": "7",+ "name": "PA1",+ "type": "bidirectional",+ "description": "3.3V-tolerant (TTa) analog-capable I/O; input range 0 V to VDDA; alternate functions USART2_RTS, TIM2_CH2, TSC_G1_IO2, EVENTOUT; additional function ADC_IN1."+ },+ {+ "number": "8",+ "name": "PA2",+ "type": "bidirectional",+ "description": "3.3V-tolerant (TTa) analog-capable I/O; alternate functions USART2_TX, TIM2_CH3, TSC_G1_IO3; additional functions ADC_IN2, WKUP4."+ },+ {+ "number": "9",+ "name": "PA3",+ "type": "bidirectional",+ "description": "3.3V-tolerant (TTa) analog-capable I/O; alternate functions USART2_RX, TIM2_CH4, TSC_G1_IO4; additional function ADC_IN3."+ },+ {+ "number": "10",+ "name": "PA4",+ "type": "bidirectional",+ "description": "3.3V-tolerant (TTa) analog-capable I/O; alternate functions SPI1_NSS/I2S1_WS, TIM14_CH1, TSC_G2_IO1, USART2_CK; additional functions USB_NOE, ADC_IN4."+ },+ {+ "number": "11",+ "name": "PA5",+ "type": "bidirectional",+ "description": "3.3V-tolerant (TTa) analog-capable I/O; 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.3V-tolerant (TTa) analog-capable I/O; 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.3V-tolerant (TTa) analog-capable I/O; 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": "PB1",+ "type": "bidirectional",+ "description": "3.3V-tolerant (TTa) analog-capable I/O; alternate functions TIM3_CH4, TIM14_CH1, TIM1_CH3N, TSC_G3_IO3; additional function ADC_IN9."+ },+ {+ "number": "15",+ "name": "VSS",+ "type": "power_in",+ "description": "Digital and analog ground (0 V reference); the VSSA pad of the silicon die is internally connected to this pin on all packages below 48 pins (no separate VSSA pin on TSSOP20)."+ },+ {+ "number": "16",+ "name": "VDD",+ "type": "power_in",+ "description": "2.0-3.6 V main digital power supply; on TSSOP20 both VDD and VDDIO2 table entries map to this single pin, so VDDIO2-supplied I/Os (PA9, PA10, PA13, PA14) are also powered from here."+ },+ {+ "number": "17",+ "name": "PA9",+ "type": "bidirectional",+ "description": "5V-tolerant FM+-capable (FTf) I/O supplied by VDDIO2; default PA9 (USART1_TX, TIM1_CH2, TSC_G4_IO1, I2C1_SCL); remappable to PA11 (CAN_RX, USART1_CTS, TIM1_CH4, USB_DM) via SYSCFG_CFGR1."+ },+ {+ "number": "18",+ "name": "PA10",+ "type": "bidirectional",+ "description": "5V-tolerant FM+-capable (FTf) I/O supplied by VDDIO2; default PA10 (USART1_RX, TIM1_CH3, TIM17_BKIN, TSC_G4_IO2, I2C1_SDA); remappable to PA12 (CAN_TX, USART1_RTS, TIM1_ETR, USB_DP) via SYSCFG_CFGR1."+ },+ {+ "number": "19",+ "name": "PA13",+ "type": "bidirectional",+ "description": "5V-tolerant (FT) I/O supplied by VDDIO2; configured as SWDIO (internal pull-up activated) after reset; alternate functions IR_OUT (AF1), USB_NOE (AF2)."+ },+ {+ "number": "20",+ "name": "PA14",+ "type": "bidirectional",+ "description": "5V-tolerant (FT) I/O supplied by VDDIO2; configured as SWCLK (internal pull-down activated) after reset; alternate function USART2_TX (AF1)."+ }+ ],+ "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: Pin 2 (PB2) and Pin 3 (PB3) assignments require verification - Table 13 shows different package colu; The MPN STM32F042F4P6 appears to be the base STM32F042F4 (16 KB Flash) variant - confirm if full pin"+ ],+ "pages_sent": 117,+ "cost_usd": 1.148,+ "at": "2026-09-26T16:38:10"+ },+ "datasheet": {+ "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588882166306914304",+ "pages": 117,+ "sha256": "7af7ec8f5a596b23",+ "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]"+ }+}