main
Ray Set visibility: public f8ae8ab 16d ago
{
  "schema_version": 1,
  "type": "component",
  "slug": "stm8al3166tcy",
  "title": "STM8AL3166TCY",
  "brief": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-32(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "version": "0.1.0",
  "license": "CC-BY-SA-4.0",
  "tags": [
    "component",
    "embedded processors & controllers",
    "stm8al3166tcy",
    "factory-2.0.0",
    "extractor-text"
  ],
  "component": {
    "mpn": "STM8AL3166TCY",
    "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/8588922820856725504",
    "parts": {
      "symbol": "stm8al3166tcy.kicad_sym",
      "footprint": "stm8al3166tcy.kicad_mod",
      "model_3d": "stm8al3166tcy-hero.glb",
      "model_3d_plain": "stm8al3166tcy.glb",
      "model_3d_step": "stm8al3166tcy-etched.step",
      "model_3d_step_plain": "stm8al3166tcy.step",
      "lbr": "stm8al3166tcy.lbr"
    },
    "distributor_links": {
      "lcsc": "C1340508",
      "digikey": "497-15821-ND",
      "mouser": "511-STM8AL3166TCY"
    },
    "distributor_check": {
      "checked_at": "2026-10-11T03:18:52Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": "497-15821-ND",
        "status": "found",
        "lifecycle": "Active"
      },
      "mouser": {
        "pn": "511-STM8AL3166TCY",
        "status": "found",
        "lifecycle": "End of Life"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "NRST/PA1",
        "type": "bidirectional",
        "description": "Reset input with pull-up at power-up; as PA1 it can be configured only as push-pull output, not as open-drain or general-purpose input."
      },
      {
        "number": "2",
        "name": "PA2/OSC_IN/USART1_TX/SPI1_MISO",
        "type": "bidirectional",
        "description": "Port A2 with HSE oscillator input, USART1 transmit and SPI1 master-in/slave-out (bracketed alternates are remap options); high sink/source I/O."
      },
      {
        "number": "3",
        "name": "PA3/OSC_OUT/USART1_RX/SPI1_MOSI",
        "type": "bidirectional",
        "description": "Port A3 with HSE oscillator output, USART1 receive and SPI1 master-out/slave-in (bracketed alternates are remap options); high sink/source I/O."
      },
      {
        "number": "4",
        "name": "PA4/TIM2_BKIN/TIM2_ETR",
        "type": "bidirectional",
        "description": "Port A4 with TIM2 break input, optional TIM2 trigger, ADC1 input 2 and comparator 1 positive input; 3.6 V tolerant (TT) I/O, high sink/source."
      },
      {
        "number": "5",
        "name": "PA5/TIM3_BKIN/TIM3_ETR",
        "type": "bidirectional",
        "description": "Port A5 with TIM3 break input, optional TIM3 trigger, ADC1 input 1 and comparator 1 positive input; 3.6 V tolerant (TT) I/O, high sink/source."
      },
      {
        "number": "6",
        "name": "PA6/ADC1_TRIG",
        "type": "bidirectional",
        "description": "Port A6 with optional ADC1 trigger, ADC1 input 0 and comparator 1 positive input; 3.6 V tolerant (TT) I/O, high sink/source."
      },
      {
        "number": "7",
        "name": "VSS1/VSSA/VREF-",
        "type": "power_in",
        "description": "I/O ground, analog ground and ADC1 negative voltage reference."
      },
      {
        "number": "8",
        "name": "VDD1/VDDA/VREF+",
        "type": "power_in",
        "description": "Digital power supply, analog supply and ADC1 positive voltage reference; device operating range is 1.8 V to 3.6 V (down to 1.65 V at power down)."
      },
      {
        "number": "9",
        "name": "PD0/TIM3_CH2/ADC1_TRIG/ADC1_IN22",
        "type": "bidirectional",
        "description": "Port D0 with TIM3 channel 2, optional ADC1 trigger, ADC1 input 22 and comparator 1 and 2 positive inputs; 3.6 V tolerant (TT) I/O, high sink/source."
      },
      {
        "number": "10",
        "name": "PD1/TIM1_CH3N/TIM3_ETR",
        "type": "bidirectional",
        "description": "Port D1 with TIM1 inverted channel 3, optional TIM3 trigger, ADC1 input 21 and comparator 1 and 2 positive inputs; 3.6 V tolerant (TT) I/O, high sink/source."
      },
      {
        "number": "11",
        "name": "PD2/TIM1_CH1/ADC1_IN20",
        "type": "bidirectional",
        "description": "Port D2 with TIM1 channel 1, ADC1 input 20 and comparator 1 positive input; 3.6 V tolerant (TT) I/O, high sink/source."
      },
      {
        "number": "12",
        "name": "PD3/TIM1_ETR/ADC1_IN19",
        "type": "bidirectional",
        "description": "Port D3 with TIM1 trigger, ADC1 input 19 and comparator 1 positive input; 3.6 V tolerant (TT) I/O, high sink/source."
      },
      {
        "number": "13",
        "name": "PB0/TIM2_CH1/ADC1_IN18",
        "type": "bidirectional",
        "description": "Port B0 with TIM2 channel 1, ADC1 input 18 and comparator 1 positive input; 3.6 V tolerant (TT) I/O, high sink/source, with a pull-up applied during the reset phase and input floating after reset release."
      },
      {
        "number": "14",
        "name": "PB1/TIM3_CH1/ADC1_IN17",
        "type": "bidirectional",
        "description": "Port B1 with TIM3 channel 1, ADC1 input 17 and comparator 1 positive input; 3.6 V tolerant (TT) I/O, high sink/source."
      },
      {
        "number": "15",
        "name": "PB2/TIM2_CH2/ADC1_IN16",
        "type": "bidirectional",
        "description": "Port B2 with TIM2 channel 2, ADC1 input 16 and comparator 1 positive input; 3.6 V tolerant (TT) I/O, high sink/source."
      },
      {
        "number": "16",
        "name": "PB3/TIM2_ETR/TIM1_CH2N/ADC1_IN15",
        "type": "bidirectional",
        "description": "Port B3 with optional TIM2 trigger, TIM1 inverted channel 2, ADC1 input 15 and comparator 1 positive input; 3.6 V tolerant (TT) I/O, high sink/source."
      },
      {
        "number": "17",
        "name": "PB4/SPI1_NSS/ADC1_IN14/DAC_OUT",
        "type": "bidirectional",
        "description": "Port B4 with optional SPI1 master/slave select, ADC1 input 14, DAC output and comparator 1 positive input; 3.6 V tolerant (TT) I/O, high sink/source, with a pull-up during the reset phase and input floating after reset release."
      },
      {
        "number": "18",
        "name": "PB5/SPI1_SCK/ADC1_IN13/DAC_OUT",
        "type": "bidirectional",
        "description": "Port B5 with optional SPI1 clock, ADC1 input 13, DAC output and comparator 1 positive input; 3.6 V tolerant (TT) I/O, high sink/source."
      },
      {
        "number": "19",
        "name": "PB6/SPI1_MOSI/ADC1_IN12/DAC_OUT",
        "type": "bidirectional",
        "description": "Port B6 with optional SPI1 master-out/slave-in, ADC1 input 12, DAC output and comparator 1 positive input; 3.6 V tolerant (TT) I/O, high sink/source."
      },
      {
        "number": "20",
        "name": "PB7/SPI1_MISO/ADC1_IN11",
        "type": "bidirectional",
        "description": "Port B7 with optional SPI1 master-in/slave-out, ADC1 input 11 and comparator 1 positive input; 3.6 V tolerant (TT) I/O, high sink/source."
      },
      {
        "number": "21",
        "name": "PD4/TIM1_CH2/ADC1_IN10",
        "type": "bidirectional",
        "description": "Port D4 with TIM1 channel 2, ADC1 input 10 and comparator 1 positive input; 3.6 V tolerant (TT) I/O, high sink/source."
      },
      {
        "number": "22",
        "name": "PD5/TIM1_CH3/ADC1_IN9",
        "type": "bidirectional",
        "description": "Port D5 with TIM1 channel 3, ADC1 input 9 and comparator 1 positive input; 3.6 V tolerant (TT) I/O, high sink/source."
      },
      {
        "number": "23",
        "name": "PD6/TIM1_BKIN/ADC1_IN8/RTC_CALIB/VREFINT",
        "type": "bidirectional",
        "description": "Port D6 with TIM1 break input, ADC1 input 8, RTC calibration output, internal voltage reference output and comparator 1 positive input; 3.6 V tolerant (TT) I/O, high sink/source."
      },
      {
        "number": "24",
        "name": "PD7/TIM1_CH1N/ADC1_IN7/RTC_ALARM/VREFINT",
        "type": "bidirectional",
        "description": "Port D7 with TIM1 inverted channel 1, ADC1 input 7, RTC alarm, internal voltage reference output and comparator 1 positive input; 3.6 V tolerant (TT) I/O, high sink/source."
      },
      {
        "number": "25",
        "name": "PC0/I2C1_SDA",
        "type": "bidirectional",
        "description": "Port C0 with I2C1 data; 5 V tolerant (FT) true open-drain I/O without protection diode to VDD and without weak pull-up."
      },
      {
        "number": "26",
        "name": "PC1/I2C1_SCL",
        "type": "bidirectional",
        "description": "Port C1 with I2C1 clock; 5 V tolerant (FT) true open-drain I/O without protection diode to VDD and without weak pull-up."
      },
      {
        "number": "27",
        "name": "PC2/USART1_RX/ADC1_IN6/VREFINT",
        "type": "bidirectional",
        "description": "Port C2 with USART1 receive, ADC1 input 6, comparator 1 positive input and internal voltage reference output; 3.6 V tolerant (TT) I/O, high sink/source."
      },
      {
        "number": "28",
        "name": "PC3/USART1_TX/ADC1_IN5/COMP2_INM",
        "type": "bidirectional",
        "description": "Port C3 with USART1 transmit, ADC1 input 5, comparator 1 positive input and comparator 2 negative input; 3.6 V tolerant (TT) I/O, high sink/source."
      },
      {
        "number": "29",
        "name": "PC4/USART1_CK/I2C1_SMB/CCO/ADC1_IN4",
        "type": "bidirectional",
        "description": "Port C4 with USART1 synchronous clock, I2C1_SMB, configurable clock output, ADC1 input 4, comparator 2 negative input and comparator 1 positive input; 3.6 V tolerant (TT) I/O, high sink/source."
      },
      {
        "number": "30",
        "name": "PC5/OSC32_IN/SPI1_NSS/USART1_TX",
        "type": "bidirectional",
        "description": "Port C5 with LSE oscillator input and optional SPI1 master/slave select and USART1 transmit; high sink/source I/O."
      },
      {
        "number": "31",
        "name": "PC6/OSC32_OUT/SPI1_SCK/USART1_RX",
        "type": "bidirectional",
        "description": "Port C6 with LSE oscillator output and optional SPI1 clock and USART1 receive; high sink/source I/O."
      },
      {
        "number": "32",
        "name": "PA0/USART1_CK/SWIM/BEEP/IR_TIM",
        "type": "bidirectional",
        "description": "Port A0 with optional USART1 synchronous clock, SWIM input and output, beep output and infrared timer output; input pull-up during reset and after reset release, with high sink LED driver capability."
      }
    ],
    "provenance": {
      "extractor": "extract_pins 0.3",
      "factory_chain": {
        "factory": "2.0.0",
        "extractor": "extract_pins 0.3",
        "primary_model": "claude-haiku-5-5",
        "primary_mode": "text",
        "consensus_model": "claude-sonnet-5-5",
        "consensus": "agreed",
        "guards": "pin_guards 0.1: passed",
        "guard_notes": [
          "extractor flagged: Pin 9 is PD0 on the non-LCD 32-pin device (STM8AL31x6T) and is VLCD on the LCD variant, which is not; Table 5 lists NRST/PA1 as I/O, while the text describes it as a reset input with pull-up at power-up; Table 5 gives no I/O level (3.6 V or 5 V tolerance) for these pins, so no tolerance is stated for th"
        ],
        "pages_sent": 44,
        "cost_usd": 0.2221,
        "at": "2026-10-11T03:18:34"
      },
      "datasheet": {
        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588922820856725504",
        "pages": 123,
        "sha256": "c556f7a6ad75fcd6",
        "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": "stm8al3166tcy.step",
        "role": "plain",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          9,
          9,
          1.5
        ],
        "zmin_mm": 0,
        "centre_offset_mm": 0,
        "footprint_binding": "identity",
        "sha256": "be0e412f1c66fee70039b0e109e0cc7c823161dda97593718afa97569bc61ce3",
        "checked": "2026-10-11",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stm8al3166tcy-etched.step",
        "role": "eda",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          9,
          9,
          1.5
        ],
        "zmin_mm": 0,
        "centre_offset_mm": 0,
        "footprint_binding": "identity",
        "sha256": "6e33b4660752b991d572d891951cd271832c3f74b01a39c2fdb47b72d681c552",
        "checked": "2026-10-11",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  },
  "metadata": {
    "specs": {
      "Manufacturer": "STMicroelectronics",
      "Package": "LQFP-32(7x7)",
      "Category": "Embedded Processors & Controllers",
      "Pins": "32"
    }
  },
  "variants": [],
  "sections": [
    "hero",
    "viewers",
    "readme",
    "breadcrumbs",
    "info"
  ],
  "discovery_triggers": [
    "stm8al3166tcy"
  ],
  "discovery_pitch": "STM8AL3166TCY (STMicroelectronics) component page: datasheet pinout, KiCad symbol, footprint and 3D.",
  "author": {
    "name": "Ray",
    "email": "[email protected]"
  },
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stm8al3166tcy.kicad_sym",
    "stm8al3166tcy.kicad_mod",
    "stm8al3166tcy.glb",
    "stm8al3166tcy.step",
    "stm8al3166tcy.lbr",
    "docs/hero.png",
    "docs/stm8al3166tcy-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "stm8al3166tcy-hero.glb",
    "stm8al3166tcy-hero.overlay.json"
  ],
  "visibility": {
    "public": true
  }
}