main
Ray
Publish 0.1.0
63b3d6d
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
{
"slug": "stc12c5a32s2-35i-pdip40",
"version": "0.1.0",
"type": "component",
"description": "STC Micro Microcontroller Units (MCUs/MPUs/SOCs), DIP-40. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
"tags": [
"component",
"embedded processors & controllers",
"stc12c5a32s2-35i-pdip40",
"factory-2.0.0",
"extractor-text"
],
"dependencies": {},
"hero": {
"type": "image",
"path": "docs/hero.png"
},
"files": [
"page.json",
"README.md",
"stc12c5a32s2-35i-pdip40.kicad_sym",
"stc12c5a32s2-35i-pdip40.kicad_mod",
"stc12c5a32s2-35i-pdip40.glb",
"stc12c5a32s2-35i-pdip40.step",
"stc12c5a32s2-35i-pdip40.lbr",
"docs/hero.png",
"docs/stc12c5a32s2-35i-pdip40-datasheet.pdf",
"viewers/symbol.html",
"viewers/footprint.html",
"stc12c5a32s2-35i-pdip40-hero.glb",
"stc12c5a32s2-35i-pdip40-hero.overlay.json"
],
"component": {
"mpn": "STC12C5A32S2-35I-PDIP40",
"manufacturer": "STC Micro",
"package": "DIP-40",
"pin_count": 40,
"category": "Embedded Processors & Controllers",
"subcategory": "Microcontroller Units (MCUs/MPUs/SOCs)",
"datasheet": "https://datasheet.lcsc.com/datasheet/pdf/02701df9a7b1d205cdff5187053fcc09.pdf",
"parts": {
"symbol": "stc12c5a32s2-35i-pdip40.kicad_sym",
"footprint": "stc12c5a32s2-35i-pdip40.kicad_mod",
"model_3d": "stc12c5a32s2-35i-pdip40-hero.glb",
"model_3d_plain": "stc12c5a32s2-35i-pdip40.glb",
"model_3d_step": "stc12c5a32s2-35i-pdip40-etched.step",
"model_3d_step_plain": "stc12c5a32s2-35i-pdip40.step",
"lbr": "stc12c5a32s2-35i-pdip40.lbr"
},
"distributor_links": {
"lcsc": "C66940"
},
"distributor_check": {
"checked_at": "2026-11-12T20:44:05Z",
"source": "Component Ocean /api/assign-pns",
"digikey": {
"pn": null,
"status": "no match"
},
"mouser": {
"pn": null,
"status": "no match"
}
},
"pins": [
{
"number": "1",
"name": "P1.0",
"type": "bidirectional",
"description": "P1.0 general I/O with ADC0 analog input and CLKOUT2 (BRT clock output); set to open-drain or high-impedance input when used as ADC."
},
{
"number": "2",
"name": "P1.1",
"type": "bidirectional",
"description": "P1.1 general I/O with ADC1 analog input."
},
{
"number": "3",
"name": "P1.2",
"type": "bidirectional",
"description": "P1.2 general I/O with ADC2 input, ECI (PCA external clock input) and RxD2 (UART2 receive)."
},
{
"number": "4",
"name": "P1.3",
"type": "bidirectional",
"description": "P1.3 general I/O with ADC3 input, CCP0 (PCA/PWM channel 0) and TxD2 (UART2 transmit)."
},
{
"number": "5",
"name": "P1.4",
"type": "bidirectional",
"description": "P1.4 general I/O with ADC4 input, CCP1 (PCA/PWM channel 1) and SPI SS."
},
{
"number": "6",
"name": "P1.5",
"type": "bidirectional",
"description": "P1.5 general I/O with ADC5 input and SPI MOSI."
},
{
"number": "7",
"name": "P1.6",
"type": "bidirectional",
"description": "P1.6 general I/O with ADC6 input and SPI MISO."
},
{
"number": "8",
"name": "P1.7",
"type": "bidirectional",
"description": "P1.7 general I/O with ADC7 input and SPI SCLK."
},
{
"number": "9",
"name": "RST/P4.7",
"type": "input",
"description": "Reset pin or P4.7 I/O, selected at ISP programming time; if set as P4.7 an external clock must be used."
},
{
"number": "10",
"name": "P3.0",
"type": "bidirectional",
"description": "P3.0 general I/O and RxD (UART1 receive); also INT-style power-down wakeup pin."
},
{
"number": "11",
"name": "P3.1",
"type": "bidirectional",
"description": "P3.1 general I/O and TxD (UART1 transmit)."
},
{
"number": "12",
"name": "P3.2",
"type": "bidirectional",
"description": "P3.2 general I/O and INT0 external interrupt 0; can wake the CPU from power-down."
},
{
"number": "13",
"name": "P3.3",
"type": "bidirectional",
"description": "P3.3 general I/O and INT1 external interrupt 1; can wake the CPU from power-down."
},
{
"number": "14",
"name": "P3.4",
"type": "bidirectional",
"description": "P3.4 general I/O with T0 input and CLKOUT0 (Timer0 overflow clock output); can wake from power-down."
},
{
"number": "15",
"name": "P3.5",
"type": "bidirectional",
"description": "P3.5 general I/O with T1 input and CLKOUT1 (Timer1 overflow clock output); can wake from power-down."
},
{
"number": "16",
"name": "P3.6",
"type": "bidirectional",
"description": "P3.6 general I/O and WR (external data memory write strobe)."
},
{
"number": "17",
"name": "P3.7",
"type": "bidirectional",
"description": "P3.7 general I/O and RD (external data memory read strobe)."
},
{
"number": "18",
"name": "XTAL2",
"type": "passive",
"description": "Crystal oscillator output; leave floating when an external clock is driven on XTAL1 or the internal RC is used."
},
{
"number": "19",
"name": "XTAL1",
"type": "input",
"description": "Crystal oscillator input or external clock input."
},
{
"number": "20",
"name": "Gnd",
"type": "power_in",
"description": "Ground."
},
{
"number": "21",
"name": "P2.0",
"type": "bidirectional",
"description": "P2.0 general I/O (port 2, external memory address high byte)."
},
{
"number": "22",
"name": "P2.1",
"type": "bidirectional",
"description": "P2.1 general I/O (port 2)."
},
{
"number": "23",
"name": "P2.2",
"type": "bidirectional",
"description": "P2.2 general I/O (port 2)."
},
{
"number": "24",
"name": "P2.3",
"type": "bidirectional",
"description": "P2.3 general I/O (port 2)."
},
{
"number": "25",
"name": "P2.4",
"type": "bidirectional",
"description": "P2.4 general I/O (port 2)."
},
{
"number": "26",
"name": "P2.5",
"type": "bidirectional",
"description": "P2.5 general I/O (port 2)."
},
{
"number": "27",
"name": "P2.6",
"type": "bidirectional",
"description": "P2.6 general I/O (port 2)."
},
{
"number": "28",
"name": "P2.7",
"type": "bidirectional",
"description": "P2.7 general I/O (port 2)."
},
{
"number": "29",
"name": "P4.4/NA",
"type": "bidirectional",
"description": "After reset P4.4 is a weak pull-up with no function; setting P4SW.4=1 makes it I/O P4.4."
},
{
"number": "30",
"name": "P4.5/ALE",
"type": "bidirectional",
"description": "After reset ALE signal output only during MOVX external access; setting P4SW.5=1 makes it I/O P4.5."
},
{
"number": "31",
"name": "P4.6/EX_LVD/RST2",
"type": "bidirectional",
"description": "External low-voltage detect / second reset pin after reset (threshold about 1.32V at 5V); setting P4SW.6=1 makes it I/O P4.6."
},
{
"number": "32",
"name": "P0.7",
"type": "bidirectional",
"description": "P0.7 general I/O (port 0, external bus data/address)."
},
{
"number": "33",
"name": "P0.6",
"type": "bidirectional",
"description": "P0.6 general I/O (port 0)."
},
{
"number": "34",
"name": "P0.5",
"type": "bidirectional",
"description": "P0.5 general I/O (port 0)."
},
{
"number": "35",
"name": "P0.4",
"type": "bidirectional",
"description": "P0.4 general I/O (port 0)."
},
{
"number": "36",
"name": "P0.3",
"type": "bidirectional",
"description": "P0.3 general I/O (port 0)."
},
{
"number": "37",
"name": "P0.2",
"type": "bidirectional",
"description": "P0.2 general I/O (port 0)."
},
{
"number": "38",
"name": "P0.1",
"type": "bidirectional",
"description": "P0.1 general I/O (port 0)."
},
{
"number": "39",
"name": "P0.0",
"type": "bidirectional",
"description": "P0.0 general I/O (port 0)."
},
{
"number": "40",
"name": "Vcc",
"type": "power_in",
"description": "Positive supply, 5.5V to 3.5V for the STC12C5A series."
}
],
"provenance": {
"extractor": "extract_pins 0.3",
"factory_chain": {
"factory": "2.0.0",
"extractor": "extract_pins 0.3",
"primary_model": "claude-sonnet-5-5",
"primary_mode": "text",
"consensus_model": "claude-sonnet-5-5",
"consensus": "agreed",
"guards": "pin_guards 0.1: passed",
"guard_notes": [
"extractor flagged: The PDIP40 pin numbers were read from the pinout diagram on page 48, where numbers and names are in ; The datasheet covers the STC12C5A60S2 family. The STC12C5A32S2-35I part has the same PDIP40 pinout, ; The pin electrical types are my inference, not printed in the datasheet. XTAL1 and XTAL2 are typed i",
"1/40 pins cited to the wrong page (name found elsewhere): ['19:XTAL1@p144']"
],
"pages_sent": 123,
"cost_usd": 0.7805,
"at": "2026-11-12T20:43:37"
},
"datasheet": {
"url": "https://datasheet.lcsc.com/datasheet/pdf/02701df9a7b1d205cdff5187053fcc09.pdf",
"pages": 1543,
"sha256": "7fde44da8887b7a0",
"source_tier": "lcsc"
},
"cad": "land: KiCad official (CC-BY-SA 4.0); 3D: generated from the datasheet",
"model_3d_generated": {
"generator": "factory/gen_pkg3d.py",
"family": "(?<![A-Z])P?DIP",
"height_mm": 4.83,
"height_basis": "datasheet A, max",
"standoff_mm": 0.445,
"standoff_basis": "datasheet A1, nominal"
},
"pins": {
"total": 40,
"described": 40,
"cites_pages": true,
"refuses_to_fabricate": true
}
},
"viewers": {
"symbol": "viewers/symbol.html",
"footprint": "viewers/footprint.html"
},
"models_3d": [
{
"file": "stc12c5a32s2-35i-pdip40.step",
"role": "plain",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "body on z = 0, through-hole leads below",
"extents_mm": [
15.49,
52.0,
7.83
],
"zmin_mm": -3.0,
"centre_offset_mm": 0.0,
"footprint_binding": "identity",
"sha256": "bbe5e09b5367427fda8dded50dcc70ef7b46fc267fa834be1982d82f4b663e6f",
"checked": "2026-11-12",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
},
{
"file": "stc12c5a32s2-35i-pdip40-etched.step",
"role": "eda",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "body on z = 0, through-hole leads below",
"extents_mm": [
15.49,
52.0,
7.83
],
"zmin_mm": -3.0,
"centre_offset_mm": 0.0,
"footprint_binding": "identity",
"sha256": "8465d4bb7efd8bfccdda3dc2326448d34420d1004439b6abbb7f81de3a0efd9e",
"checked": "2026-11-12",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
}
],
"package_dims": {
"package_code": "-PDIP40 suffix; selection table lists STC12C5A60S2 and STC12C5A32S2 both in PDIP40, same series manual",
"source_page": 103,
"D": {
"nom_mm": 52.0,
"range_mm": [
51.5,
52.5
]
},
"E1": {
"nom_mm": 13.84,
"range_mm": [
13.72,
13.97
]
},
"E": {
"nom_mm": 15.24,
"range_mm": [
null,
null
]
},
"A": {
"nom_mm": 4.83,
"range_mm": [
null,
4.83
]
},
"source": "reviewer dims decision (part-reviewer (ray review), stc12c5a32s2-35i-pdip40.dims.json)",
"model_check": {
"file": "stc12c5a32s2-35i-pdip40.step",
"verdict": "PASS",
"reasons": [
"height and body within the datasheet's package drawing"
],
"by": "factory/package_fit.py"
}
}
}
}