component
STC12C5204AD-35I-SOP20
Public Made by Adomby adom
STC Micro Microcontrollers (MCU/MPU/SOC), SOIC-20-300mil. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.
main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
{
"schema_version": 1,
"type": "component",
"slug": "stc12c5204ad-35i-sop20",
"title": "STC12C5204AD-35I-SOP20",
"brief": "STC Micro Microcontrollers (MCU/MPU/SOC), SOIC-20-300mil. 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",
"stc12c5204ad-35i-sop20",
"factory-2.0.0",
"extractor-text"
],
"component": {
"mpn": "STC12C5204AD-35I-SOP20",
"manufacturer": "STC Micro",
"package": "SOIC-20-300mil",
"pin_count": 20,
"category": "Embedded Processors & Controllers",
"subcategory": "Microcontrollers (MCU/MPU/SOC)",
"datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588882119276048384",
"parts": {
"symbol": "stc12c5204ad-35i-sop20.kicad_sym",
"footprint": "stc12c5204ad-35i-sop20.kicad_mod",
"model_3d": "stc12c5204ad-35i-sop20-hero.glb",
"model_3d_plain": "stc12c5204ad-35i-sop20-etched.glb",
"model_3d_step": "stc12c5204ad-35i-sop20-etched.step",
"model_3d_step_plain": "stc12c5204ad-35i-sop20.step",
"lbr": "stc12c5204ad-35i-sop20.lbr"
},
"distributor_links": {
"lcsc": "C8703"
},
"distributor_check": {
"checked_at": "2026-10-19T08:23:28Z",
"source": "Component Ocean /api/assign-pns",
"digikey": {
"pn": null,
"status": "error"
},
"mouser": {
"pn": null,
"status": "no match"
}
},
"pins": [
{
"number": "1",
"name": "RST",
"type": "input",
"description": "Reset pin; holding it high for at least 24 clock cycles plus 10 us puts the MCU into reset, and pulling it back low ends the reset so execution starts at 0000H."
},
{
"number": "2",
"name": "P3.0/RxD",
"type": "bidirectional",
"description": "Standard quasi-bidirectional I/O port PORT3[0] that also serves as the UART serial data receive input RxD."
},
{
"number": "3",
"name": "P3.1/TxD",
"type": "bidirectional",
"description": "Standard quasi-bidirectional I/O port PORT3[1] that also serves as the UART serial data transmit output TxD."
},
{
"number": "4",
"name": "XTAL2",
"type": "output",
"description": "Output of the internal clock inverting amplifier that connects to the other crystal terminal; it may be left floating when an external clock is applied to XTAL1."
},
{
"number": "5",
"name": "XTAL1",
"type": "input",
"description": "Input of the internal clock inverting amplifier that connects to one crystal terminal, and the external clock source input when an external clock is used."
},
{
"number": "6",
"name": "P3.2/INT0",
"type": "bidirectional",
"description": "Standard I/O port PORT3[2] that also serves as external interrupt 0, triggered on a falling edge or low level."
},
{
"number": "7",
"name": "P3.3/INT1",
"type": "bidirectional",
"description": "Standard I/O port PORT3[3] that also serves as external interrupt 1, triggered on a falling edge or low level."
},
{
"number": "8",
"name": "P3.4/T0/ECI/CLKOUT0",
"type": "bidirectional",
"description": "Standard I/O port PORT3[4] that also serves as external input of Timer/Counter 0 (T0), PCA counter external pulse input (ECI), and Timer 0 clock output CLKOUT0."
},
{
"number": "9",
"name": "P3.5/T1/CCP1/CLKOUT1",
"type": "bidirectional",
"description": "Standard I/O port PORT3[5] that also serves as external input of Timer/Counter 1 (T1), PCA capture/high-speed output/PWM output CCP1, and Timer 1 clock output CLKOUT1."
},
{
"number": "10",
"name": "GND",
"type": "power_in",
"description": "Power supply negative terminal (ground)."
},
{
"number": "11",
"name": "P3.7/CCP0",
"type": "bidirectional",
"description": "Standard I/O port PORT3[7] that also serves as PCA module 0 capture, high-speed pulse output and PWM output CCP0."
},
{
"number": "12",
"name": "P1.0/ADC0",
"type": "bidirectional",
"description": "Standard I/O port PORT1[0] that also serves as ADC input channel 0; when used as an ADC input it must first be set to open-drain or high-impedance input mode."
},
{
"number": "13",
"name": "P1.1/ADC1",
"type": "bidirectional",
"description": "Standard I/O port PORT1[1] that also serves as ADC input channel 1; when used as an ADC input it must first be set to open-drain or high-impedance input mode."
},
{
"number": "14",
"name": "P1.2/ADC2/EX_LVD/RST2",
"type": "bidirectional",
"description": "Standard I/O port PORT1[2] that also serves as ADC input channel 2, external low-voltage detect interrupt/comparator input EX_LVD, and second reset function pin RST2 (about 1.33 V threshold)."
},
{
"number": "15",
"name": "P1.3/ADC3",
"type": "bidirectional",
"description": "Standard I/O port PORT1[3] that also serves as ADC input channel 3; when used as an ADC input it must first be set to open-drain or high-impedance input mode."
},
{
"number": "16",
"name": "P1.4/ADC4",
"type": "bidirectional",
"description": "Standard I/O port PORT1[4] that also serves as ADC input channel 4; when used as an ADC input it must first be set to open-drain or high-impedance input mode."
},
{
"number": "17",
"name": "P1.5/ADC5",
"type": "bidirectional",
"description": "Standard I/O port PORT1[5] that also serves as ADC input channel 5; when used as an ADC input it must first be set to open-drain or high-impedance input mode."
},
{
"number": "18",
"name": "P1.6/ADC6",
"type": "bidirectional",
"description": "Standard I/O port PORT1[6] that also serves as ADC input channel 6; when used as an ADC input it must first be set to open-drain or high-impedance input mode."
},
{
"number": "19",
"name": "P1.7/ADC7",
"type": "bidirectional",
"description": "Standard I/O port PORT1[7] that also serves as ADC input channel 7; when used as an ADC input it must first be set to open-drain or high-impedance input mode."
},
{
"number": "20",
"name": "VCC",
"type": "power_in",
"description": "Positive power supply pin; the device operates from 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-to-package mapping was read from the multi-column pin table on page 21 (SOP-20/DIP-20 column) an; The datasheet covers the STC12C5201AD family and lists the 20-pin SOP/DIP variant for the AD parts; ; Pin 18 is labelled 'ADC5' in the page 21 description text, which is a typo; it is listed as P1.6/ADC",
"1/20 pins cited to the wrong page (name found elsewhere): ['5:XTAL1@p21']"
],
"pages_sent": 87,
"cost_usd": 0.3703,
"at": "2026-10-19T08:20:51"
},
"datasheet": {
"url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588882119276048384",
"pages": 412,
"sha256": "766016da5f13196c",
"source_tier": "lcsc"
},
"cad": "KiCad official (CC-BY-SA 4.0)",
"pins": {
"total": 20,
"described": 20,
"cites_pages": true,
"refuses_to_fabricate": true
}
},
"viewers": {
"symbol": "viewers/symbol.html",
"footprint": "viewers/footprint.html"
},
"models_3d": [
{
"file": "stc12c5204ad-35i-sop20.step",
"role": "plain",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
10.3,
12.8,
2.75
],
"zmin_mm": 0,
"centre_offset_mm": 0,
"footprint_binding": "identity",
"sha256": "59a10b341e6972b31d81802a048060326da627d8b92dcf4263064f4f62ec808e",
"checked": "2026-10-19",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
},
{
"file": "stc12c5204ad-35i-sop20-etched.step",
"role": "eda",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
10.3,
12.8,
2.75
],
"zmin_mm": 0,
"centre_offset_mm": 0,
"footprint_binding": "identity",
"sha256": "ade29648e2a0fcf9fe1356de3d38545dfeda9c11658dd7eae4a36862e91e6162",
"checked": "2026-10-19",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
}
]
},
"metadata": {
"specs": {
"Manufacturer": "STC Micro",
"Package": "SOIC-20-300mil",
"Category": "Embedded Processors & Controllers",
"Pins": "20"
},
"appearance": {
"housing": {
"quote": "Accumulator contents and the contents of a sixteen-bit base register, which may be either the Data Pointer or the PC. In the latter case, the PC is incremented to the address of the",
"page": 157,
"doc": "ds.pdf",
"material": "PC"
},
"version": 1,
"datasheet_sha256": "766016da5f13196cddf129cdeaf1166d21b6013f27b2a2e1f058ccf1c72ec79d"
},
"characteristics": {
"version": 1,
"source": "datasheet",
"datasheet_sha256": "766016da5f13196cddf129cdeaf1166d21b6013f27b2a2e1f058ccf1c72ec79d",
"rows": [
{
"name": "Operating Voltage",
"symbol": "VDD",
"kind": "recommended_operating",
"unit": "V",
"min": 3.3,
"typ": 5,
"max": 5.5,
"conditions": "",
"source_page": 391,
"source": "datasheet"
},
{
"name": "Operating Current",
"symbol": "ICC",
"kind": "electrical",
"unit": "mA",
"min": null,
"typ": 4,
"max": 20,
"conditions": "5V",
"source_page": 391,
"source": "datasheet"
},
{
"name": "Power Down Current",
"symbol": "IPD",
"kind": "electrical",
"unit": "uA",
"min": null,
"typ": null,
"max": 0.1,
"conditions": "5V; printed in Typ column as '< 0.1'",
"source_page": 391,
"source": "datasheet"
},
{
"name": "Input Low (P0,P1,P2,P3)",
"symbol": "VIL1",
"kind": "electrical",
"unit": "V",
"min": null,
"typ": null,
"max": 0.8,
"conditions": "5V",
"source_page": 391,
"source": "datasheet"
},
{
"name": "Input High (P0,P1,P2,P3)",
"symbol": "VIH1",
"kind": "electrical",
"unit": "V",
"min": 2,
"typ": null,
"max": null,
"conditions": "5V",
"source_page": 391,
"source": "datasheet"
},
{
"name": "Input High (RESET)",
"symbol": "VIH2",
"kind": "electrical",
"unit": "V",
"min": 2.2,
"typ": null,
"max": null,
"conditions": "5V",
"source_page": 391,
"source": "datasheet"
},
{
"name": "Sourcing Current for output high (P0,P1,P2,P3) (Quasi-output)",
"symbol": "IOH1",
"kind": "electrical",
"unit": "uA",
"min": 150,
"typ": 230,
"max": null,
"conditions": "5V",
"source_page": 391,
"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": 391,
"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=2.0V",
"source_page": 391,
"source": "datasheet"
},
{
"name": "DC power supply (5V)",
"symbol": "VDD - VSS",
"kind": "absolute_maximum",
"unit": "V",
"min": -0.3,
"typ": null,
"max": 5.5,
"conditions": "",
"source_page": 391,
"source": "datasheet"
},
{
"name": "Operating temperature (I)",
"symbol": "TA",
"kind": "absolute_maximum",
"unit": "℃",
"min": -40,
"typ": null,
"max": 85,
"conditions": "",
"source_page": 391,
"source": "datasheet"
},
{
"name": "Storage temperature",
"symbol": "TST",
"kind": "absolute_maximum",
"unit": "℃",
"min": -55,
"typ": null,
"max": 125,
"conditions": "",
"source_page": 391,
"source": "datasheet"
},
{
"name": "Voltage on any pin",
"symbol": "",
"kind": "absolute_maximum",
"unit": "V",
"min": -0.3,
"typ": null,
"max": null,
"conditions": "",
"source_page": 391,
"source": "datasheet"
}
]
}
},
"variants": [],
"sections": [
"hero",
"viewers",
"readme",
"breadcrumbs",
"info"
],
"discovery_triggers": [
"stc12c5204ad-35i-sop20"
],
"discovery_pitch": "STC12C5204AD-35I-SOP20 (STC Micro) component page: datasheet pinout, KiCad symbol, footprint and 3D.",
"author": {
"name": "Ray",
"email": "[email protected]"
},
"dependencies": {},
"hero": {
"type": "image",
"path": "docs/hero.png"
},
"files": [
"page.json",
"README.md",
"stc12c5204ad-35i-sop20.kicad_sym",
"stc12c5204ad-35i-sop20.kicad_mod",
"stc12c5204ad-35i-sop20.glb",
"stc12c5204ad-35i-sop20.step",
"stc12c5204ad-35i-sop20.lbr",
"docs/hero.png",
"docs/stc12c5204ad-35i-sop20-datasheet.pdf",
"viewers/symbol.html",
"viewers/footprint.html",
"stc12c5204ad-35i-sop20-hero.glb",
"stc12c5204ad-35i-sop20-hero.overlay.json",
"stc12c5204ad-35i-sop20-etched.glb"
],
"visibility": {
"public": true
}
}