main
Ray
Publish 0.1.1
c960f7e
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
{
"schema_version": 1,
"type": "component",
"slug": "stc89c52rc-40i-pdip40",
"title": "STC89C52RC-40I-PDIP40",
"brief": "STC Micro Microcontrollers (MCU/MPU/SOC), DIP-40. Pinout extracted from the datasheet, KiCad symbol/footprint/3D.",
"version": "0.1.1",
"license": "CC-BY-SA-4.0",
"tags": [
"component",
"mcu",
"stc89c52rc-40i-pdip40"
],
"component": {
"mpn": "STC89C52RC-40I-PDIP40",
"manufacturer": "STC Micro",
"package": "DIP-40",
"pin_count": 40,
"category": "MCU",
"subcategory": "Microcontrollers (MCU/MPU/SOC)",
"datasheet": "https://datasheet.lcsc.com/datasheet/pdf/5a17a78212f2e06d8b3a80c8c6ebc011.pdf",
"parts": {
"symbol": "stc89c52rc-40i-pdip40.kicad_sym",
"footprint": "stc89c52rc-40i-pdip40.kicad_mod",
"model_3d": "stc89c52rc-40i-pdip40-hero.glb",
"model_3d_plain": "stc89c52rc-40i-pdip40.glb",
"model_3d_step": "stc89c52rc-40i-pdip40-etched.step",
"model_3d_step_plain": "stc89c52rc-40i-pdip40.step",
"lbr": "stc89c52rc-40i-pdip40.lbr"
},
"distributor_links": {},
"pins": [
{
"number": "1",
"name": "P1.0/T2",
"type": "bidirectional",
"description": "Port 1 bit 0 quasi-bidirectional I/O with internal pull-up. Alt: T2 external input for Timer/Counter 2."
},
{
"number": "2",
"name": "P1.1/T2EX",
"type": "bidirectional",
"description": "Port 1 bit 1 quasi-bidirectional I/O with internal pull-up. Alt: T2EX trigger for Timer/Counter 2 capture/reload."
},
{
"number": "3",
"name": "P1.2",
"type": "bidirectional",
"description": "Port 1 bit 2 quasi-bidirectional I/O with internal pull-up."
},
{
"number": "4",
"name": "P1.3",
"type": "bidirectional",
"description": "Port 1 bit 3 quasi-bidirectional I/O with internal pull-up."
},
{
"number": "5",
"name": "P1.4",
"type": "bidirectional",
"description": "Port 1 bit 4 quasi-bidirectional I/O with internal pull-up."
},
{
"number": "6",
"name": "P1.5",
"type": "bidirectional",
"description": "Port 1 bit 5 quasi-bidirectional I/O with internal pull-up."
},
{
"number": "7",
"name": "P1.6",
"type": "bidirectional",
"description": "Port 1 bit 6 quasi-bidirectional I/O with internal pull-up. Optional external crystal connection point on some board designs."
},
{
"number": "8",
"name": "P1.7",
"type": "bidirectional",
"description": "Port 1 bit 7 quasi-bidirectional I/O with internal pull-up. Optional external crystal connection point on some board designs."
},
{
"number": "9",
"name": "RST",
"type": "input",
"description": "Reset input. Active-high reset. RC/RD+ HD-version parts include an internal 45 kΩ-100 kΩ pull-down on this pin; an external RC network (10 uF + 10 kΩ) may also be used."
},
{
"number": "10",
"name": "P3.0/RxD",
"type": "bidirectional",
"description": "Port 3 bit 0 quasi-bidirectional I/O with internal pull-up. Alt: UART1 serial data receive input (RxD)."
},
{
"number": "11",
"name": "P3.1/TxD",
"type": "bidirectional",
"description": "Port 3 bit 1 quasi-bidirectional I/O with internal pull-up. Alt: UART1 serial data transmit output (TxD)."
},
{
"number": "12",
"name": "P3.2/INT0",
"type": "bidirectional",
"description": "Port 3 bit 2 quasi-bidirectional I/O with internal pull-up. Alt: INT0 external interrupt 0 (falling-edge or low-level triggered)."
},
{
"number": "13",
"name": "P3.3/INT1",
"type": "bidirectional",
"description": "Port 3 bit 3 quasi-bidirectional I/O with internal pull-up. Alt: INT1 external interrupt 1 (falling-edge or low-level triggered)."
},
{
"number": "14",
"name": "P3.4/T0",
"type": "bidirectional",
"description": "Port 3 bit 4 quasi-bidirectional I/O with internal pull-up. Alt: T0 external clock input for Timer/Counter 0."
},
{
"number": "15",
"name": "P3.5/T1",
"type": "bidirectional",
"description": "Port 3 bit 5 quasi-bidirectional I/O with internal pull-up. Alt: T1 external clock input for Timer/Counter 1."
},
{
"number": "16",
"name": "P3.6/WR",
"type": "bidirectional",
"description": "Port 3 bit 6 quasi-bidirectional I/O with internal pull-up. Alt: /WR external data memory write strobe (active-low) for MOVX access to external XRAM."
},
{
"number": "17",
"name": "P3.7/RD",
"type": "bidirectional",
"description": "Port 3 bit 7 quasi-bidirectional I/O with internal pull-up. Alt: /RD external data memory read strobe (active-low) for MOVX access to external XRAM."
},
{
"number": "18",
"name": "XTAL2",
"type": "output",
"description": "On-chip clock oscillator inverting amplifier output. Connect to one lead of the external crystal. If an external clock source drives XTAL1 directly, XTAL2 may be left floating or used as a buffered clock output."
},
{
"number": "19",
"name": "XTAL1",
"type": "input",
"description": "On-chip clock oscillator inverting amplifier input. Connect to one lead of the external crystal (typ. 4 MHz-48 MHz). Also serves as the external clock source input."
},
{
"number": "20",
"name": "GND",
"type": "power_in",
"description": "Ground / 0 V power supply return."
},
{
"number": "21",
"name": "P2.0/A8",
"type": "bidirectional",
"description": "Port 2 bit 0 quasi-bidirectional I/O with internal pull-up. Alt: A8 high-order address bus bit when accessing external memory."
},
{
"number": "22",
"name": "P2.1/A9",
"type": "bidirectional",
"description": "Port 2 bit 1 quasi-bidirectional I/O with internal pull-up. Alt: A9 high-order address bus bit when accessing external memory."
},
{
"number": "23",
"name": "P2.2/A10",
"type": "bidirectional",
"description": "Port 2 bit 2 quasi-bidirectional I/O with internal pull-up. Alt: A10 high-order address bus bit when accessing external memory."
},
{
"number": "24",
"name": "P2.3/A11",
"type": "bidirectional",
"description": "Port 2 bit 3 quasi-bidirectional I/O with internal pull-up. Alt: A11 high-order address bus bit when accessing external memory."
},
{
"number": "25",
"name": "P2.4/A12",
"type": "bidirectional",
"description": "Port 2 bit 4 quasi-bidirectional I/O with internal pull-up. Alt: A12 high-order address bus bit when accessing external memory."
},
{
"number": "26",
"name": "P2.5/A13",
"type": "bidirectional",
"description": "Port 2 bit 5 quasi-bidirectional I/O with internal pull-up. Alt: A13 high-order address bus bit when accessing external memory."
},
{
"number": "27",
"name": "P2.6/A14",
"type": "bidirectional",
"description": "Port 2 bit 6 quasi-bidirectional I/O with internal pull-up. Alt: A14 high-order address bus bit when accessing external memory."
},
{
"number": "28",
"name": "P2.7/A15",
"type": "bidirectional",
"description": "Port 2 bit 7 quasi-bidirectional I/O with internal pull-up. Alt: A15 high-order address bus bit when accessing external memory."
},
{
"number": "29",
"name": "P4.4/PSEN",
"type": "bidirectional",
"description": "HD-version: /PSEN external program-memory strobe output (active-low). 90C-version: P4.4 general-purpose quasi-bidirectional I/O."
},
{
"number": "30",
"name": "P4.5/ALE",
"type": "bidirectional",
"description": "Address-latch-enable output that strobes the low byte of address during external memory access; also serves as the programming pulse input during ISP. On the 90C version this pin can be reconfigured as GPIO P4.5."
},
{
"number": "31",
"name": "P4.6/EA",
"type": "bidirectional",
"description": "HD-version: /EA external access enable input; tie low to force execution from external program memory, high (or leave with internal pull-up) to execute from internal Flash. 90C-version: P4.6 general-purpose quasi-bidirectional I/O."
},
{
"number": "32",
"name": "P0.7/AD7",
"type": "bidirectional",
"description": "Port 0 bit 7 8-bit quasi-bidirectional I/O; open-drain after power-on reset, so an external 4.7 kΩ-10 kΩ pull-up is required when used as GPIO. Alt: AD7 multiplexed low-byte address/data bit 7 during external memory access (no external pull-up needed in this mode)."
},
{
"number": "33",
"name": "P0.6/AD6",
"type": "bidirectional",
"description": "Port 0 bit 6 8-bit quasi-bidirectional I/O; open-drain after power-on reset (external 4.7 kΩ-10 kΩ pull-up required for I/O use). Alt: AD6 multiplexed low-byte address/data bit 6."
},
{
"number": "34",
"name": "P0.5/AD5",
"type": "bidirectional",
"description": "Port 0 bit 5 8-bit quasi-bidirectional I/O; open-drain after power-on reset (external 4.7 kΩ-10 kΩ pull-up required for I/O use). Alt: AD5 multiplexed low-byte address/data bit 5."
},
{
"number": "35",
"name": "P0.4/AD4",
"type": "bidirectional",
"description": "Port 0 bit 4 8-bit quasi-bidirectional I/O; open-drain after power-on reset (external 4.7 kΩ-10 kΩ pull-up required for I/O use). Alt: AD4 multiplexed low-byte address/data bit 4."
},
{
"number": "36",
"name": "P0.3/AD3",
"type": "bidirectional",
"description": "Port 0 bit 3 8-bit quasi-bidirectional I/O; open-drain after power-on reset (external 4.7 kΩ-10 kΩ pull-up required for I/O use). Alt: AD3 multiplexed low-byte address/data bit 3."
},
{
"number": "37",
"name": "P0.2/AD2",
"type": "bidirectional",
"description": "Port 0 bit 2 8-bit quasi-bidirectional I/O; open-drain after power-on reset (external 4.7 kΩ-10 kΩ pull-up required for I/O use). Alt: AD2 multiplexed low-byte address/data bit 2."
},
{
"number": "38",
"name": "P0.1/AD1",
"type": "bidirectional",
"description": "Port 0 bit 1 8-bit quasi-bidirectional I/O; open-drain after power-on reset (external 4.7 kΩ-10 kΩ pull-up required for I/O use). Alt: AD1 multiplexed low-byte address/data bit 1."
},
{
"number": "39",
"name": "P0.0/AD0",
"type": "bidirectional",
"description": "Port 0 bit 0 8-bit quasi-bidirectional I/O; open-drain after power-on reset (external 4.7 kΩ-10 kΩ pull-up required for I/O use). Alt: AD0 multiplexed low-byte address/data bit 0."
},
{
"number": "40",
"name": "VCC",
"type": "power_in",
"description": "Positive supply voltage. 5.0 V parts operate 2 MHz-48 MHz; 3.3 V parts operate 2 MHz-48 MHz (12T) / 2 MHz-32 MHz (6T). Decouple with ≥10 uF bulk plus 0.1 uF ceramic near the pin."
}
],
"provenance": {
"extractor": "ds2sf",
"datasheet": {
"url": "https://datasheet.lcsc.com/datasheet/pdf/5a17a78212f2e06d8b3a80c8c6ebc011.pdf",
"pages": 1691,
"sha256": "fac7be430b93e2dd",
"source_tier": "lcsc"
},
"cad": "KiCad official (CC-BY-SA 4.0)",
"pins": {
"total": 40,
"described": 40,
"cites_pages": true,
"refuses_to_fabricate": true
}
},
"viewers": {
"symbol": "viewers/symbol.html",
"footprint": "viewers/footprint.html"
},
"models_3d": [
{
"file": "stc89c52rc-40i-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": [
25.4,
50.8,
6.98
],
"zmin_mm": -3.3,
"centre_offset_mm": 0.127,
"footprint_binding": "identity",
"sha256": "114010029e96b840de5e76a4e7f09f46a19e6db723f6d096bd70dbeb8ce0aff9",
"checked": "2026-10-07",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
},
{
"file": "stc89c52rc-40i-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": [
25.4,
50.8,
6.98
],
"zmin_mm": -3.3,
"centre_offset_mm": 0.127,
"footprint_binding": "identity",
"sha256": "c35f8e8080ea38e8c1ee468cd5ddb5dc276a55af4196ee73219fc9808837cadd",
"checked": "2026-10-07",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
}
]
},
"metadata": {
"specs": {
"Manufacturer": "STC Micro",
"Package": "DIP-40",
"Category": "MCU",
"Pins": "40"
}
},
"sections": [
"hero",
"viewers",
"readme",
"breadcrumbs",
"info"
],
"discovery_triggers": [
"stc89c52rc-40i-pdip40"
],
"discovery_pitch": "STC89C52RC-40I-PDIP40 (STC Micro) component page with datasheet-verified CAD.",
"author": {
"name": "Ray"
},
"dependencies": {},
"hero": {
"type": "image",
"path": "docs/hero.png"
},
"files": [
"page.json",
"README.md",
"stc89c52rc-40i-pdip40.kicad_sym",
"stc89c52rc-40i-pdip40.kicad_mod",
"stc89c52rc-40i-pdip40.glb",
"stc89c52rc-40i-pdip40.step",
"stc89c52rc-40i-pdip40.lbr",
"docs/hero.png",
"docs/stc89c52rc-40i-pdip40-datasheet.pdf",
"viewers/symbol.html",
"viewers/footprint.html",
"stc89c52rc-40i-pdip40-etched.step",
"stc89c52rc-40i-pdip40-hero.glb",
"stc89c52rc-40i-pdip40-hero.overlay.json"
],
"visibility": "public",
"variants": [
{
"mpn": "STC89C52RC-40I-PDIP40",
"kind": "packaging"
},
{
"mpn": "STC89C52RC-40I-PDIP40LQFP44",
"kind": "packaging"
},
{
"mpn": "STC89C52RC-40I-PDIP40PLCC44",
"kind": "packaging"
}
],
"updated_at": "2026-09-25T08:29:00.464Z",
"description": "STC Micro Microcontrollers (MCU/MPU/SOC), DIP-40. Datasheet-verified pinout, KiCad symbol/footprint/3D.",
"org": "adom"
}