component
STC32G8K64-42I-QFN48
Public Made by Adomby adom
STC Micro Microcontroller Units (MCUs/MPUs/SOCs), QFN-48(6x6). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.
main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
{
"slug": "stc32g8k64-42i-qfn48",
"version": "0.1.0",
"type": "component",
"description": "STC Micro Microcontroller Units (MCUs/MPUs/SOCs), QFN-48(6x6). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
"tags": [
"component",
"single chip microcomputer-microcontroller",
"stc32g8k64-42i-qfn48",
"factory-2.0.0",
"extractor-text"
],
"dependencies": {},
"hero": {
"type": "image",
"path": "docs/hero.png"
},
"files": [
"page.json",
"README.md",
"stc32g8k64-42i-qfn48.kicad_sym",
"stc32g8k64-42i-qfn48.kicad_mod",
"stc32g8k64-42i-qfn48.glb",
"stc32g8k64-42i-qfn48.step",
"stc32g8k64-42i-qfn48.lbr",
"docs/hero.png",
"docs/stc32g8k64-42i-qfn48-datasheet.pdf",
"viewers/symbol.html",
"viewers/footprint.html",
"stc32g8k64-42i-qfn48-hero.glb",
"stc32g8k64-42i-qfn48-hero.overlay.json",
"stc32g8k64-42i-qfn48-etched.glb"
],
"component": {
"mpn": "STC32G8K64-42I-QFN48",
"manufacturer": "STC Micro",
"package": "QFN-48(6x6)",
"pin_count": 49,
"category": "Single Chip Microcomputer/Microcontroller",
"subcategory": "Microcontroller Units (MCUs/MPUs/SOCs)",
"datasheet": "https://datasheet.lcsc.com/datasheet/pdf/8fe4cdefdfe8ba1a5b5a614521aecf58.pdf",
"parts": {
"symbol": "stc32g8k64-42i-qfn48.kicad_sym",
"footprint": "stc32g8k64-42i-qfn48.kicad_mod",
"model_3d": "stc32g8k64-42i-qfn48-hero.glb",
"model_3d_plain": "stc32g8k64-42i-qfn48-etched.glb",
"model_3d_step": "stc32g8k64-42i-qfn48-etched.step",
"model_3d_step_plain": "stc32g8k64-42i-qfn48.step",
"lbr": "stc32g8k64-42i-qfn48.lbr"
},
"distributor_links": {
"lcsc": "C7502585"
},
"distributor_check": {
"checked_at": "2026-10-27T06:32:39Z",
"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": "General-purpose bidirectional I/O that can also carry UART4 TX (TxD4_2), CAN2 TX and LIN TX alternate functions."
},
{
"number": "2",
"name": "P0.5",
"type": "bidirectional",
"description": "Standard I/O that also serves as address/data bus AD5, ADC13 analog input and Timer3 clock-divided output T3CLKO."
},
{
"number": "3",
"name": "P0.6",
"type": "bidirectional",
"description": "Standard I/O that also serves as address/data bus AD6, ADC14 analog input, Timer4 external clock T4 and PWM fault input PWMFLT2_2."
},
{
"number": "4",
"name": "P0.7",
"type": "bidirectional",
"description": "Standard I/O that also serves as address/data bus AD7 and Timer4 clock-divided output T4CLKO."
},
{
"number": "5",
"name": "P1.0",
"type": "bidirectional",
"description": "Standard I/O that also serves as ADC0 analog input, PWM1P capture/output and UART2 receive RxD2."
},
{
"number": "6",
"name": "P1.1",
"type": "bidirectional",
"description": "Standard I/O that also serves as ADC1 analog input, PWM1N output and UART2 transmit TxD2."
},
{
"number": "7",
"name": "P4.7",
"type": "bidirectional",
"description": "Standard I/O that also serves as UART2 alternate TX (TxD2_2), CAN2 TX and LIN TX alternate functions."
},
{
"number": "8",
"name": "P1.4",
"type": "bidirectional",
"description": "Standard I/O that also serves as ADC4 analog input, PWM3P, SPI MISO and I2C SDA alternate functions."
},
{
"number": "9",
"name": "P1.5",
"type": "bidirectional",
"description": "Standard I/O that also serves as ADC5 analog input, PWM3N, SPI SCLK and I2C SCL alternate functions."
},
{
"number": "10",
"name": "P1.6",
"type": "bidirectional",
"description": "Standard I/O that also serves as ADC6 analog input, PWM4P, UART1 RX alternate (RxD_3), main clock output MCLKO_2 and external crystal output XTALO."
},
{
"number": "11",
"name": "P1.7",
"type": "bidirectional",
"description": "Standard I/O that also serves as ADC7 analog input, PWM4N, UART1 TX alternate (TxD_3) and external crystal/clock input XTALI."
},
{
"number": "12",
"name": "P1.3",
"type": "bidirectional",
"description": "Standard I/O that also serves as ADC3 analog input, SPI MOSI, PWM2N and Timer2 clock-divided output T2CLKO."
},
{
"number": "13",
"name": "P1.2",
"type": "bidirectional",
"description": "Standard I/O that also serves as PWM2P output/capture, SPI SS input and Timer2 external clock input T2."
},
{
"number": "14",
"name": "P5.4",
"type": "bidirectional",
"description": "Standard I/O by default; when configured as reset it is an active-low nRST input, and it also serves as MCLKO, ADC2 input and SPI SS."
},
{
"number": "15",
"name": "Vcc",
"type": "power_in",
"description": "Power supply pin; operating voltage range is 1.9 V to 5.5 V."
},
{
"number": "16",
"name": "ADC_VRef+",
"type": "input",
"description": "ADC external reference voltage input that must be connected to an external reference between 2.4 V and MCU-VCC, since leaving it floating causes leakage current."
},
{
"number": "17",
"name": "Gnd",
"type": "power_in",
"description": "Ground pin, also used as the ADC analog ground AGnd."
},
{
"number": "18",
"name": "P4.0",
"type": "bidirectional",
"description": "Standard I/O that also serves as SPI MOSI alternate (MOSI_3), USART1 and USART2 SPI MOSI alternates and I2S data output I2SSD_4."
},
{
"number": "19",
"name": "P3.0",
"type": "bidirectional",
"description": "Port 3 bit 0 that also serves as UART1 RXD, USB data line D- and external interrupt INT4; it has a weak pull-up after power-on."
},
{
"number": "20",
"name": "P3.1",
"type": "bidirectional",
"description": "Port 3 bit 1 that also serves as UART1 TXD and USB data line D+; it has a weak pull-up after power-on."
},
{
"number": "21",
"name": "P3.2",
"type": "bidirectional",
"description": "Standard I/O that also serves as external interrupt INT0, SPI SCLK alternate, I2C SCL alternate and PWM external trigger PWMETI; it is sampled at power-on to decide USB download entry."
},
{
"number": "22",
"name": "P3.3",
"type": "bidirectional",
"description": "Standard I/O that also serves as external interrupt INT1, SPI MISO alternate, I2C SDA alternate and PWM4N output."
},
{
"number": "23",
"name": "P3.4",
"type": "bidirectional",
"description": "Standard I/O that also serves as Timer0 external clock T0, Timer1 clock-divided output T1CLKO and comparator output CMPO."
},
{
"number": "24",
"name": "P5.0",
"type": "bidirectional",
"description": "Standard I/O that also serves as UART3 RX alternate (RxD3_2), comparator positive input CMP+_2 and CAN RX alternate."
},
{
"number": "25",
"name": "P5.1",
"type": "bidirectional",
"description": "Standard I/O that also serves as UART3 TX alternate (TxD3_2), comparator positive input CMP+_3 and CAN TX alternate."
},
{
"number": "26",
"name": "P3.5",
"type": "bidirectional",
"description": "Standard I/O that also serves as Timer1 external clock T1, Timer0 clock-divided output T0CLKO, SPI SS alternate and PWM fault input PWMFLT."
},
{
"number": "27",
"name": "P3.6",
"type": "bidirectional",
"description": "Standard I/O that also serves as external interrupt INT2, UART1 RX alternate (RxD_2) and comparator negative input CMP-."
},
{
"number": "28",
"name": "P3.7",
"type": "bidirectional",
"description": "Standard I/O that also serves as external interrupt INT3, UART1 TX alternate (TxD_2) and comparator positive input CMP+."
},
{
"number": "29",
"name": "P4.1",
"type": "bidirectional",
"description": "Standard I/O that also serves as SPI MISO alternate (MISO_3), comparator output CMPO_2 and PWM external trigger PWMETI_2."
},
{
"number": "30",
"name": "P4.2",
"type": "bidirectional",
"description": "Standard I/O that also serves as the WR strobe and CAN RX alternate (CAN_RX_3)."
},
{
"number": "31",
"name": "P4.3",
"type": "bidirectional",
"description": "Standard I/O that also serves as UART4 RX alternate (RxD_4) and SPI SCLK alternate (SCLK_3)."
},
{
"number": "32",
"name": "P4.4",
"type": "bidirectional",
"description": "Standard I/O that also serves as the RD strobe and UART4 TX alternate (TxD_4)."
},
{
"number": "33",
"name": "P2.0",
"type": "bidirectional",
"description": "Standard I/O that also serves as address bus A8, PWM1P_2 and PWM5 output."
},
{
"number": "34",
"name": "P2.1",
"type": "bidirectional",
"description": "Standard I/O that also serves as address bus A9, PWM1N_2 and PWM6 output."
},
{
"number": "35",
"name": "P2.2",
"type": "bidirectional",
"description": "Standard I/O that also serves as address bus A10, PWM2P_2, PWM7 and SPI SS alternate."
},
{
"number": "36",
"name": "P2.3",
"type": "bidirectional",
"description": "Standard I/O that also serves as address bus A11, PWM2N_2, PWM8 and SPI MOSI alternate."
},
{
"number": "37",
"name": "P2.4",
"type": "bidirectional",
"description": "Standard I/O that also serves as address bus A12, PWM3P_2, SPI MISO alternate and I2C SDA alternate."
},
{
"number": "38",
"name": "P2.5",
"type": "bidirectional",
"description": "Standard I/O that also serves as address bus A13, PWM3N_2, SPI SCLK alternate and I2C SCL alternate."
},
{
"number": "39",
"name": "P2.6",
"type": "bidirectional",
"description": "Standard I/O that also serves as address bus A14 and PWM4P_2 output."
},
{
"number": "40",
"name": "P2.7",
"type": "bidirectional",
"description": "Standard I/O that also serves as address bus A15 and PWM4N_2 output."
},
{
"number": "41",
"name": "P4.5",
"type": "bidirectional",
"description": "Standard I/O that also serves as the ALE strobe and CAN TX alternate (CAN_TX_3)."
},
{
"number": "42",
"name": "P4.6",
"type": "bidirectional",
"description": "Standard I/O that also serves as UART2 RX alternate (RxD2_2), CAN2 RX alternate (CAN2_RX_3) and LIN RX alternate (LIN_RX_3)."
},
{
"number": "43",
"name": "P0.0",
"type": "bidirectional",
"description": "Standard I/O that also serves as address/data bus AD0, ADC8 analog input, UART3 RX and CAN RX."
},
{
"number": "44",
"name": "P0.1",
"type": "bidirectional",
"description": "Standard I/O that also serves as address/data bus AD1, ADC9 analog input, UART3 TX and CAN TX."
},
{
"number": "45",
"name": "P0.2",
"type": "bidirectional",
"description": "Standard I/O that also serves as address/data bus AD2, ADC10 analog input, UART4 RX, CAN2 RX and LIN RX."
},
{
"number": "46",
"name": "P0.3",
"type": "bidirectional",
"description": "Standard I/O that also serves as address/data bus AD3, ADC11 analog input, UART4 TX, CAN2 TX and LIN TX."
},
{
"number": "47",
"name": "P0.4",
"type": "bidirectional",
"description": "Standard I/O that also serves as address/data bus AD4, ADC12 analog input and Timer3 external clock T3."
},
{
"number": "48",
"name": "P5.2",
"type": "bidirectional",
"description": "Standard I/O that also serves as UART4 RX alternate (RxD4_2), CAN2 RX alternate (CAN2_RX_2) and LIN RX alternate (LIN_RX_2)."
},
{
"number": "49",
"name": "EP",
"type": "passive",
"description": "Exposed pad (from the footprint; not named in the datasheet pin table)."
}
],
"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: The datasheet excerpt gives the LQFP48/QFN48 pin-to-name mapping in the pin diagram (PAGE 305), whic",
"1/49 pins cited to the wrong page (name found elsewhere): ['16:ADC_VRef+@p316']"
],
"pages_sent": 108,
"cost_usd": 0.2475,
"at": "2026-10-27T06:31:48"
},
"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": 49,
"described": 49,
"cites_pages": true,
"refuses_to_fabricate": true
}
},
"viewers": {
"symbol": "viewers/symbol.html",
"footprint": "viewers/footprint.html"
},
"models_3d": [
{
"file": "stc32g8k64-42i-qfn48.step",
"role": "plain",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
6.02,
6.02,
0.9
],
"zmin_mm": 0.0,
"centre_offset_mm": 0.0,
"footprint_binding": "identity",
"sha256": "57cc3154d60578ac0cd6e940e40f9e23cb5ea3706487d2a8ba4c05affd6836bf",
"checked": "2026-10-27",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
},
{
"file": "stc32g8k64-42i-qfn48-etched.step",
"role": "eda",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
6.02,
6.02,
0.9
],
"zmin_mm": 0.0,
"centre_offset_mm": 0.0,
"footprint_binding": "identity",
"sha256": "53813fa0361592f9d368eb02d3e5839f760c5bfdf75eb6cbd77afdca7e433f8e",
"checked": "2026-10-27",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
}
]
}
}