main
Ray
Publish 0.1.0
e1f653c
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
{
"slug": "stc15w4k48s4-30i-lqfp48",
"version": "0.1.0",
"type": "component",
"description": "STC Micro Microcontroller Units (MCUs/MPUs/SOCs), LQFP-48(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
"tags": [
"component",
"embedded processors & controllers",
"stc15w4k48s4-30i-lqfp48",
"factory-2.0.0",
"extractor-text"
],
"dependencies": {},
"hero": {
"type": "image",
"path": "docs/hero.png"
},
"files": [
"page.json",
"README.md",
"stc15w4k48s4-30i-lqfp48.kicad_sym",
"stc15w4k48s4-30i-lqfp48.kicad_mod",
"stc15w4k48s4-30i-lqfp48.glb",
"stc15w4k48s4-30i-lqfp48.step",
"stc15w4k48s4-30i-lqfp48.lbr",
"docs/hero.png",
"docs/stc15w4k48s4-30i-lqfp48-datasheet.pdf",
"viewers/symbol.html",
"viewers/footprint.html",
"stc15w4k48s4-30i-lqfp48-hero.glb",
"stc15w4k48s4-30i-lqfp48-hero.overlay.json"
],
"component": {
"mpn": "STC15W4K48S4-30I-LQFP48",
"manufacturer": "STC Micro",
"package": "LQFP-48(7x7)",
"pin_count": 48,
"category": "Embedded Processors & Controllers",
"subcategory": "Microcontroller Units (MCUs/MPUs/SOCs)",
"datasheet": "https://datasheet.lcsc.com/datasheet/pdf/caa5a792ca87f52d47a7cc948ca9d105.pdf",
"parts": {
"symbol": "stc15w4k48s4-30i-lqfp48.kicad_sym",
"footprint": "stc15w4k48s4-30i-lqfp48.kicad_mod",
"model_3d": "stc15w4k48s4-30i-lqfp48-hero.glb",
"model_3d_plain": "stc15w4k48s4-30i-lqfp48.glb",
"model_3d_step": "stc15w4k48s4-30i-lqfp48-etched.step",
"model_3d_step_plain": "stc15w4k48s4-30i-lqfp48.step",
"lbr": "stc15w4k48s4-30i-lqfp48.lbr"
},
"distributor_links": {
"lcsc": "C57354"
},
"distributor_check": {
"checked_at": "2026-11-17T07:23:42Z",
"source": "Component Ocean /api/assign-pns",
"digikey": {
"pn": null,
"status": "no match"
},
"mouser": {
"pn": null,
"status": "no match"
}
},
"pins": [
{
"number": "1",
"name": "TxD4_2/P5.3",
"type": "bidirectional",
"description": "Standard quasi-bidirectional I/O P5.3 (PORT5[3]); alternate TxD4_2 is the UART4 transmit data output, selected via S4_S in P_SW2."
},
{
"number": "2",
"name": "PWMFLT_2/T3/AD5/P0.5",
"type": "bidirectional",
"description": "Standard I/O P0.5 (PORT0[5]); alternate AD5 address/data bus bit, T3 timer/counter 3 external input, and PWMFLT_2 PWM fault-stop control input."
},
{
"number": "3",
"name": "PWM7_2/T4CLKO/AD6/P0.6",
"type": "bidirectional",
"description": "Standard I/O P0.6 (PORT0[6]); alternate AD6 address/data bus bit, T4CLKO timer 4 clock output (enabled via T4T3M[4]), and PWM7_2 output channel 7, which is high-impedance after power-on and must be configured before use."
},
{
"number": "4",
"name": "PWM6_2/AD7/P0.7",
"type": "bidirectional",
"description": "Standard I/O P0.7 (PORT0[7]); alternate AD7 address/data bus bit, T4 timer/counter 4 external input, and PWM6_2 output channel 6, which is high-impedance after power-on and needs a pull-up if used in power-down mode."
},
{
"number": "5",
"name": "RxD2/CCP1/ADC0/P1.0",
"type": "bidirectional",
"description": "Standard I/O P1.0 (PORT1[0]); alternate ADC0 analog input channel 0, CCP1 capture/PWM channel 1, and RxD2 UART2 receive data input."
},
{
"number": "6",
"name": "TxD2/CCP0/ADC1/P1.1",
"type": "bidirectional",
"description": "Standard I/O P1.1 (PORT1[1]); alternate ADC1 analog input channel 1, CCP0 capture/PWM channel 0, and TxD2 UART2 transmit data output."
},
{
"number": "7",
"name": "TxD2_2/P4.7",
"type": "bidirectional",
"description": "Standard I/O P4.7 (PORT4[7]); alternate TxD2_2 UART2 transmit data output when S2_S selects this pin."
},
{
"number": "8",
"name": "CMPO/ECI/SS/ADC2/P1.2",
"type": "bidirectional",
"description": "Standard I/O P1.2 (PORT1[2]); alternate ADC2 input channel 2, CMPO comparator output, ECI CCP/PCA external count input, and SS SPI slave select."
},
{
"number": "9",
"name": "MOSI/ADC3/P1.3",
"type": "bidirectional",
"description": "Standard I/O P1.3 (PORT1[3]); alternate ADC3 analog input channel 3 and MOSI SPI master-out/slave-in data line."
},
{
"number": "10",
"name": "MISO/ADC4/P1.4",
"type": "bidirectional",
"description": "Standard I/O P1.4 (PORT1[4]); alternate ADC4 analog input channel 4 and MISO SPI master-in/slave-out data line."
},
{
"number": "11",
"name": "SCLK/ADC5/P1.5",
"type": "bidirectional",
"description": "Standard I/O P1.5 (PORT1[5]); alternate ADC5 analog input channel 5 and SCLK SPI serial clock."
},
{
"number": "12",
"name": "PWM6/SysClkO_2/XTAL2/RxD_3/ADC6/P1.6",
"type": "bidirectional",
"description": "Standard I/O P1.6 (PORT1[6]); alternate ADC6 input channel 6, RxD_3 UART1 receive, SysClkO_2 system clock output, XTAL2 crystal output, and PWM6 channel 6, which is high-impedance after power-on."
},
{
"number": "13",
"name": "P1.7/ADC7/TxD_3/XTAL1/PWM7",
"type": "bidirectional",
"description": "Standard I/O P1.7 (PORT1[7]); alternate ADC7 input channel 7, TxD_3 UART1 transmit, XTAL1 crystal/external clock input, and PWM7 channel 7, which is high-impedance after power-on."
},
{
"number": "14",
"name": "P5.4/RST/SysClkO/SS_3/CMP-",
"type": "bidirectional",
"description": "Standard I/O P5.4 (PORT5[4]); RST is the active-high reset input, and alternate functions are SysClkO system clock output, SS_3 SPI slave select, and CMP- comparator negative input, which must be set high-impedance when used as CMP-."
},
{
"number": "15",
"name": "Vcc",
"type": "power_in",
"description": "Positive power supply; the datasheet specifies an operating voltage of 2.5V to 5.5V."
},
{
"number": "16",
"name": "P5.5/CMP+",
"type": "bidirectional",
"description": "Standard I/O P5.5 (PORT5[5]); alternate CMP+ comparator positive input, which must be set high-impedance when used as CMP+."
},
{
"number": "17",
"name": "Gnd",
"type": "power_in",
"description": "Power supply ground."
},
{
"number": "18",
"name": "P4.0/MOSI_3",
"type": "bidirectional",
"description": "Standard I/O P4.0 (PORT4[0]); alternate MOSI_3 SPI master-out/slave-in data line, selected via SPI_S1/SPI_S0."
},
{
"number": "19",
"name": "P3.0/RxD/INT4/T2CLKO",
"type": "bidirectional",
"description": "Standard I/O P3.0 (PORT3[0]); alternate RxD UART1 receive (default), INT4 falling-edge-only external interrupt with power-down wake-up, and T2CLKO timer 2 clock output."
},
{
"number": "20",
"name": "P3.1/TxD/T2",
"type": "bidirectional",
"description": "Standard I/O P3.1 (PORT3[1]); alternate TxD UART1 transmit (default) and T2 timer/counter 2 external input."
},
{
"number": "21",
"name": "P3.2/INT0",
"type": "bidirectional",
"description": "Standard I/O P3.2 (PORT3[2]); alternate INT0 external interrupt 0, which is rising/falling-edge selectable by IT0 and supports power-down wake-up."
},
{
"number": "22",
"name": "P3.3/INT1",
"type": "bidirectional",
"description": "Standard I/O P3.3 (PORT3[3]); alternate INT1 external interrupt 1, which is rising/falling-edge selectable by IT1 and supports power-down wake-up."
},
{
"number": "23",
"name": "P3.4/T0/T1CLKO/ECI_2",
"type": "bidirectional",
"description": "Standard I/O P3.4 (PORT3[4]); alternate T0 timer 0 external input, T1CLKO timer 1 clock output (INT_CLKO[1]), and ECI_2 CCP/PCA external count input."
},
{
"number": "24",
"name": "P5.0/RxD3_2",
"type": "bidirectional",
"description": "Standard I/O P5.0 (PORT5[0]); alternate RxD3_2 UART3 receive data input when S3_S selects this pin."
},
{
"number": "25",
"name": "P5.1/TxD3_2",
"type": "bidirectional",
"description": "Standard I/O P5.1 (PORT5[1]); alternate TxD3_2 UART3 transmit data output when S3_S selects this pin."
},
{
"number": "26",
"name": "P3.5/T1/T0CLKO/CCP0_2",
"type": "bidirectional",
"description": "Standard I/O P3.5 (PORT3[5]); alternate T1 timer 1 external input, T0CLKO timer 0 clock output (INT_CLKO[0]), and CCP0_2 capture/PWM channel 0."
},
{
"number": "27",
"name": "P3.6/INT2/RxD_2/CCP1_2",
"type": "bidirectional",
"description": "Standard I/O P3.6 (PORT3[6]); alternate INT2 falling-edge-only external interrupt with power-down wake-up, RxD_2 UART1 alternate receive, and CCP1_2 capture/PWM channel 1."
},
{
"number": "28",
"name": "P3.7/INT3/TxD_2/PWM2",
"type": "bidirectional",
"description": "Standard I/O P3.7 (PORT3[7]); alternate INT3 falling-edge-only external interrupt with power-down wake-up, TxD_2 UART1 alternate transmit, and PWM2 channel 2, which is high-impedance after power-on."
},
{
"number": "29",
"name": "P4.1/MISO_3",
"type": "bidirectional",
"description": "Standard I/O P4.1 (PORT4[1]); alternate MISO_3 SPI master-in/slave-out data line."
},
{
"number": "30",
"name": "P4.2/WR/PWM5_2",
"type": "bidirectional",
"description": "Standard I/O P4.2 (PORT4[2]); alternate WR external data memory write strobe and PWM5_2 output channel 5, which is high-impedance after power-on."
},
{
"number": "31",
"name": "P4.3/SCLK_3",
"type": "bidirectional",
"description": "Standard I/O P4.3 (PORT4[3]); alternate SCLK_3 SPI serial clock."
},
{
"number": "32",
"name": "P4.4/RD/PWM4_2",
"type": "bidirectional",
"description": "Standard I/O P4.4 (PORT4[4]); alternate RD external data memory read strobe and PWM4_2 output channel 4, which is high-impedance after power-on."
},
{
"number": "33",
"name": "P2.0/A8",
"type": "bidirectional",
"description": "Standard I/O P2.0 (PORT2[0]); alternate A8 address bus bit 8 and RSTOUT_LOW, which outputs low after power-on and during reset."
},
{
"number": "34",
"name": "P2.1/A9/SCLK_2/PWM3",
"type": "bidirectional",
"description": "Standard I/O P2.1 (PORT2[1]); alternate A9 address bus bit 9, SCLK_2 SPI serial clock, and PWM3 channel 3, which is high-impedance after power-on."
},
{
"number": "35",
"name": "P2.2/A10/MISO_2/PWM4",
"type": "bidirectional",
"description": "Standard I/O P2.2 (PORT2[2]); alternate A10 address bus bit 10, MISO_2 SPI master-in/slave-out, and PWM4 channel 4, which is high-impedance after power-on."
},
{
"number": "36",
"name": "P2.3/A11/MOSI_2/PWM5",
"type": "bidirectional",
"description": "Standard I/O P2.3 (PORT2[3]); alternate A11 address bus bit 11, MOSI_2 SPI master-out/slave-in, and PWM5 channel 5, which is high-impedance after power-on."
},
{
"number": "37",
"name": "PWMFLT/SS_2/ECI_3/A12/P2.4",
"type": "bidirectional",
"description": "Standard I/O P2.4 (PORT2[4]); alternate A12 address bus bit 12, ECI_3 CCP/PCA external count input, SS_2 SPI slave select, and PWMFLT PWM fault-stop control input."
},
{
"number": "38",
"name": "CCP0_3/A13/P2.5",
"type": "bidirectional",
"description": "Standard I/O P2.5 (PORT2[5]); alternate A13 address bus bit 13 and CCP0_3 capture/PWM channel 0."
},
{
"number": "39",
"name": "CCP1_3/A14/P2.6",
"type": "bidirectional",
"description": "Standard I/O P2.6 (PORT2[6]); alternate A14 address bus bit 14 and CCP1_3 capture/PWM channel 1."
},
{
"number": "40",
"name": "PWM2_2/A15/P2.7",
"type": "bidirectional",
"description": "Standard I/O P2.7 (PORT2[7]); alternate A15 address bus bit 15 and PWM2_2 channel 2 per the pinout diagram (the pin table lists CCP2_3), which is high-impedance after power-on."
},
{
"number": "41",
"name": "PWM3_2/ALE/P4.5",
"type": "bidirectional",
"description": "Standard I/O P4.5 (PORT4[5]); alternate ALE address latch enable output and PWM3_2 channel 3, which is high-impedance after power-on."
},
{
"number": "42",
"name": "RxD2_2/P4.6",
"type": "bidirectional",
"description": "Standard I/O P4.6 (PORT4[6]); alternate RxD2_2 UART2 receive data input when S2_S selects this pin."
},
{
"number": "43",
"name": "RxD3/AD0/P0.0",
"type": "bidirectional",
"description": "Standard I/O P0.0 (PORT0[0]); alternate AD0 address/data bus bit 0 and RxD3 UART3 receive data input."
},
{
"number": "44",
"name": "TxD3/AD1/P0.1",
"type": "bidirectional",
"description": "Standard I/O P0.1 (PORT0[1]); alternate AD1 address/data bus bit 1 and TxD3 UART3 transmit data output."
},
{
"number": "45",
"name": "RxD4/AD2/P0.2",
"type": "bidirectional",
"description": "Standard I/O P0.2 (PORT0[2]); alternate AD2 address/data bus bit 2 and RxD4 UART4 receive data input."
},
{
"number": "46",
"name": "TxD4/AD3/P0.3",
"type": "bidirectional",
"description": "Standard I/O P0.3 (PORT0[3]); alternate AD3 address/data bus bit 3 and TxD4 UART4 transmit data output."
},
{
"number": "47",
"name": "T3CLKO/AD4/P0.4",
"type": "bidirectional",
"description": "Standard I/O P0.4 (PORT0[4]); alternate AD4 address/data bus bit 4 and T3CLKO timer 3 clock output (enabled via T4T3M[0])."
},
{
"number": "48",
"name": "RxD4_2/P5.2",
"type": "bidirectional",
"description": "Standard I/O P5.2 (PORT5[2]); alternate RxD4_2 UART4 receive data input when S4_S selects this pin."
}
],
"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: Package hint says LQFP-48(7x7), but the datasheet gives LQFP48 as 9mm x 9mm (sections 3.1 and 4.13).; The MPN suffix -30 (30 MHz) is not in this datasheet's naming examples, which use -28. The family te; Pin 12 is printed as 'XTALO' in the LQFP48 pinout and pin table. This is most likely a typo for XTAL"
],
"pages_sent": 169,
"cost_usd": 1.0619,
"at": "2026-11-17T07:23:30"
},
"datasheet": {
"url": "https://datasheet.lcsc.com/datasheet/pdf/caa5a792ca87f52d47a7cc948ca9d105.pdf",
"pages": 1219,
"sha256": "cc8c299c891646e0",
"source_tier": "lcsc"
},
"cad": "KiCad official (CC-BY-SA 4.0)",
"pins": {
"total": 48,
"described": 48,
"cites_pages": true,
"refuses_to_fabricate": true
}
},
"viewers": {
"symbol": "viewers/symbol.html",
"footprint": "viewers/footprint.html"
},
"models_3d": [
{
"file": "stc15w4k48s4-30i-lqfp48.step",
"role": "plain",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
9.0,
9.0,
1.5
],
"zmin_mm": -0.0,
"centre_offset_mm": 0.0,
"footprint_binding": "identity",
"sha256": "9dea352d93177c2904afd7d7b68ea8855ce1ab691f69f8b3e13655600514b6bf",
"checked": "2026-11-17",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
},
{
"file": "stc15w4k48s4-30i-lqfp48-etched.step",
"role": "eda",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
9.0,
9.0,
1.5
],
"zmin_mm": -0.0,
"centre_offset_mm": 0.0,
"footprint_binding": "identity",
"sha256": "9af782272528d554198ae35e07bebb0edaa8ce89ff625688db77e0331b60e78a",
"checked": "2026-11-17",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
}
],
"package_dims": {
"package_code": "LQFP48",
"source_page": 201,
"D": {
"nom_mm": 7.0,
"range_mm": [
6.9,
7.1
]
},
"E1": {
"nom_mm": 7.0,
"range_mm": [
6.9,
7.1
]
},
"E": {
"nom_mm": 9.0,
"range_mm": [
8.8,
9.2
]
},
"e": {
"nom_mm": 0.5,
"range_mm": [
null,
null
]
},
"A": {
"nom_mm": 1.6,
"range_mm": [
null,
1.6
]
},
"source": "datasheet package drawing, every number found on its page (extract_pins --task dims)",
"model_check": {
"file": "stc15w4k48s4-30i-lqfp48.step",
"verdict": "PASS",
"reasons": [
"height and body within the datasheet's package drawing"
],
"by": "factory/package_fit.py"
}
}
}
}