main
Ray stm8s903k3t6c: component.models_3d pose record per STEP (Z-up, seated z=0, pad-centre origin, identity binding) 69b9d99
{
  "slug": "stm8s903k3t6c",
  "version": "0.1.0",
  "type": "component",
  "description": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-32(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "embedded processors & controllers",
    "stm8s903k3t6c",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stm8s903k3t6c.kicad_sym",
    "stm8s903k3t6c.kicad_mod",
    "stm8s903k3t6c.glb",
    "stm8s903k3t6c.step",
    "stm8s903k3t6c.lbr",
    "docs/hero.png",
    "docs/stm8s903k3t6c-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html"
  ],
  "component": {
    "mpn": "STM8S903K3T6C",
    "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/8586182274903101440",
    "parts": {
      "symbol": "stm8s903k3t6c.kicad_sym",
      "footprint": "stm8s903k3t6c.kicad_mod",
      "model_3d": "stm8s903k3t6c-etched.glb",
      "model_3d_plain": "stm8s903k3t6c.glb",
      "model_3d_step": "stm8s903k3t6c-etched.step",
      "model_3d_step_plain": "stm8s903k3t6c.step",
      "lbr": "stm8s903k3t6c.lbr"
    },
    "distributor_links": {
      "lcsc": "C62598",
      "digikey": "497-8944-ND",
      "mouser": "511-STM8S903K3T6C"
    },
    "distributor_check": {
      "checked_at": "2026-09-27T10:59:43Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": "497-8944-ND",
        "status": "found",
        "lifecycle": "Active"
      },
      "mouser": {
        "pn": "511-STM8S903K3T6C",
        "status": "found"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "NRST",
        "type": "input",
        "description": "Reset input with internal 30-80kΩ weak pull-up resistor (55kΩ typical), 75ns schmitt trigger filter, and open-drain output capability to drive output low at 0.5V (3mA max)."
      },
      {
        "number": "2",
        "name": "PA1/OSCIN",
        "type": "bidirectional",
        "description": "Port A1 GPIO or 1-16MHz HSE oscillator/external clock input with ±1µA leakage current; automatically configured as input weak pull-up during reset and halt modes."
      },
      {
        "number": "3",
        "name": "PA2/OSCOUT",
        "type": "bidirectional",
        "description": "Port A2 GPIO or HSE oscillator output for 16MHz crystal resonator feedback (1.2-6mA current dependent on load capacitance, startup time <1ms)."
      },
      {
        "number": "4",
        "name": "VSS",
        "type": "power_in",
        "description": "Digital ground reference for core, I/O, and analog circuits; all VSS pins must be connected to external power supply ground."
      },
      {
        "number": "5",
        "name": "VCAP",
        "type": "passive",
        "description": "External capacitor connection point for 1.8V on-chip voltage regulator requiring 470-3300nF with ESR <0.3Ω and ESL <15nH."
      },
      {
        "number": "6",
        "name": "VDD",
        "type": "power_in",
        "description": "Digital power supply for microcontroller core, peripherals, and I/O circuits with 2.95-5.5V operating voltage range; all VDD pins must be connected."
      },
      {
        "number": "7",
        "name": "PA3/TIM5_CH3[SPI_NSS][UART1_TX]",
        "type": "bidirectional",
        "description": "Port A3 high-sink GPIO output (10mA @ 2.0V, 20mA @ 1.5V source; 10mA @ 0.8V, 20mA @ 1.5V sink) with programmable fast/slow speed; Timer5_CH3, SPI slave select, or UART1_TX via remapping."
      },
      {
        "number": "8",
        "name": "PF4[UART1_RX]",
        "type": "bidirectional",
        "description": "Port F4 GPIO with standard push-pull output (10mA @ 2.1V source at 3.3V VDD); UART1 receive data input when AFR1:0 alternate function remapping enabled."
      },
      {
        "number": "9",
        "name": "PB7",
        "type": "bidirectional",
        "description": "Port B7 GPIO with standard push-pull output and floating input configuration; supports Port B external interrupt detection."
      },
      {
        "number": "10",
        "name": "PB6",
        "type": "bidirectional",
        "description": "Port B6 GPIO with standard push-pull output and floating input configuration; supports Port B external interrupt detection."
      },
      {
        "number": "11",
        "name": "PB5/I2C_SDA[TIM1_BKIN]",
        "type": "bidirectional",
        "description": "Port B5 GPIO or I2C serial data line with true open-drain output (no internal pull-up or protection diode) and 300ns internal SDA hold time; Timer1 break input via AFR4 remapping."
      },
      {
        "number": "12",
        "name": "PB4/I2C_SCL[ADC_ETR]",
        "type": "bidirectional",
        "description": "Port B4 GPIO or I2C serial clock line with true open-drain output (no internal pull-up or protection diode) and 300ns SDA setup/hold timing; ADC external trigger input via AFR4 remapping."
      },
      {
        "number": "13",
        "name": "PB3/AIN3/TIM1_ETR",
        "type": "bidirectional",
        "description": "Port B3 high-sink GPIO; analog input channel AIN3 (0-VDD range) with programmable upper/lower thresholds for analog watchdog; Timer1 external trigger input."
      },
      {
        "number": "14",
        "name": "PB2/AIN2/TIM1_CH3N",
        "type": "bidirectional",
        "description": "Port B2 high-sink GPIO; analog input channel AIN2 (0-VDD range) with ±2LSB typical accuracy at fADC=4MHz; Timer1 inverted channel 3 complementary output."
      },
      {
        "number": "15",
        "name": "PB1/AIN1/TIM1_CH2N",
        "type": "bidirectional",
        "description": "Port B1 high-sink GPIO; analog input channel AIN1 (0-VDD range) with ±2LSB typical accuracy at fADC=4MHz; Timer1 inverted channel 2 complementary output."
      },
      {
        "number": "16",
        "name": "PB0/AIN0/TIM1_CH1N",
        "type": "bidirectional",
        "description": "Port B0 high-sink GPIO; analog input channel AIN0 (0-VDD range) with ±2LSB typical accuracy at fADC=4MHz; Timer1 inverted channel 1 complementary output."
      },
      {
        "number": "17",
        "name": "PE5/SPI_NSS[TIM1_CH1N]",
        "type": "bidirectional",
        "description": "Port E5 high-sink GPIO with programmable fast/slow output; SPI master/slave select input/output (0-8Mbps); Timer1 inverted channel 1 via AFR1:0 remapping."
      },
      {
        "number": "18",
        "name": "PC1/TIM1_CH1/UART1_CK[TIM1_CH2N]",
        "type": "bidirectional",
        "description": "Port C1 high-sink GPIO; Timer1 channel 1 output compare/PWM (edge and center-aligned modes); UART1 clock output; Timer1 inverted CH2 via AFR1:0 remapping."
      },
      {
        "number": "19",
        "name": "PC2/TIM1_CH2[TIM1_CH3N]",
        "type": "bidirectional",
        "description": "Port C2 high-sink GPIO with programmable fast/slow output; Timer1 channel 2 output compare/PWM; Timer1 inverted channel 3 via AFR1:0 remapping."
      },
      {
        "number": "20",
        "name": "PC3/TIM1_CH3/TLI/[TIM1_CH1N]",
        "type": "bidirectional",
        "description": "Port C3 high-sink GPIO; Timer1 channel 3 output compare/PWM; top-level interrupt input with dedicated priority; Timer1 inverted CH1 via AFR7 remapping."
      },
      {
        "number": "21",
        "name": "PC4/TIM1_CH4/CLK_CCO/AIN2/[TIM1_CH2N]",
        "type": "bidirectional",
        "description": "Port C4 high-sink GPIO (10mA @ 2.1V, 20mA @ 3.3V source); Timer1 channel 4 output; configurable clock output (HSI/HSE/fMASTER÷2); analog input AIN2; Timer1 inverted CH2 via AFR7."
      },
      {
        "number": "22",
        "name": "PC5/SPI_SCK[TIM5_CH1]",
        "type": "bidirectional",
        "description": "Port C5 high-sink GPIO; SPI serial clock (0-8Mbps master mode, 0-7Mbps slave mode) with configurable CPOL/CPHA; Timer5 channel 1 via AFR0 remapping."
      },
      {
        "number": "23",
        "name": "PC6/SPI_MOSI[TIM1_CH1]",
        "type": "bidirectional",
        "description": "Port C6 high-sink GPIO; SPI master-out/slave-in data line (0-8Mbps) with 5ns minimum setup time; Timer1 channel 1 output via AFR0 remapping."
      },
      {
        "number": "24",
        "name": "PC7/SPI_MISO[TIM1_CH2]",
        "type": "bidirectional",
        "description": "Port C7 high-sink GPIO; SPI master-in/slave-out data line (0-8Mbps) with 3×tMASTER max access time from SCK rising edge; Timer1 channel 2 via AFR0 remapping."
      },
      {
        "number": "25",
        "name": "PD0/TIM1_BKIN[CLK_CCO]",
        "type": "bidirectional",
        "description": "Port D0 high-sink GPIO with programmable fast/slow output; Timer1 break input to force PWM outputs to inactive state; configurable clock output via AFR5 remapping."
      },
      {
        "number": "26",
        "name": "PD1/SWIM",
        "type": "bidirectional",
        "description": "Port D1 high-sink GPIO with programmable fast/slow output or SWIM single-wire interface module for debug/in-circuit programming; input weak pull-up during reset and after reset release."
      },
      {
        "number": "27",
        "name": "PD2/AIN3/[TIM5_CH3]",
        "type": "bidirectional",
        "description": "Port D2 high-sink GPIO; analog input channel AIN3 (0-VDD range) with ±2LSB typical accuracy at fADC=4MHz; Timer5 channel 3 via AFR2 or AFR1 remapping."
      },
      {
        "number": "28",
        "name": "PD3/AIN4/TIM5_CH2/ADC_ETR",
        "type": "bidirectional",
        "description": "Port D3 high-sink GPIO; analog input channel AIN4 (0-VDD range) with ±2LSB typical accuracy; Timer5 channel 2 output; ADC external trigger input."
      },
      {
        "number": "29",
        "name": "PD4/TIM5_CH1/BEEP[UART1_CK]",
        "type": "bidirectional",
        "description": "Port D4 high-sink GPIO with programmable fast/slow output; Timer5 channel 1 output; beeper output (1/2/4kHz selectable) via AFR7 remapping; UART1 clock via AFR2."
      },
      {
        "number": "30",
        "name": "PD5/AIN5/UART1_TX",
        "type": "bidirectional",
        "description": "Port D5 high-sink GPIO; analog input channel AIN5 (0-VDD range) with ±2LSB typical accuracy; UART1 transmit data output (NRZ format, 1Mbps max)."
      },
      {
        "number": "31",
        "name": "PD6/AIN6/UART1_RX",
        "type": "bidirectional",
        "description": "Port D6 high-sink GPIO; analog input channel AIN6 (0-VDD range) with ±2LSB typical accuracy; UART1 receive data input (NRZ format, 1Mbps max)."
      },
      {
        "number": "32",
        "name": "PD7/TLI[TIM1_CH4]",
        "type": "bidirectional",
        "description": "Port D7 high-sink GPIO with programmable fast/slow output; top-level interrupt input (dedicated priority level); Timer1 channel 4 output compare/PWM via AFR6 remapping."
      }
    ],
    "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: PA1 (pin 2) and PA2 (pin 3) are classified as bidirectional GPIO but have primary dedicated oscillat; I2C pins PB4/PB5 (pins 12, 11) are marked as true open-drain in the datasheet; they are classified a; High-sink output pins (PA3, PB0-3, PC1-7, PD0-1, PD3-7, PE5) have significantly higher current sink "
        ],
        "pages_sent": 121,
        "cost_usd": 0.926,
        "at": "2026-09-27T10:59:20"
      },
      "datasheet": {
        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8586182274903101440",
        "pages": 121,
        "sha256": "ec1018977a2287d4",
        "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"
    },
    "models_3d": [
      {
        "file": "stm8s903k3t6c.step",
        "role": "plain",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          9.0,
          9.0,
          1.5
        ],
        "zmin_mm": 0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "be0e412f1c66fee70039b0e109e0cc7c823161dda97593718afa97569bc61ce3",
        "checked": "2026-10-07",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stm8s903k3t6c-etched.step",
        "role": "eda",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          9.0,
          9.0,
          1.5
        ],
        "zmin_mm": 0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "a228485975e7e825fec1179e000b5ed09c2ae96fbeb48747bcdc4411f3cc7959",
        "checked": "2026-10-07",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  }
}