main
Ray stm8af6223pau: component.models_3d pose record per STEP (Z-up, seated z=0, pad-centre origin, identity binding) c7b7757
{
  "schema_version": 1,
  "type": "component",
  "slug": "stm8af6223pau",
  "title": "STM8AF6223PAU",
  "brief": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), TSSOP-20. Pinout extracted from the datasheet, KiCad symbol/footprint/3D.",
  "version": "0.1.0",
  "license": "CC-BY-SA-4.0",
  "tags": [
    "component",
    "embedded processors & controllers",
    "stm8af6223pau"
  ],
  "component": {
    "mpn": "STM8AF6223PAU",
    "manufacturer": "STMicroelectronics",
    "package": "TSSOP-20",
    "pin_count": 20,
    "category": "Embedded Processors & Controllers",
    "subcategory": "Microcontrollers (MCU/MPU/SOC)",
    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588893747367055360",
    "parts": {
      "symbol": "stm8af6223pau.kicad_sym",
      "footprint": "stm8af6223pau.kicad_mod",
      "model_3d": "stm8af6223pau-etched.glb",
      "model_3d_plain": "stm8af6223pau.glb",
      "model_3d_step": "stm8af6223pau-etched.step",
      "model_3d_step_plain": "stm8af6223pau.step",
      "lbr": "stm8af6223pau.lbr"
    },
    "distributor_links": {},
    "pins": [
      {
        "number": "1",
        "name": "PD4/TIM5_CH1/BEEP/[LINUART_CK]",
        "type": "bidirectional",
        "description": "Port D4 general-purpose I/O with high-sink drive (up to 20 mA). Default alternate function is TIM5 channel 1 / BEEP output. Remappable to LINUART clock (LINUART_CK) via option bit AFR2."
      },
      {
        "number": "2",
        "name": "PD5/AIN5/LINUART_TX",
        "type": "bidirectional",
        "description": "Port D5 high-sink I/O. Doubles as ADC analog input AIN5 and LINUART data transmit (TX)."
      },
      {
        "number": "3",
        "name": "PD6/AIN6/LINUART_RX",
        "type": "bidirectional",
        "description": "Port D6 high-sink I/O. Doubles as ADC analog input AIN6 and LINUART data receive (RX)."
      },
      {
        "number": "4",
        "name": "NRST",
        "type": "bidirectional",
        "description": "Active-low bidirectional reset pin with internal weak pull-up. Drive low externally to reset the MCU; the pin is also driven low by internal reset sources."
      },
      {
        "number": "5",
        "name": "PA1/OSCIN",
        "type": "bidirectional",
        "description": "Port A1 general-purpose I/O; also HSE crystal/resonator input (OSCIN) or external clock input. Slow-slew (up to 2 MHz) output driver."
      },
      {
        "number": "6",
        "name": "PA2/OSCOUT",
        "type": "bidirectional",
        "description": "Port A2 general-purpose I/O; also HSE crystal/resonator output (OSCOUT). Slow-slew (up to 2 MHz) output driver."
      },
      {
        "number": "7",
        "name": "VSS",
        "type": "power_in",
        "description": "Digital ground reference (0 V) for the MCU core and I/O."
      },
      {
        "number": "8",
        "name": "VCAP",
        "type": "passive",
        "description": "1.8 V internal regulator decoupling pin. Connect an external ceramic capacitor (typ. 470 nF - 1 µF) to VSS; do not drive externally."
      },
      {
        "number": "9",
        "name": "VDD",
        "type": "power_in",
        "description": "Main digital power supply, 3.0 to 5.5 V operating range (absolute max 6.0 V). Also supplies the ADC reference internally."
      },
      {
        "number": "10",
        "name": "PA3/TIM5_CH3/[SPI_NSS]",
        "type": "bidirectional",
        "description": "Port A3 high-sink I/O. Default alternate function TIM5 channel 3; remappable to SPI master/slave select (SPI_NSS) via option bit AFR1."
      },
      {
        "number": "11",
        "name": "PB5/I2C_SDA/[TIM1_BKIN]",
        "type": "bidirectional",
        "description": "Port B5 true open-drain I/O (no P-buffer, no weak pull-up, no protection diode to VDD). Default alternate function I²C data (SDA); remappable to TIM1 break input via option bit AFR4. Requires external pull-up to VDD."
      },
      {
        "number": "12",
        "name": "PB4/I2C_SCL/[ADC_ETR]",
        "type": "bidirectional",
        "description": "Port B4 true open-drain I/O. Default alternate function I²C clock (SCL); remappable to ADC external trigger (ADC_ETR) via option bit AFR4. Requires external pull-up to VDD."
      },
      {
        "number": "13",
        "name": "PC3/TIM1_CH3/[TLI]/[TIM1_CH1N]",
        "type": "bidirectional",
        "description": "Port C3 high-sink I/O. Default alternate function TIM1 channel 3; remappable to Top-Level Interrupt (TLI) via option bit AFR3, or to TIM1 inverted channel 1 (CH1N) via AFR7."
      },
      {
        "number": "14",
        "name": "PC4/TIM1_CH4/CLK_CCO/AIN2/[TIM1_CH2N]",
        "type": "bidirectional",
        "description": "Port C4 high-sink I/O. Default alternate functions TIM1 channel 4 and configurable clock output (CCO). Also serves as ADC analog input AIN2 (via AFR2) and remappable to TIM1 inverted channel 2 (CH2N) via AFR7."
      },
      {
        "number": "15",
        "name": "PC5/SPI_SCK/[TIM5_CH1]",
        "type": "bidirectional",
        "description": "Port C5 high-sink I/O. Default alternate function SPI clock (SCK); remappable to TIM5 channel 1 via option bit AFR0."
      },
      {
        "number": "16",
        "name": "PC6/SPI_MOSI/[TIM1_CH1]",
        "type": "bidirectional",
        "description": "Port C6 high-sink I/O. Default alternate function SPI MOSI (master-out/slave-in); remappable to TIM1 channel 1 via option bit AFR0."
      },
      {
        "number": "17",
        "name": "PC7/SPI_MISO/[TIM1_CH2]",
        "type": "bidirectional",
        "description": "Port C7 high-sink I/O. Default alternate function SPI MISO (master-in/slave-out); remappable to TIM1 channel 2 via option bit AFR0."
      },
      {
        "number": "18",
        "name": "PD1/SWIM",
        "type": "bidirectional",
        "description": "Port D1 high-sink I/O; also the SWIM (Single-Wire Interface Module) data pin used for in-circuit debug and Flash programming. Held in input pull-up during and after reset."
      },
      {
        "number": "19",
        "name": "PD2/AIN3/[TIM5_CH3]",
        "type": "bidirectional",
        "description": "Port D2 high-sink I/O. Serves as ADC analog input AIN3 (via AFR2) and remappable to TIM5 channel 3 via option bit AFR1."
      },
      {
        "number": "20",
        "name": "PD3/AIN4/TIM5_CH2/ADC_ETR",
        "type": "bidirectional",
        "description": "Port D3 high-sink I/O. Default alternate functions ADC analog input AIN4, TIM5 channel 2, and ADC external trigger (ADC_ETR)."
      }
    ],
    "provenance": {
      "extractor": "ds2sf",
      "datasheet": {
        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588893747367055360",
        "pages": null,
        "sha256": "d9cd5dcf0815e39e",
        "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"
    },
    "models_3d": [
      {
        "file": "stm8af6223pau.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": "stm8af6223pau-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": "ce370765a60d27e2e79332b56b29de4a08fa40da9d2f81b28a23d875de4c0d27",
        "checked": "2026-10-07",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  },
  "metadata": {
    "specs": {
      "Manufacturer": "STMicroelectronics",
      "Package": "TSSOP-20",
      "Category": "Embedded Processors & Controllers",
      "Pins": "20"
    }
  },
  "variants": [
    {
      "mpn": "STM8AF6223PAU",
      "kind": "packaging"
    },
    {
      "mpn": "STM8AF6223PAY",
      "kind": "unknown"
    },
    {
      "mpn": "STM8AF6223PAX",
      "kind": "unknown"
    },
    {
      "mpn": "STM8AF6223PCU",
      "kind": "unknown"
    },
    {
      "mpn": "STM8AF6223PCY",
      "kind": "unknown"
    },
    {
      "mpn": "STM8AF6223PCX",
      "kind": "unknown"
    },
    {
      "mpn": "STM8AF6223PDU",
      "kind": "unknown"
    },
    {
      "mpn": "STM8AF6223PDY",
      "kind": "unknown"
    },
    {
      "mpn": "STM8AF6223PDX",
      "kind": "unknown"
    },
    {
      "mpn": "STM8AF6213PxA/C/Dx",
      "kind": "unknown"
    },
    {
      "mpn": "STM8AF6223PxAx",
      "kind": "unknown"
    },
    {
      "mpn": "STM8AF6213PxAx",
      "kind": "unknown"
    },
    {
      "mpn": "STM8AF6226TAx",
      "kind": "unknown"
    },
    {
      "mpn": "STM8AF6226TCx",
      "kind": "unknown"
    },
    {
      "mpn": "STM8AF6226TDx",
      "kind": "unknown"
    },
    {
      "mpn": "STM8AF6226UAx",
      "kind": "unknown"
    },
    {
      "mpn": "STM8AF6226UCx",
      "kind": "unknown"
    },
    {
      "mpn": "STM8AF6226UDx",
      "kind": "unknown"
    }
  ],
  "sections": [
    "hero",
    "viewers",
    "readme",
    "breadcrumbs",
    "info"
  ],
  "discovery_triggers": [
    "stm8af6223pau"
  ],
  "discovery_pitch": "STM8AF6223PAU (STMicroelectronics) component page with datasheet-verified CAD.",
  "author": {
    "name": "Ray"
  },
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stm8af6223pau.kicad_sym",
    "stm8af6223pau.kicad_mod",
    "stm8af6223pau.glb",
    "stm8af6223pau.step",
    "stm8af6223pau.lbr",
    "docs/hero.png",
    "docs/stm8af6223pau-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html"
  ],
  "visibility": {
    "public": true
  },
  "updated_at": "2026-09-25T08:58:50.575Z"
}