component
HC32F002C4UB-ZFN20TR
Public Made by Adomby adom
XHSC Microcontrollers (MCU/MPU/SOC), QFN-20-EP(3x3). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.
main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
{
"slug": "hc32f002c4ub-zfn20tr",
"version": "0.1.0",
"type": "component",
"description": "XHSC Microcontrollers (MCU/MPU/SOC), QFN-20-EP(3x3). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
"tags": [
"component",
"embedded processors & controllers",
"hc32f002c4ub-zfn20tr",
"factory-2.0.0",
"extractor-text"
],
"dependencies": {},
"hero": {
"type": "image",
"path": "docs/hero.png"
},
"files": [
"page.json",
"README.md",
"hc32f002c4ub-zfn20tr.kicad_sym",
"hc32f002c4ub-zfn20tr.kicad_mod",
"hc32f002c4ub-zfn20tr.glb",
"hc32f002c4ub-zfn20tr.step",
"hc32f002c4ub-zfn20tr.lbr",
"docs/hero.png",
"docs/hc32f002c4ub-zfn20tr-datasheet.pdf",
"viewers/symbol.html",
"viewers/footprint.html",
"hc32f002c4ub-zfn20tr-hero.glb",
"hc32f002c4ub-zfn20tr-hero.overlay.json"
],
"component": {
"mpn": "HC32F002C4UB-ZFN20TR",
"manufacturer": "XHSC",
"package": "QFN-20-EP(3x3)",
"pin_count": 21,
"category": "Embedded Processors & Controllers",
"subcategory": "Microcontrollers (MCU/MPU/SOC)",
"datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8589040661756850176",
"parts": {
"symbol": "hc32f002c4ub-zfn20tr.kicad_sym",
"footprint": "hc32f002c4ub-zfn20tr.kicad_mod",
"model_3d": "hc32f002c4ub-zfn20tr-hero.glb",
"model_3d_plain": "hc32f002c4ub-zfn20tr.glb",
"model_3d_step": "hc32f002c4ub-zfn20tr-etched.step",
"model_3d_step_plain": "hc32f002c4ub-zfn20tr.step",
"lbr": "hc32f002c4ub-zfn20tr.lbr"
},
"distributor_links": {
"lcsc": "C963561"
},
"distributor_check": {
"checked_at": "2026-10-09T19:01:52Z",
"source": "Component Ocean /api/assign-pns",
"digikey": {
"pn": null,
"status": "no match"
},
"mouser": {
"pn": null,
"status": "no match"
}
},
"pins": [
{
"number": "1",
"name": "RESETB/PA00",
"type": "input",
"description": "Active-low external reset input with internal pull-up and glitch filter; a low level must last more than 20 µs (typ.) to reliably reset the MCU, and PA00 has no alternate digital functions."
},
{
"number": "2",
"name": "PA01",
"type": "bidirectional",
"description": "GPIO PA01 with alternate functions LPUART0_RXD, I2C_SDA, GTIM_TOGP and HCLK_OUT, and ADC input AIN7; it can also be used as the external clock input (1-16 MHz) when SysCtrl.CR2.EXTEN is set."
},
{
"number": "3",
"name": "PA02",
"type": "bidirectional",
"description": "GPIO PA02 with alternate functions LPUART0_TXD, I2C_SCL, GTIM_TOGN and LVD_OUT, and ADC input AIN8."
},
{
"number": "4",
"name": "AVSS/DVSS",
"type": "power_in",
"description": "Analog and digital ground, both tied to this pin on the package; must be connected to the external supply ground."
},
{
"number": "5",
"name": "PA04",
"type": "bidirectional",
"description": "GPIO PA04 with alternate functions GTIM_TOGP, LVD_OUT and SPI_NSS."
},
{
"number": "6",
"name": "AVCC/DVCC",
"type": "power_in",
"description": "Analog and digital supply, tied together on this pin; the datasheet specifies 1.7-5.5 V operation, requires AVCC and DVCC at the same voltage, and needs decoupling placed close to the pin."
},
{
"number": "7",
"name": "PA03",
"type": "bidirectional",
"description": "GPIO PA03 with alternate functions GTIM_CH2, SPI_NSS, CTRIM_ETR, CTRIM_TOG, and LVD monitor input LVD_IN0."
},
{
"number": "8",
"name": "PB05",
"type": "bidirectional",
"description": "GPIO PB05 with alternate functions I2C_SDA, ATIM3_BK, CTRIM_ETR and CTRIM_TOG, and ADC input AIN9."
},
{
"number": "9",
"name": "PB04",
"type": "bidirectional",
"description": "GPIO PB04 with alternate functions I2C_SCL, ATIM3_CH2B and LPUART0_CTS, and ADC input AIN10; PB04-PB05 and PC03-PC04 have double drive capability in this package."
},
{
"number": "10",
"name": "PC03",
"type": "bidirectional",
"description": "GPIO PC03 with alternate functions ATIM3_CH2A, ATIM3_CH0B and LPUART0_RTS, LVD monitor input LVD_IN1, and ADC external reference input ADC_ExRef."
},
{
"number": "11",
"name": "PC04",
"type": "bidirectional",
"description": "GPIO PC04 with alternate functions ATIM3_CH0B, ATIM3_CH1B and TCLK_OUT, and ADC input AIN0."
},
{
"number": "12",
"name": "PC05",
"type": "bidirectional",
"description": "GPIO PC05 with alternate functions SPI_SCK, GTIM_CH3 and ATIM3_ETR."
},
{
"number": "13",
"name": "PC06",
"type": "bidirectional",
"description": "GPIO PC06 with alternate functions SPI_MOSI, ATIM3_CH0A and LPUART1_RTS, and ADC input AIN1; it is a digital input without pull-up after reset."
},
{
"number": "14",
"name": "PC07",
"type": "bidirectional",
"description": "GPIO PC07 that is the SWDIO debug data pin by default (input with pull-up after reset), with alternate functions SPI_MISO, ATIM3_CH1A and LPUART0_RXD; SWD can be released to GPIO via SysCtrl.CR1.SWDIO."
},
{
"number": "15",
"name": "PD01",
"type": "bidirectional",
"description": "GPIO PD01 that is the SWCLK debug clock pin by default (input with pull-up after reset), with alternate functions GTIM_ETR, ATIM3_BK and LPUART0_TXD; SWD can be released to GPIO via SysCtrl.CR1.SWDIO."
},
{
"number": "16",
"name": "PD02",
"type": "bidirectional",
"description": "GPIO PD02 with alternate functions GTIM_CH2, ATIM3_CH2A and LPUART1_CTS, and ADC input AIN2."
},
{
"number": "17",
"name": "PD03",
"type": "bidirectional",
"description": "GPIO PD03 with alternate functions GTIM_CH1, ATIM3_CH1A and LPUART1_RXD, and ADC input AIN3."
},
{
"number": "18",
"name": "PD04",
"type": "bidirectional",
"description": "GPIO PD04 with alternate functions GTIM_CH0, LPUART1_TXD and SPI_SCK, ADC input AIN4, and LVD monitor input LVD_IN2."
},
{
"number": "19",
"name": "PD05",
"type": "bidirectional",
"description": "GPIO PD05 with alternate functions LPUART1_TXD, ATIM3_CH0A and SPI_MISO, and ADC input AIN5."
},
{
"number": "20",
"name": "PD06",
"type": "bidirectional",
"description": "GPIO PD06 with alternate functions LPUART1_RXD, GTIM_ETR and SPI_MOSI, and ADC input AIN6."
},
{
"number": "21",
"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 exposed thermal pad on the QFN-20 package is not given a pin number and its electrical connectio; Pin 1 is labelled 'PA00 - RESETB' in table 2.2 (digital column '-', analog column 'RESETB'); it is r; Table 2.2 lists some digital functions inconsistently across packages (e.g., LPUART1_TXD appears on ",
"exposed pad 21 added from the footprint"
],
"pages_sent": 169,
"cost_usd": 0.5639,
"at": "2026-10-09T18:59:39"
},
"datasheet": {
"url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8589040661756850176",
"pages": 415,
"sha256": "a46a63adb2016518",
"source_tier": "lcsc"
},
"cad": "KiCad official (CC-BY-SA 4.0)",
"pins": {
"total": 21,
"described": 21,
"cites_pages": true,
"refuses_to_fabricate": true
}
},
"viewers": {
"symbol": "viewers/symbol.html",
"footprint": "viewers/footprint.html"
},
"models_3d": [
{
"file": "hc32f002c4ub-zfn20tr.step",
"role": "plain",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
3.0,
3.0,
0.52
],
"zmin_mm": 0.0,
"centre_offset_mm": 0.0,
"footprint_binding": "identity",
"sha256": "0ee4e1082236390795238cd34b082d96efd160d6292c636cc40201a5a30cdc63",
"checked": "2026-10-09",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
},
{
"file": "hc32f002c4ub-zfn20tr-etched.step",
"role": "eda",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
3.0,
3.0,
0.52
],
"zmin_mm": 0.0,
"centre_offset_mm": 0.0,
"footprint_binding": "identity",
"sha256": "7216ff3d022a98c4c87e27886681bcf52684ac05fa8c63a3f5b5497558c47007",
"checked": "2026-10-09",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
}
]
}
}