main
Ray
Set visibility: public
6bc7968
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
{
"schema_version": 1,
"type": "component",
"slug": "stc12c5a60s2-35i-pdip40",
"title": "STC12C5A60S2-35I-PDIP40",
"brief": "STC Micro Microcontroller Units (MCUs/MPUs/SOCs), DIP-40. 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",
"stc12c5a60s2-35i-pdip40",
"factory-2.0.0",
"extractor-text"
],
"component": {
"mpn": "STC12C5A60S2-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": "stc12c5a60s2-35i-pdip40.kicad_sym",
"footprint": "stc12c5a60s2-35i-pdip40.kicad_mod",
"model_3d": "stc12c5a60s2-35i-pdip40-hero.glb",
"model_3d_plain": "stc12c5a60s2-35i-pdip40.glb",
"model_3d_step": "stc12c5a60s2-35i-pdip40-etched.step",
"model_3d_step_plain": "stc12c5a60s2-35i-pdip40.step",
"lbr": "stc12c5a60s2-35i-pdip40.lbr"
},
"distributor_links": {
"lcsc": "C14550"
},
"distributor_check": {
"checked_at": "2026-11-12T20:41:28Z",
"source": "Component Ocean /api/assign-pns",
"digikey": {
"pn": null,
"status": "no match"
},
"mouser": {
"pn": null,
"status": "no match"
}
},
"pins": [
{
"number": "1",
"name": "CLKOUT2/ADC0/P1.0",
"type": "bidirectional",
"description": "Port 1 bit 0 is a general I/O (mode set by P1M1/P1M0), also the CLKOUT2 clock output from the BRT overflow and ADC channel 0; ADC use requires setting the pin to open-drain or high-impedance input first."
},
{
"number": "2",
"name": "ADC1/P1.1",
"type": "bidirectional",
"description": "Port 1 bit 1 is a general I/O that doubles as ADC channel 1 input and must be set to open-drain or high-impedance input before being used for A/D conversion."
},
{
"number": "3",
"name": "RxD2/ECI/ADC2/P1.2",
"type": "bidirectional",
"description": "Port 1 bit 2 carries the UART2 receive input RxD2, the PCA external clock ECI and ADC channel 2; UART2 can be switched to P4.2 through AUXR1 bit 4 (S2_P4)."
},
{
"number": "4",
"name": "TxD2/CCP0/ADC3/P1.3",
"type": "bidirectional",
"description": "Port 1 bit 3 carries the UART2 transmit output TxD2, PCA module 0 CCP0 and ADC channel 3; UART2 can be switched to P4.3 through AUXR1 bit 4 (S2_P4)."
},
{
"number": "5",
"name": "SS/CCP1/ADC4/P1.4",
"type": "bidirectional",
"description": "Port 1 bit 4 carries the SPI slave select SS, PCA module 1 CCP1 and ADC channel 4; SPI can be moved to P4 through AUXR1 bit 5 (SPI_P4)."
},
{
"number": "6",
"name": "MOSI/ADC5/P1.5",
"type": "bidirectional",
"description": "Port 1 bit 5 carries the SPI master-out/slave-in line MOSI and ADC channel 5; it can be moved to P4.1 when SPI_P4 is set."
},
{
"number": "7",
"name": "MISO/ADC6/P1.6",
"type": "bidirectional",
"description": "Port 1 bit 6 carries the SPI master-in/slave-out line MISO and ADC channel 6; it can be moved to P4.2 when SPI_P4 is set."
},
{
"number": "8",
"name": "SCLK/ADC7/P1.7",
"type": "bidirectional",
"description": "Port 1 bit 7 carries the SPI clock SCLK and ADC channel 7; it can be moved to P4.3 when SPI_P4 is set."
},
{
"number": "9",
"name": "RST/P4.7",
"type": "bidirectional",
"description": "Reset input when configured as RST (ISP option); when used as P4.7 I/O an external crystal is required, and a 470 Ω to 1 kΩ pull-down is recommended to avoid download lockout."
},
{
"number": "10",
"name": "RxD/P3.0",
"type": "bidirectional",
"description": "Port 3 bit 0 carries the UART1 receive input RxD and can wake the part from power-down when RXD_PIN_IE is set."
},
{
"number": "11",
"name": "TxD/P3.1",
"type": "bidirectional",
"description": "Port 3 bit 1 carries the UART1 transmit output TxD."
},
{
"number": "12",
"name": "INT0/P3.2",
"type": "bidirectional",
"description": "Port 3 bit 2 carries external interrupt 0 INT0 and can wake the CPU from power-down mode."
},
{
"number": "13",
"name": "INT1/P3.3",
"type": "bidirectional",
"description": "Port 3 bit 3 carries external interrupt 1 INT1 and can wake the CPU from power-down mode."
},
{
"number": "14",
"name": "CLKOUT0/T0/P3.4",
"type": "bidirectional",
"description": "Port 3 bit 4 carries Timer 0 external input T0, the T0 clock output CLKOUT0 and a power-down wake function when T0_PIN_IE is set."
},
{
"number": "15",
"name": "CLKOUT1/T1/P3.5",
"type": "bidirectional",
"description": "Port 3 bit 5 carries Timer 1 external input T1, the T1 clock output CLKOUT1 and a power-down wake function when T1_PIN_IE is set."
},
{
"number": "16",
"name": "WR/P3.6",
"type": "bidirectional",
"description": "Port 3 bit 6 carries the external data memory write strobe WR, used only when external RAM is accessed by MOVX."
},
{
"number": "17",
"name": "RD/P3.7",
"type": "bidirectional",
"description": "Port 3 bit 7 carries the external data memory read strobe RD, used only when external RAM is accessed by MOVX."
},
{
"number": "18",
"name": "XTAL2",
"type": "output",
"description": "Output of the on-chip inverting oscillator amplifier for the external crystal; it is left floating when the internal R/C oscillator is selected."
},
{
"number": "19",
"name": "XTAL1",
"type": "input",
"description": "Input to the on-chip inverting oscillator amplifier and internal clock circuit; an external clock may be driven into XTAL1 with XTAL2 left floating."
},
{
"number": "20",
"name": "Gnd",
"type": "power_in",
"description": "Ground reference for the device."
},
{
"number": "21",
"name": "P2.0",
"type": "bidirectional",
"description": "Port 2 bit 0 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain)."
},
{
"number": "22",
"name": "P2.1",
"type": "bidirectional",
"description": "Port 2 bit 1 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain)."
},
{
"number": "23",
"name": "P2.2",
"type": "bidirectional",
"description": "Port 2 bit 2 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain)."
},
{
"number": "24",
"name": "P2.3",
"type": "bidirectional",
"description": "Port 2 bit 3 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain)."
},
{
"number": "25",
"name": "P2.4",
"type": "bidirectional",
"description": "Port 2 bit 4 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain)."
},
{
"number": "26",
"name": "P2.5",
"type": "bidirectional",
"description": "Port 2 bit 5 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain)."
},
{
"number": "27",
"name": "P2.6",
"type": "bidirectional",
"description": "Port 2 bit 6 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain)."
},
{
"number": "28",
"name": "P2.7",
"type": "bidirectional",
"description": "Port 2 bit 7 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain)."
},
{
"number": "29",
"name": "P4.4/NA",
"type": "bidirectional",
"description": "Port 4 bit 4 is a weak-pull-up pin with no function after reset; setting P4SW.4 = 1 makes it a general I/O."
},
{
"number": "30",
"name": "P4.5/ALE",
"type": "bidirectional",
"description": "Port 4 bit 5 outputs ALE only during MOVX accesses to external devices; setting P4SW.5 = 1 makes it a general I/O."
},
{
"number": "31",
"name": "P4.6/EX_LVD/RST2",
"type": "bidirectional",
"description": "Port 4 bit 6 carries the second reset input RST2 and the external low-voltage detect input EX_LVD; setting P4SW.6 = 1 makes it a general I/O."
},
{
"number": "32",
"name": "P0.7",
"type": "bidirectional",
"description": "Port 0 bit 7 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA."
},
{
"number": "33",
"name": "P0.6",
"type": "bidirectional",
"description": "Port 0 bit 6 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA."
},
{
"number": "34",
"name": "P0.5",
"type": "bidirectional",
"description": "Port 0 bit 5 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA."
},
{
"number": "35",
"name": "P0.4",
"type": "bidirectional",
"description": "Port 0 bit 4 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA."
},
{
"number": "36",
"name": "P0.3",
"type": "bidirectional",
"description": "Port 0 bit 3 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA."
},
{
"number": "37",
"name": "P0.2",
"type": "bidirectional",
"description": "Port 0 bit 2 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA."
},
{
"number": "38",
"name": "P0.1",
"type": "bidirectional",
"description": "Port 0 bit 1 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA."
},
{
"number": "39",
"name": "P0.0",
"type": "bidirectional",
"description": "Port 0 bit 0 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA."
},
{
"number": "40",
"name": "Vcc",
"type": "power_in",
"description": "Positive supply; the 5 V family (STC12C5A60S2) is specified at 5.5 V to 3.5 V per the selection 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: Pin numbers were taken from the PDIP40 diagram text on page 48, where the numbers 1–20 and 40–21 are; The datasheet gives no per-pin electrical limits (absolute max, VIH/VIL, leakage). The descriptions ; RST/P4.7 is typed bidirectional because it is reset input or P4.7 I/O depending on ISP setting; the "
],
"pages_sent": 123,
"cost_usd": 0.252,
"at": "2026-11-12T20:41:02"
},
"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": "stc12c5a60s2-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,
7.83
],
"zmin_mm": -3,
"centre_offset_mm": 0,
"footprint_binding": "identity",
"sha256": "6aa5ca911cb14667dfadc31d3db6ca9c3bd4c94f31982a8f5a8ff18bca657fd3",
"checked": "2026-11-12",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
},
{
"file": "stc12c5a60s2-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,
7.83
],
"zmin_mm": -3,
"centre_offset_mm": 0,
"footprint_binding": "identity",
"sha256": "d5ab6f6397de1b3ad9f043a285f6063761de6565f506300e90f6d16b29ca2e39",
"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,
"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), stc12c5a60s2-35i-pdip40.dims.json)",
"model_check": {
"file": "stc12c5a60s2-35i-pdip40.step",
"verdict": "PASS",
"reasons": [
"height and body within the datasheet's package drawing"
],
"by": "factory/package_fit.py"
}
}
},
"metadata": {
"specs": {
"Manufacturer": "STC Micro",
"Package": "DIP-40",
"Category": "Embedded Processors & Controllers",
"Pins": "40"
},
"characteristics": {
"version": 1,
"source": "datasheet",
"datasheet_sha256": "7fde44da8887b7a077d1188c829859e5dd2ea36cca3fd0a473576f7699eef2de",
"rows": [
{
"name": "Storage temperature",
"symbol": "TST",
"kind": "absolute_maximum",
"unit": "°C",
"min": -55,
"typ": null,
"max": 125,
"conditions": "",
"source_page": 306,
"source": "datasheet"
},
{
"name": "Operating Temperature (I)",
"symbol": "TA",
"kind": "absolute_maximum",
"unit": "°C",
"min": -40,
"typ": null,
"max": 85,
"conditions": "Industrial grade (I)",
"source_page": 306,
"source": "datasheet"
},
{
"name": "DC Power Supply (5V MCU)",
"symbol": "VDD-VSS",
"kind": "absolute_maximum",
"unit": "V",
"min": -0.3,
"typ": null,
"max": 5.5,
"conditions": "5V MCU",
"source_page": 306,
"source": "datasheet"
},
{
"name": "Voltage on any pin",
"symbol": "",
"kind": "absolute_maximum",
"unit": "V",
"min": -0.3,
"typ": null,
"max": null,
"conditions": "Maximum printed as VCC+0.3 V; not numeric",
"source_page": 306,
"source": "datasheet"
},
{
"name": "VDD Operating Voltage",
"symbol": "VDD",
"kind": "recommended_operating",
"unit": "V",
"min": 3.3,
"typ": 5,
"max": 5.5,
"conditions": "",
"source_page": 306,
"source": "datasheet"
},
{
"name": "Power Down Current",
"symbol": "IPWDN",
"kind": "electrical",
"unit": "uA",
"min": null,
"typ": null,
"max": 0.1,
"conditions": "5V; printed as <0.1",
"source_page": 306,
"source": "datasheet"
},
{
"name": "Idle Current",
"symbol": "IIDLE",
"kind": "electrical",
"unit": "mA",
"min": null,
"typ": null,
"max": 3,
"conditions": "5V",
"source_page": 306,
"source": "datasheet"
},
{
"name": "Operating Current",
"symbol": "ICC",
"kind": "electrical",
"unit": "mA",
"min": null,
"typ": null,
"max": 20,
"conditions": "5V",
"source_page": 306,
"source": "datasheet"
},
{
"name": "Input low voltage (P0,P1,P2,P3)",
"symbol": "VIL1",
"kind": "electrical",
"unit": "V",
"min": null,
"typ": null,
"max": 0.8,
"conditions": "5V",
"source_page": 306,
"source": "datasheet"
},
{
"name": "Input High voltage (P0,P1,P2,P3)",
"symbol": "VIH1",
"kind": "electrical",
"unit": "V",
"min": 2,
"typ": null,
"max": null,
"conditions": "5V",
"source_page": 306,
"source": "datasheet"
},
{
"name": "Input High voltage (RESET)",
"symbol": "VIH2",
"kind": "electrical",
"unit": "V",
"min": 2.2,
"typ": null,
"max": null,
"conditions": "5V",
"source_page": 306,
"source": "datasheet"
},
{
"name": "Sinking Current for Output Low (P0,P1,P2,P3)",
"symbol": "IOL1",
"kind": "electrical",
"unit": "mA",
"min": null,
"typ": null,
"max": 20,
"conditions": "5V; Vpin=0.45V",
"source_page": 306,
"source": "datasheet"
},
{
"name": "(Quasi-output) Sourcing Current for Output High (P0,P1,P2,P3)",
"symbol": "IOH1",
"kind": "electrical",
"unit": "uA",
"min": 150,
"typ": null,
"max": 230,
"conditions": "5V",
"source_page": 306,
"source": "datasheet"
},
{
"name": "(Push-Pull, Strong-output) Sourcing Current for Output High (P0,P1,P2,P3)",
"symbol": "IOH2",
"kind": "electrical",
"unit": "mA",
"min": null,
"typ": null,
"max": 20,
"conditions": "5V; Vpin=2.4V",
"source_page": 306,
"source": "datasheet"
},
{
"name": "Logic 0 input current (P0,P1,P2,P3)",
"symbol": "IIL",
"kind": "electrical",
"unit": "uA",
"min": null,
"typ": null,
"max": 50,
"conditions": "VPIN=0V",
"source_page": 306,
"source": "datasheet"
},
{
"name": "Logic 1 to 0 transition current (P0,P1,P2,P3)",
"symbol": "ITL",
"kind": "electrical",
"unit": "uA",
"min": 100,
"typ": 270,
"max": 600,
"conditions": "VPIN=2V",
"source_page": 306,
"source": "datasheet"
}
]
}
},
"variants": [],
"sections": [
"hero",
"viewers",
"readme",
"breadcrumbs",
"info"
],
"discovery_triggers": [
"stc12c5a60s2-35i-pdip40"
],
"discovery_pitch": "STC12C5A60S2-35I-PDIP40 (STC Micro) component page: datasheet pinout, KiCad symbol, footprint and 3D.",
"author": {
"name": "Ray"
},
"dependencies": {},
"hero": {
"type": "image",
"path": "docs/hero.png"
},
"files": [
"page.json",
"README.md",
"stc12c5a60s2-35i-pdip40.kicad_sym",
"stc12c5a60s2-35i-pdip40.kicad_mod",
"stc12c5a60s2-35i-pdip40.glb",
"stc12c5a60s2-35i-pdip40.step",
"stc12c5a60s2-35i-pdip40.lbr",
"docs/hero.png",
"docs/stc12c5a60s2-35i-pdip40-datasheet.pdf",
"viewers/symbol.html",
"viewers/footprint.html",
"stc12c5a60s2-35i-pdip40-hero.glb",
"stc12c5a60s2-35i-pdip40-hero.overlay.json"
],
"visibility": {
"public": true
}
}