main
Ray
Publish 0.1.0
126fe81
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575
{
"slug": "stc32g12k64-35i-lqfp64",
"version": "0.1.0",
"type": "component",
"description": "STC Micro Microcontroller Units (MCUs/MPUs/SOCs), LQFP-64(10x10). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
"tags": [
"component",
"single chip microcomputer-microcontroller",
"stc32g12k64-35i-lqfp64",
"factory-2.0.0",
"extractor-text"
],
"dependencies": {},
"hero": {
"type": "image",
"path": "docs/hero.png"
},
"files": [
"page.json",
"README.md",
"stc32g12k64-35i-lqfp64.kicad_sym",
"stc32g12k64-35i-lqfp64.kicad_mod",
"stc32g12k64-35i-lqfp64.glb",
"stc32g12k64-35i-lqfp64.step",
"stc32g12k64-35i-lqfp64.lbr",
"docs/hero.png",
"docs/stc32g12k64-35i-lqfp64-datasheet.pdf",
"viewers/symbol.html",
"viewers/footprint.html",
"stc32g12k64-35i-lqfp64-hero.glb",
"stc32g12k64-35i-lqfp64-hero.overlay.json"
],
"component": {
"mpn": "STC32G12K64-35I-LQFP64",
"manufacturer": "STC Micro",
"package": "LQFP-64(10x10)",
"pin_count": 64,
"category": "Single Chip Microcomputer/Microcontroller",
"subcategory": "Microcontroller Units (MCUs/MPUs/SOCs)",
"datasheet": "https://datasheet.lcsc.com/datasheet/pdf/8fe4cdefdfe8ba1a5b5a614521aecf58.pdf",
"parts": {
"symbol": "stc32g12k64-35i-lqfp64.kicad_sym",
"footprint": "stc32g12k64-35i-lqfp64.kicad_mod",
"model_3d": "stc32g12k64-35i-lqfp64-hero.glb",
"model_3d_plain": "stc32g12k64-35i-lqfp64.glb",
"model_3d_step": "stc32g12k64-35i-lqfp64-etched.step",
"model_3d_step_plain": "stc32g12k64-35i-lqfp64.step",
"lbr": "stc32g12k64-35i-lqfp64.lbr"
},
"distributor_links": {
"lcsc": "C20613518"
},
"distributor_check": {
"checked_at": "2026-11-13T12:05:47Z",
"source": "Component Ocean /api/assign-pns",
"digikey": {
"pn": null,
"status": "no match"
},
"mouser": {
"pn": null,
"status": "no match"
}
},
"pins": [
{
"number": "1",
"name": "P5.3",
"type": "bidirectional",
"description": "Standard I/O port P5.3 with alternates TxD4_2 (UART4 TX), CAN2_TX_2 (CAN2 TX) and LIN_TX_2 (LIN TX); all GPIO support quasi-bidirectional, push-pull, open-drain and high-impedance input modes."
},
{
"number": "2",
"name": "P0.5",
"type": "bidirectional",
"description": "Standard I/O port P0.5 with alternates AD5 (address/data bus), ADC13 (ADC input 13) and T3CLKO (Timer 3 clock output)."
},
{
"number": "3",
"name": "P0.6",
"type": "bidirectional",
"description": "Standard I/O port P0.6 with alternates AD6, ADC14 (ADC input 14), T4 (Timer 4 external clock input) and PWMFLT2_2 (enhanced PWM external fault input)."
},
{
"number": "4",
"name": "P0.7",
"type": "bidirectional",
"description": "Standard I/O port P0.7 with alternates AD7 (address/data bus) and T4CLKO (Timer 4 clock output)."
},
{
"number": "5",
"name": "P6.0",
"type": "bidirectional",
"description": "Standard I/O port P6.0 with alternate PWM1P_3 (PWM1 capture input / positive pulse output)."
},
{
"number": "6",
"name": "P6.1",
"type": "bidirectional",
"description": "Standard I/O port P6.1 with alternate PWM1N_3 (PWM1 negative pulse output)."
},
{
"number": "7",
"name": "P6.2",
"type": "bidirectional",
"description": "Standard I/O port P6.2 with alternate PWM2P_3 (PWM2 capture input / positive pulse output)."
},
{
"number": "8",
"name": "P6.3",
"type": "bidirectional",
"description": "Standard I/O port P6.3 with alternate PWM2N_3 (PWM2 negative pulse output)."
},
{
"number": "9",
"name": "P1.0",
"type": "bidirectional",
"description": "Standard I/O port P1.0 with alternates ADC0 (ADC input 0), PWM1P (PWM1 capture / positive output) and RxD2 (UART2 receive)."
},
{
"number": "10",
"name": "P1.1",
"type": "bidirectional",
"description": "Standard I/O port P1.1 with alternates ADC1 (ADC input 1), PWM1N (PWM1 negative output) and TxD2 (UART2 transmit)."
},
{
"number": "11",
"name": "P4.7",
"type": "bidirectional",
"description": "Standard I/O port P4.7 with alternates TxD2_2 (UART2 TX), CAN2_TX_3 (CAN2 TX) and LIN_TX_3 (LIN TX)."
},
{
"number": "12",
"name": "P1.4",
"type": "bidirectional",
"description": "Standard I/O port P1.4 with alternates ADC4, PWM3P, MISO, S1MISO, S2MISO and SDA (I2C data line)."
},
{
"number": "13",
"name": "P1.5",
"type": "bidirectional",
"description": "Standard I/O port P1.5 with alternates ADC5, PWM3N, SCLK, S1SCLK, S2SCLK and SCL (I2C clock line)."
},
{
"number": "14",
"name": "P1.6",
"type": "bidirectional",
"description": "Standard I/O port P1.6 with alternates ADC6, RxD_3 (UART1 receive), PWM4P, MCLKO_2 (master clock output) and XTALO (external crystal output)."
},
{
"number": "15",
"name": "P1.7",
"type": "bidirectional",
"description": "Standard I/O port P1.7 with alternates ADC7, TxD_3 (UART1 transmit), PWM4N, PWM5_2 and XTALI (external crystal / external clock input)."
},
{
"number": "16",
"name": "P1.3",
"type": "bidirectional",
"description": "Standard I/O port P1.3 with alternates ADC3, MOSI, S1MOSI, S2MOSI, PWM2N and T2CLKO (Timer 2 clock output)."
},
{
"number": "17",
"name": "UCAP",
"type": "passive",
"description": "USB core power regulator decoupling pin; the application diagram shows a 4.7 µF (0.1 µF to 10 µF) capacitor on UCap."
},
{
"number": "18",
"name": "P5.4",
"type": "bidirectional",
"description": "Standard I/O port P5.4 (default I/O function after power-up), which can be set as active-low reset pin nRST via ISP, with alternates MCLKO, SS, S1SS, S2SS, PWM2P, PWM6_2, ADC2 and T2; with P5.4 used as I/O its internal 4K pull-up stays on for about 6.5 ms after power-up."
},
{
"number": "19",
"name": "Vcc/AVcc",
"type": "power_in",
"description": "Supply pin for the MCU core (Vcc) and the ADC (AVcc); operating voltage is 1.9 V to 5.5 V."
},
{
"number": "20",
"name": "VRef+",
"type": "power_in",
"description": "ADC external reference voltage input (ADC_VRef+) that must be connected to an external reference between 2.4 V and MCU-VCC, since floating it causes leakage current."
},
{
"number": "21",
"name": "Gnd",
"type": "power_in",
"description": "Ground pin (GND / AGnd) for the digital and analog circuits."
},
{
"number": "22",
"name": "P4.0",
"type": "bidirectional",
"description": "Standard I/O port P4.0 with alternates MOSI_3, S1MOSI_3 and S2MOSI_3 (SPI master out / slave in)."
},
{
"number": "23",
"name": "P6.4",
"type": "bidirectional",
"description": "Standard I/O port P6.4 with alternates PWM3P_3 (PWM3 capture / positive output) and S1SS_4 (USART1 SPI slave select input)."
},
{
"number": "24",
"name": "P6.5",
"type": "bidirectional",
"description": "Standard I/O port P6.5 with alternates PWM3N_3 (PWM3 negative output) and S1MOSI_4 (USART1 SPI MOSI)."
},
{
"number": "25",
"name": "P6.6",
"type": "bidirectional",
"description": "Standard I/O port P6.6 with alternates PWM4P_3 (PWM4 capture / positive output) and S1MISO_4 (USART1 SPI MISO)."
},
{
"number": "26",
"name": "P6.7",
"type": "bidirectional",
"description": "Standard I/O port P6.7 with alternates PWM4N_3 (PWM4 negative output) and S1SCLK_4 (USART1 SPI clock)."
},
{
"number": "27",
"name": "P3.0",
"type": "bidirectional",
"description": "Standard I/O port P3.0 that is weak-pull-up quasi-bidirectional after power-up, also used as USB D- data line, UART1 receive (RxD) and external interrupt INT4, and used for ISP/emulation."
},
{
"number": "28",
"name": "P3.1",
"type": "bidirectional",
"description": "Standard I/O port P3.1 that is weak-pull-up quasi-bidirectional after power-up, also used as USB D+ data line and UART1 transmit (TxD), and used for ISP/emulation."
},
{
"number": "29",
"name": "P3.2",
"type": "bidirectional",
"description": "Standard I/O port P3.2 with alternates INT0 (external interrupt 0), SCLK_4, SCL_4, PWMETI and PWMETI2; it is driven high at power-up and is sampled low to enter USB download mode when USB is connected."
},
{
"number": "30",
"name": "P3.3",
"type": "bidirectional",
"description": "Standard I/O port P3.3 with alternates INT1 (external interrupt 1), MISO_4, SDA_4, PWM4N_4 and PWM7_2."
},
{
"number": "31",
"name": "P3.4",
"type": "bidirectional",
"description": "Standard I/O port P3.4 with alternates T0 (Timer 0 external input), T1CLKO, MOSI_4, PWM4P_4, PWM8_2 and CMPO (comparator output)."
},
{
"number": "32",
"name": "P5.0",
"type": "bidirectional",
"description": "Standard I/O port P5.0 with alternates RxD3_2 (UART3 receive), CMP+_2 (comparator positive input) and CAN_RX_2 (CAN receive)."
},
{
"number": "33",
"name": "P5.1",
"type": "bidirectional",
"description": "Standard I/O port P5.1 with alternates TxD3_2 (UART3 transmit), CMP+_3 (comparator positive input) and CAN_TX_2 (CAN transmit)."
},
{
"number": "34",
"name": "P3.5",
"type": "bidirectional",
"description": "Standard I/O port P3.5 with alternates T1 (Timer 1 external input), T0CLKO (Timer 0 clock output), SS_4 (SPI slave select) and PWMFLT (enhanced PWM external fault input)."
},
{
"number": "35",
"name": "P3.6",
"type": "bidirectional",
"description": "Standard I/O port P3.6 with alternates INT2 (external interrupt 2), RxD_2 (UART1 receive) and CMP- (comparator negative input)."
},
{
"number": "36",
"name": "P3.7",
"type": "bidirectional",
"description": "Standard I/O port P3.7 with alternates INT3 (external interrupt 3), TxD_2 (UART1 transmit) and CMP+ (comparator positive input)."
},
{
"number": "37",
"name": "P7.0",
"type": "bidirectional",
"description": "Standard I/O port P7.0 with alternate CAN_RX_4 (CAN receive)."
},
{
"number": "38",
"name": "P7.1",
"type": "bidirectional",
"description": "Standard I/O port P7.1 with alternate CAN_TX_4 (CAN transmit)."
},
{
"number": "39",
"name": "P7.2",
"type": "bidirectional",
"description": "Standard I/O port P7.2 with alternates CAN2_RX_4 (CAN2 receive) and LIN_RX_4 (LIN receive)."
},
{
"number": "40",
"name": "P7.3",
"type": "bidirectional",
"description": "Standard I/O port P7.3 with alternates CAN2_TX_4 (CAN2 transmit), LIN_TX_4 (LIN transmit) and PWMETI_3 (PWM external trigger input)."
},
{
"number": "41",
"name": "P4.1",
"type": "bidirectional",
"description": "Standard I/O port P4.1 with alternates MISO_3, S1MISO_3, S2MISO_3, CMPO_2 (comparator output) and PWMETI_2 (PWM external trigger input)."
},
{
"number": "42",
"name": "P4.2",
"type": "bidirectional",
"description": "Standard I/O port P4.2 with alternates WR (external bus write strobe) and CAN_RX_3 (CAN receive)."
},
{
"number": "43",
"name": "P4.3",
"type": "bidirectional",
"description": "Standard I/O port P4.3 with alternates RxD_4 (UART4 receive), SCLK_3, S1SCLK_3 and S2SCLK_3 (SPI clock)."
},
{
"number": "44",
"name": "P4.4",
"type": "bidirectional",
"description": "Standard I/O port P4.4 with alternates RD (external bus read strobe) and TxD_4 (UART4 transmit)."
},
{
"number": "45",
"name": "P2.0",
"type": "bidirectional",
"description": "Standard I/O port P2.0 with alternates A8 (address bus bit 8), PWM1P_2 and PWM5."
},
{
"number": "46",
"name": "P2.1",
"type": "bidirectional",
"description": "Standard I/O port P2.1 with alternates A9 (address bus bit 9), PWM1N_2 and PWM6."
},
{
"number": "47",
"name": "P2.2",
"type": "bidirectional",
"description": "Standard I/O port P2.2 with alternates A10 (address bus bit 10), PWM2P_2, PWM7, SS_2, S1SS_2 and S2SS_2."
},
{
"number": "48",
"name": "P2.3",
"type": "bidirectional",
"description": "Standard I/O port P2.3 with alternates A11 (address bus bit 11), PWM2N_2, PWM8, MOSI_2, S1MOSI_2 and S2MOSI_2."
},
{
"number": "49",
"name": "P2.4",
"type": "bidirectional",
"description": "Standard I/O port P2.4 with alternates A12 (address bus bit 12), PWM3P_2, SDA_2, MISO_2, S1MISO_2 and S2MISO_2."
},
{
"number": "50",
"name": "P2.5",
"type": "bidirectional",
"description": "Standard I/O port P2.5 with alternates A13 (address bus bit 13), PWM3N_2, SCL_2, SCLK_2, S1SCLK_2 and S2SCLK_2."
},
{
"number": "51",
"name": "P2.6",
"type": "bidirectional",
"description": "Standard I/O port P2.6 with alternates A14 (address bus bit 14) and PWM4P_2."
},
{
"number": "52",
"name": "P2.7",
"type": "bidirectional",
"description": "Standard I/O port P2.7 with alternates A15 (address bus bit 15) and PWM4N_2."
},
{
"number": "53",
"name": "P7.4",
"type": "bidirectional",
"description": "Standard I/O port P7.4 with alternates S2SS_4 (USART2 SPI slave select) and PWM5_4."
},
{
"number": "54",
"name": "P7.5",
"type": "bidirectional",
"description": "Standard I/O port P7.5 with alternates S2MOSI_4 (USART2 SPI MOSI) and PWM6_4."
},
{
"number": "55",
"name": "P7.6",
"type": "bidirectional",
"description": "Standard I/O port P7.6 with alternates S2MISO_4 (USART2 SPI MISO) and PWM7_4."
},
{
"number": "56",
"name": "P7.7",
"type": "bidirectional",
"description": "Standard I/O port P7.7 with alternates S2SCLK_4 (USART2 SPI clock) and PWM8_4."
},
{
"number": "57",
"name": "P4.5",
"type": "bidirectional",
"description": "Standard I/O port P4.5 with alternates CAN_TX_3 (CAN transmit) and ALE (address latch enable)."
},
{
"number": "58",
"name": "P4.6",
"type": "bidirectional",
"description": "Standard I/O port P4.6 with alternates LIN_RX_3 (LIN receive), CAN2_RX_3 (CAN2 receive) and RxD2_2 (UART2 receive)."
},
{
"number": "59",
"name": "P0.0",
"type": "bidirectional",
"description": "Standard I/O port P0.0 with alternates AD0 (address/data bus), ADC8 (ADC input 8), RxD3 (UART3 receive), PWM5_3, T3_2 (Timer 3 external input) and CAN_RX (CAN receive)."
},
{
"number": "60",
"name": "P0.1",
"type": "bidirectional",
"description": "Standard I/O port P0.1 with alternates AD1, ADC9 (ADC input 9), TxD3 (UART3 transmit), PWM6_3, T3CLKO_2 and CAN_TX (CAN transmit)."
},
{
"number": "61",
"name": "P0.2",
"type": "bidirectional",
"description": "Standard I/O port P0.2 with alternates AD2, ADC10 (ADC input 10), RxD4 (UART4 receive), PWM7_3, T4_2, CAN2_RX and LIN_RX."
},
{
"number": "62",
"name": "P0.3",
"type": "bidirectional",
"description": "Standard I/O port P0.3 with alternates AD3, ADC11 (ADC input 11), TxD4 (UART4 transmit), PWM8_3, T4CLKO_2, CAN2_TX and LIN_TX."
},
{
"number": "63",
"name": "P0.4",
"type": "bidirectional",
"description": "Standard I/O port P0.4 with alternates AD4, ADC12 (ADC input 12) and T3 (Timer 3 external input)."
},
{
"number": "64",
"name": "P5.2",
"type": "bidirectional",
"description": "Standard I/O port P5.2 with alternates RxD4_2 (UART4 receive), CAN2_RX_2 (CAN2 receive) and LIN_RX_2 (LIN receive)."
}
],
"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: Package size mismatch: the user hint says LQFP-64 (10x10), but the datasheet lists LQFP64 as <12mm*1; The MPN STC32G12K64 is not given its own LQFP64 pin diagram. The LQFP64 pinout used here is the STC3; Pin descriptions for pins 36-59 are not in the extracted text: the pin-description table pages (PAGE"
],
"pages_sent": 108,
"cost_usd": 1.1131,
"at": "2026-11-13T12:05:32"
},
"datasheet": {
"url": "https://datasheet.lcsc.com/datasheet/pdf/8fe4cdefdfe8ba1a5b5a614521aecf58.pdf",
"pages": 1887,
"sha256": "59bba1d366cc8d33",
"source_tier": "lcsc"
},
"cad": "KiCad official (CC-BY-SA 4.0)",
"pins": {
"total": 64,
"described": 64,
"cites_pages": true,
"refuses_to_fabricate": true
}
},
"viewers": {
"symbol": "viewers/symbol.html",
"footprint": "viewers/footprint.html"
},
"models_3d": [
{
"file": "stc32g12k64-35i-lqfp64.step",
"role": "plain",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
12.0,
12.0,
1.5
],
"zmin_mm": 0.0,
"centre_offset_mm": 0.0,
"footprint_binding": "identity",
"sha256": "b0c827bc5c05552175d28affe44a5bd2ab45c9c36efff6ff07a74cc449b13db4",
"checked": "2026-11-13",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
},
{
"file": "stc32g12k64-35i-lqfp64-etched.step",
"role": "eda",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
12.0,
12.0,
1.5
],
"zmin_mm": 0.0,
"centre_offset_mm": 0.0,
"footprint_binding": "identity",
"sha256": "530f77348b1cfb5b6ebf24a99d697ca3e6deb3fa869158b3d247219c2fb22894",
"checked": "2026-11-13",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
}
],
"package_dims": {
"package_code": "LQFP64",
"source_page": 430,
"D": {
"nom_mm": 10.0,
"range_mm": [
9.9,
10.1
]
},
"E1": {
"nom_mm": 10.0,
"range_mm": [
9.9,
10.1
]
},
"E": {
"nom_mm": 12.0,
"range_mm": [
11.8,
12.2
]
},
"e": {
"nom_mm": 0.5,
"range_mm": [
null,
null
]
},
"A": {
"nom_mm": 1.6,
"range_mm": [
null,
1.6
]
},
"source": "datasheet package drawing, every number found on its page (extract_pins --task dims)",
"model_check": {
"file": "stc32g12k64-35i-lqfp64.step",
"verdict": "PASS",
"reasons": [
"height and body within the datasheet's package drawing"
],
"by": "factory/package_fit.py"
}
}
}
}