main
Ray Publish 0.2.2 aa0c494
{
  "schema_version": 1,
  "type": "component",
  "slug": "stm32f042f6p6",
  "title": "STM32F042F6P6",
  "brief": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), TSSOP-20. Pinout checked against ST's open pin data, KiCad symbol/footprint/3D.",
  "version": "0.2.2",
  "license": "CC-BY-SA-4.0",
  "tags": [
    "component",
    "mcu",
    "stm32f042f6p6"
  ],
  "component": {
    "mpn": "STM32F042F6P6",
    "manufacturer": "STMicroelectronics",
    "package": "TSSOP-20",
    "pin_count": 20,
    "category": "MCU",
    "subcategory": "Microcontrollers (MCU/MPU/SOC)",
    "datasheet": "https://www.st.com/resource/en/datasheet/stm32f042f6p6.pdf",
    "parts": {
      "symbol": "stm32f042f6p6.kicad_sym",
      "footprint": "stm32f042f6p6.kicad_mod",
      "model_3d": "stm32f042f6p6-hero.glb",
      "model_3d_plain": "stm32f042f6p6.glb",
      "model_3d_step": "stm32f042f6p6-etched.step",
      "model_3d_step_plain": "stm32f042f6p6.step",
      "lbr": "stm32f042f6p6.lbr"
    },
    "distributor_links": {
      "digikey": "497-17344-ND",
      "lcsc": "C81000"
    },
    "pins": [
      {
        "number": "1",
        "name": "PB8",
        "type": "bidirectional",
        "description": "General-purpose I/O (FTf: 5V-tolerant, Fast-Mode+ I2C capable). Also serves as BOOT0 pin to select boot memory (main Flash / system memory / embedded SRAM). Alternate functions: I2C1_SCL, CEC, TIM16_CH1, TSC_SYNC, CAN_RX."
      },
      {
        "number": "2",
        "name": "PF0-OSC_IN",
        "type": "bidirectional",
        "description": "5V-tolerant, FM+ capable I/O. Additional function: HSE crystal oscillator input (OSC_IN). Alternate functions: CRS_SYNC, I2C1_SDA."
      },
      {
        "number": "3",
        "name": "PF1-OSC_OUT",
        "type": "bidirectional",
        "description": "5V-tolerant, FM+ capable I/O. Additional function: HSE crystal oscillator output (OSC_OUT). Alternate function: I2C1_SCL."
      },
      {
        "number": "4",
        "name": "NRST",
        "type": "input",
        "description": "Device reset input / internal reset output (active low). Bidirectional pin with embedded weak pull-up resistor (RST I/O structure)."
      },
      {
        "number": "5",
        "name": "VDDA",
        "type": "power_in",
        "description": "Analog power supply, 2.0 - 3.6 V. Powers the ADC, reset block, PLL and internal regulator analog sections."
      },
      {
        "number": "6",
        "name": "PA0",
        "type": "bidirectional",
        "description": "TTa I/O (3.3 V-tolerant, ADC-connected). Additional functions: RTC_TAMP2, WKUP1, ADC_IN0. Alternate functions: USART2_CTS, TIM2_CH1_ETR, TSC_G1_IO1."
      },
      {
        "number": "7",
        "name": "PA1",
        "type": "bidirectional",
        "description": "TTa I/O (3.3 V-tolerant, ADC-connected). Additional function: ADC_IN1. Alternate functions: EVENTOUT, USART2_RTS, TIM2_CH2, TSC_G1_IO2."
      },
      {
        "number": "8",
        "name": "PA2",
        "type": "bidirectional",
        "description": "TTa I/O (3.3 V-tolerant, ADC-connected). Additional functions: ADC_IN2, WKUP4. Alternate functions: USART2_TX, TIM2_CH3, TSC_G1_IO3."
      },
      {
        "number": "9",
        "name": "PA3",
        "type": "bidirectional",
        "description": "TTa I/O (3.3 V-tolerant, ADC-connected). Additional function: ADC_IN3. Alternate functions: USART2_RX, TIM2_CH4, TSC_G1_IO4."
      },
      {
        "number": "10",
        "name": "PA4",
        "type": "bidirectional",
        "description": "TTa I/O (3.3 V-tolerant, ADC-connected). Additional function: ADC_IN4. Alternate functions: SPI1_NSS, I2S1_WS, TIM14_CH1, TSC_G2_IO1, USART2_CK, USB_NOE."
      },
      {
        "number": "11",
        "name": "PA5",
        "type": "bidirectional",
        "description": "TTa I/O (3.3 V-tolerant, ADC-connected). Additional function: ADC_IN5. Alternate functions: SPI1_SCK, I2S1_CK, CEC, TIM2_CH1_ETR, TSC_G2_IO2."
      },
      {
        "number": "12",
        "name": "PA6",
        "type": "bidirectional",
        "description": "TTa I/O (3.3 V-tolerant, ADC-connected). Additional function: ADC_IN6. Alternate functions: SPI1_MISO, I2S1_MCK, TIM3_CH1, TIM1_BKIN, TIM16_CH1, TSC_G2_IO3, EVENTOUT."
      },
      {
        "number": "13",
        "name": "PA7",
        "type": "bidirectional",
        "description": "TTa I/O (3.3 V-tolerant, ADC-connected). Additional function: ADC_IN7. Alternate functions: SPI1_MOSI, I2S1_SD, TIM3_CH2, TIM14_CH1, TIM1_CH1N, TIM17_CH1, TSC_G2_IO4, EVENTOUT."
      },
      {
        "number": "14",
        "name": "PB1",
        "type": "bidirectional",
        "description": "TTa I/O (3.3 V-tolerant, ADC-connected). Additional function: ADC_IN9. Alternate functions: TIM3_CH4, TIM14_CH1, TIM1_CH3N, TSC_G3_IO3."
      },
      {
        "number": "15",
        "name": "VSSA",
        "type": "power_in",
        "description": ""
      },
      {
        "number": "16",
        "name": "VDD",
        "type": "power_in",
        "description": "Digital power supply, 2.0 - 3.6 V. On TSSOP20 this pin is shared with VDDIO2 (supply for PA8-PA15 I/Os); both are bonded to the same package pin."
      },
      {
        "number": "17",
        "name": "PA9",
        "type": "bidirectional",
        "description": "FTf I/O (5V-tolerant, FM+ capable), powered by VDDIO2. Alternate functions: USART1_TX, TIM1_CH2, TSC_G4_IO1, I2C1_SCL, MCO. PA11 can be remapped to this pin via SYSCFG_CFGR1."
      },
      {
        "number": "18",
        "name": "PA10",
        "type": "bidirectional",
        "description": "FTf I/O (5V-tolerant, FM+ capable), powered by VDDIO2. Alternate functions: USART1_RX, TIM1_CH3, TIM17_BKIN, TSC_G4_IO2, I2C1_SDA. PA12 can be remapped to this pin via SYSCFG_CFGR1."
      },
      {
        "number": "19",
        "name": "PA13",
        "type": "bidirectional",
        "description": "FT I/O (5V-tolerant), powered by VDDIO2. After reset configured as SWDIO with internal pull-up. Alternate functions: SWDIO, IR_OUT, USB_NOE."
      },
      {
        "number": "20",
        "name": "PA14",
        "type": "bidirectional",
        "description": "FT I/O (5V-tolerant), powered by VDDIO2. After reset configured as SWCLK with internal pull-down. Alternate functions: SWCLK, USART2_TX."
      }
    ],
    "provenance": {
      "extractor": "ds2sf",
      "datasheet": {
        "url": "https://www.st.com/resource/en/datasheet/stm32f042f6p6.pdf",
        "pages": 118,
        "sha256": "4c7b3ccc0428dbff",
        "source_tier": "mfr"
      },
      "cad": "KiCad official (CC-BY-SA 4.0)",
      "pins": {
        "total": 20,
        "described": 20,
        "cites_pages": true,
        "refuses_to_fabricate": true,
        "checked_against": "STMicroelectronics STM32_open_pin_data (STM32F042F6Px.xml, TSSOP20)"
      },
      "correction": {
        "at": "2026-10-01",
        "what": "1 of 20 pins corrected",
        "how": "pinout replaced from STMicroelectronics STM32_open_pin_data (STM32F042F6Px.xml, TSSOP20); the previous pinout came from an earlier extraction",
        "symbol": "regenerated from the corrected pinout"
      }
    },
    "viewers": {
      "symbol": "viewers/symbol.html",
      "footprint": "viewers/footprint.html"
    },
    "pin1": {
      "pad": "1",
      "at": [
        -2.8625,
        -2.925
      ],
      "corner": "top-left",
      "source": "silk-marker",
      "derived_from": "TSSOP-20_4.4x6.5mm_P0.65mm@sha256:b7ca3a31dd45c122",
      "mark": "drawn"
    },
    "mcu": {
      "part_number": "STM32F042F6P6",
      "series": "STM32F0",
      "subfamily": "STM32F042",
      "core": "Arm Cortex-M0",
      "frequency_mhz": 48,
      "flash_kb": 32,
      "ram_kb": 6,
      "io_count": 16,
      "package": "TSSOP-20",
      "marketing_status": "Active",
      "fpu": null,
      "supply_v_min": 2,
      "supply_v_max": 3.6,
      "temp_min_c": -40,
      "temp_max_c": 85,
      "adc_count": 1,
      "timers": 5,
      "in_distributor_stock": true,
      "product_folder": "/en/microcontrollers-microprocessors/stm32f042f6.html",
      "source": "st.com portfolio grid CL1734"
    },
    "models_3d": [
      {
        "file": "stm32f042f6p6.step",
        "role": "plain",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          6.4,
          6.5,
          1.2
        ],
        "zmin_mm": 0,
        "centre_offset_mm": 0,
        "footprint_binding": "identity",
        "sha256": "97339947f3a7196470ec2f1d9f9b92bb2fc2ab66ad53be0cf105192585ef3c9a",
        "checked": "2026-10-07",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stm32f042f6p6-etched.step",
        "role": "eda",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          6.4,
          6.5,
          1.2
        ],
        "zmin_mm": 0,
        "centre_offset_mm": 0,
        "footprint_binding": "identity",
        "sha256": "c79c19e605735f28a260e4a4a7ddf02ff6819fe5830dc0a407a6eb9d93cd2128",
        "checked": "2026-10-07",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  },
  "metadata": {
    "specs": {
      "Core": "Arm Cortex-M0",
      "Max clock": "48 MHz",
      "Flash": "32 kB",
      "RAM": "6 kB",
      "I/O pins": 16,
      "ADC units": 1,
      "ST status": "Active",
      "Manufacturer": "STMicroelectronics",
      "Package": "TSSOP-20",
      "Category": "MCU",
      "Pins": "20"
    }
  },
  "sections": [
    "hero",
    "viewers",
    "readme",
    "breadcrumbs",
    "info"
  ],
  "discovery_triggers": [
    "stm32f042f6p6"
  ],
  "discovery_pitch": "STM32F042F6P6 (STMicroelectronics) component page with datasheet-verified CAD.",
  "author": {
    "name": "Ray"
  },
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stm32f042f6p6.kicad_sym",
    "stm32f042f6p6.kicad_mod",
    "stm32f042f6p6.glb",
    "stm32f042f6p6.step",
    "stm32f042f6p6-etched.step",
    "stm32f042f6p6.lbr",
    "docs/hero.png",
    "docs/stm32f042f6p6-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "pads.json",
    "stm32f042f6p6-hero.glb",
    "stm32f042f6p6-hero.overlay.json"
  ],
  "visibility": "public",
  "variants": [
    {
      "mpn": "STM32F042F6P6",
      "kind": "packaging"
    },
    {
      "mpn": "STM32F042F6P6F4P6",
      "kind": "packaging"
    },
    {
      "mpn": "STM32F042F6P6F6P7",
      "kind": "packaging"
    },
    {
      "mpn": "STM32F042F6P6F4P7",
      "kind": "packaging"
    },
    {
      "mpn": "STM32F042F6P6G6U6",
      "kind": "packaging"
    },
    {
      "mpn": "STM32F042F6P6G4U6",
      "kind": "packaging"
    },
    {
      "mpn": "STM32F042F6P6T6Y6",
      "kind": "packaging"
    },
    {
      "mpn": "STM32F042F6P6T4Y6",
      "kind": "packaging"
    },
    {
      "mpn": "STM32F042F6P6K6T6",
      "kind": "packaging"
    },
    {
      "mpn": "STM32F042F6P6K4T6",
      "kind": "packaging"
    },
    {
      "mpn": "STM32F042F6P6K6U6",
      "kind": "packaging"
    },
    {
      "mpn": "STM32F042F6P6K4U6",
      "kind": "packaging"
    },
    {
      "mpn": "STM32F042F6P6C6T6",
      "kind": "packaging"
    },
    {
      "mpn": "STM32F042F6P6C4T6",
      "kind": "packaging"
    },
    {
      "mpn": "STM32F042F6P6C6U6",
      "kind": "packaging"
    },
    {
      "mpn": "STM32F042F6P6C4U6",
      "kind": "packaging"
    }
  ],
  "updated_at": "2026-09-25T08:40:05.719Z",
  "description": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), TSSOP-20. Datasheet-verified pinout, KiCad symbol/footprint/3D.",
  "org": "adom"
}