← Commit history

Initial commit: component/stc8g2k64s4-36i-lqfp48

Ray ·156d9c7b68 ·
2 files changed +125
README.mdadded+91
@@ -0,0 +1,91 @@+# STC8G2K64S4-36I-LQFP48++**STC Micro** · Microcontrollers (MCU/MPU/SOC) · LQFP-48(7x7)++STC8G2K64S4-36I-LQFP48 from STC Micro, in a LQFP-48(7x7). Pinout and pin descriptions extracted from the manufacturer datasheet by ds2sf; symbol, footprint, and 3D from KiCad-official CAD.++## Pinout++| Pin | Name | Type | Function |+|---|---|---|---|+| 1 | P5.3/PWM53/TxD4_2 | bidirectional | Standard I/O port P5.3. Muxed: enhanced PWM53 output, alternate UART4 TxD. |+| 2 | P0.5/PWM05/AD5/ADC13/T3CLKO | bidirectional | Standard I/O port P0.5. Muxed: PWM05, external-bus AD5 address/data line, ADC channel 13, Timer3 clock-divider output. |+| 3 | P0.6/PWM06/AD6/ADC14/T4/PWMFLT2 | bidirectional | Standard I/O port P0.6. Muxed: PWM06, AD6 bus line, ADC channel 14, Timer4 external clock input, enhanced-PWM fault-detect input PWMFLT2. |+| 4 | P0.7/PWM07/AD7/T4CLKO/PWMFLT3 | bidirectional | Standard I/O port P0.7. Muxed: PWM07, AD7 bus line, Timer4 clock-divider output, PWM fault-detect input PWMFLT3. |+| 5 | P1.0/PWM10/ADC0/CCP1/RxD2 | bidirectional | Standard I/O port P1.0. Muxed: PWM10, ADC channel 0, PCA/CCP1 capture/compare/PWM, UART2 RxD. |+| 6 | P1.1/PWM11/ADC1/CCP0/TxD2 | bidirectional | Standard I/O port P1.1. Muxed: PWM11, ADC channel 1, PCA/CCP0, UART2 TxD. |+| 7 | P4.7/PWM47/TxD2_2 | bidirectional | Standard I/O port P4.7. Muxed: PWM47, alternate UART2 TxD. |+| 8 | P1.2/PWM12/ADC2/ECI/SS/T2 | bidirectional | Standard I/O port P1.2. Muxed: PWM12, ADC channel 2, PCA external ECI input, SPI slave-select, Timer2 external clock input. |+| 9 | P1.3/PWM13/ADC3/MOSI/T2CLKO | bidirectional | Standard I/O port P1.3. Muxed: PWM13, ADC channel 3, SPI MOSI, Timer2 clock-divider output. |+| 10 | P1.4/PWM14/ADC4/MISO/SDA | bidirectional | Standard I/O port P1.4. Muxed: PWM14, ADC channel 4, SPI MISO, I2C SDA data line. |+| 11 | P1.5/PWM15/ADC5/SCLK/SCL | bidirectional | Standard I/O port P1.5. Muxed: PWM15, ADC channel 5, SPI SCLK, I2C SCL clock line. |+| 12 | P1.6/PWM16/ADC6/RxD_3/MCLKO_2/XTALO | bidirectional | Standard I/O port P1.6. Muxed: PWM16, ADC channel 6, alt UART1 RxD, master-clock divider output, external crystal output (XTALO). |+| 13 | P1.7/PWM17/ADC7/TxD_3/XTALI | bidirectional | Standard I/O port P1.7. Muxed: PWM17, ADC channel 7, alt UART1 TxD, external crystal / external clock input (XTALI). |+| 14 | P5.4/PWM54/nRST/MCLKO/SS_3 | bidirectional | Standard I/O port P5.4. Muxed with active-low reset input nRST, master-clock output MCLKO, and SPI alternate slave-select SS_3. When configured as reset, an internal ~4 kΩ pull-up is enabled continuously; when used as GPIO, the pull-up still asserts for ~6.5 ms after power-on. |+| 15 | VCC/AVCC | power_in | Main digital supply VCC and analog supply AVCC (bonded to same pin on LQFP48). Operating range 2.0-5.5 V. Add 0.1 µF ceramic and ≥10 µF bulk decoupling close to the pin. |+| 16 | ADC_VRef+ | input | External ADC positive reference input, 2.4 V to VCC. Must be driven (do not leave floating - leakage present). Can be tied to VCC for low-precision use. |+| 17 | GND/AGND | power_in | Combined digital and analog ground return. |+| 18 | P4.0/PWM40/MOSI_3 | bidirectional | Standard I/O port P4.0. Muxed: PWM40, alternate SPI MOSI (group 3). |+| 19 | P3.0/PWM30/RxD/INT4 | bidirectional | Standard I/O port P3.0. Default UART1 RxD, external interrupt INT4, PWM30. Powers up as weak-pull-up quasi-bidirectional (unlike other I/Os which power up hi-Z). Combined low state on P3.0+P3.1+P3.2 at reset enters USB-ISP mode. |+| 20 | P3.1/PWM31/TxD | bidirectional | Standard I/O port P3.1. Default UART1 TxD, PWM31. Powers up as weak-pull-up quasi-bidirectional; participates in USB-ISP entry detection. |+| 21 | P3.2/PWM32/INT0/SCLK_4/SCL_4 | bidirectional | Standard I/O port P3.2. Muxed: PWM32, external interrupt INT0, alt SPI SCLK (group 4), alt I2C SCL (group 4). Sampled at power-up for USB-ISP mode entry. |+| 22 | P3.3/PWM33/INT1/MISO_4/SDA_4 | bidirectional | Standard I/O port P3.3. Muxed: PWM33, external interrupt INT1, alt SPI MISO (group 4), alt I2C SDA (group 4). |+| 23 | P3.4/PWM34/T0/T1CLKO/ECI_2/MOSI_4/CMPO | bidirectional | Standard I/O port P3.4. Muxed: PWM34, Timer0 external clock in, Timer1 clock-divider out, alt PCA ECI, alt SPI MOSI (group 4), analog-comparator output CMPO. |+| 24 | P5.0/PWM50/RxD3_2 | bidirectional | Standard I/O port P5.0. Muxed: PWM50, alternate UART3 RxD. |+| 25 | P5.1/PWM51/TxD3_2 | bidirectional | Standard I/O port P5.1. Muxed: PWM51, alternate UART3 TxD. |+| 26 | P3.5/PWM35/T1/T0CLKO/SS_4/CCP0_2/PWMFLT | bidirectional | Standard I/O port P3.5. Muxed: PWM35, Timer1 external clock in, Timer0 clock-divider out, SPI SS (group 4), PCA CCP0 (group 2), enhanced-PWM fault input PWMFLT. |+| 27 | P3.6/PWM36/INT2/RxD_2/CMP-/CCP1_2 | bidirectional | Standard I/O port P3.6. Muxed: PWM36, external interrupt INT2, alt UART1 RxD, comparator negative input CMP-, PCA CCP1 (group 2). |+| 28 | P3.7/PWM37/INT3/TxD_2/CMP+/CCP2/CCP2_2 | bidirectional | Standard I/O port P3.7. Muxed: PWM37, external interrupt INT3, alt UART1 TxD, comparator positive input CMP+, PCA CCP2 (default and group-2 alternate). |+| 29 | P4.1/PWM41/MISO_3/CMPO_2 | bidirectional | Standard I/O port P4.1. Muxed: PWM41, alt SPI MISO (group 3), alt comparator output CMPO. |+| 30 | P4.2/PWM42/WR | bidirectional | Standard I/O port P4.2. Muxed: PWM42, external-bus write strobe WR. |+| 31 | P4.3/PWM43/RxD_4/SCLK_3 | bidirectional | Standard I/O port P4.3. Muxed: PWM43, alt UART1 RxD (group 4), alt SPI SCLK (group 3). |+| 32 | P4.4/PWM44/RD/TxD_4 | bidirectional | Standard I/O port P4.4. Muxed: PWM44, external-bus read strobe RD, alt UART1 TxD (group 4). |+| 33 | P2.0/PWM20/A8 | bidirectional | Standard I/O port P2.0. Muxed: PWM20, external-bus address A8. |+| 34 | P2.1/PWM21/A9 | bidirectional | Standard I/O port P2.1. Muxed: PWM21, address A9. |+| 35 | P2.2/PWM22/A10/SS_2 | bidirectional | Standard I/O port P2.2. Muxed: PWM22, address A10, alt SPI SS (group 2). |+| 36 | P2.3/PWM23/A11/MOSI_2/CCP0_2 | bidirectional | Standard I/O port P2.3. Muxed: PWM23, address A11, alt SPI MOSI (group 2), alt PCA CCP0. |+| 37 | P2.4/PWM24/A12/ECI_3/SDA_2/MISO_2 | bidirectional | Standard I/O port P2.4. Muxed: PWM24, address A12, alt PCA ECI (group 3), alt I2C SDA (group 2), alt SPI MISO (group 2). |+| 38 | P2.5/PWM25/A13/CCP0_3/SCL_2/SCLK_2 | bidirectional | Standard I/O port P2.5. Muxed: PWM25, address A13, alt PCA CCP0 (group 3), alt I2C SCL (group 2), alt SPI SCLK (group 2). |+| 39 | P2.6/PWM26/A14/CCP1_3 | bidirectional | Standard I/O port P2.6. Muxed: PWM26, address A14, alt PCA CCP1 (group 3). |+| 40 | P2.7/PWM27/A15/CCP2_3 | bidirectional | Standard I/O port P2.7. Muxed: PWM27, address A15, alt PCA CCP2 (group 3). |+| 41 | P4.5/PWM45/ALE | bidirectional | Standard I/O port P4.5. Muxed: PWM45, external-bus address latch enable ALE. |+| 42 | P4.6/PWM46/RxD2_2 | bidirectional | Standard I/O port P4.6. Muxed: PWM46, alt UART2 RxD. |+| 43 | P0.0/PWM00/ADC8/AD0/RxD3 | bidirectional | Standard I/O port P0.0. Muxed: PWM00, ADC channel 8, external-bus AD0, UART3 RxD (default). |+| 44 | P0.1/PWM01/ADC9/AD1/TxD3 | bidirectional | Standard I/O port P0.1. Muxed: PWM01, ADC channel 9, AD1, UART3 TxD (default). |+| 45 | P0.2/PWM02/ADC10/AD2/RxD4 | bidirectional | Standard I/O port P0.2. Muxed: PWM02, ADC channel 10, AD2, UART4 RxD (default). |+| 46 | P0.3/PWM03/ADC11/AD3/TxD4 | bidirectional | Standard I/O port P0.3. Muxed: PWM03, ADC channel 11, AD3, UART4 TxD (default). |+| 47 | P0.4/PWM04/ADC12/AD4/T3 | bidirectional | Standard I/O port P0.4. Muxed: PWM04, ADC channel 12, AD4, Timer3 external clock input. |+| 48 | P5.2/PWM52/RxD4_2 | bidirectional | Standard I/O port P5.2. Muxed: PWM52, alt UART4 RxD. |++## Key specifications++| Parameter | Value |+|---|---|+| Manufacturer | STC Micro |+| Package | LQFP-48(7x7) |+| Category | MCU |+| Pins | 48 |++## Ordering variants++- `STC8G2K64S4-36I-LQFP4836I-LQFP48`+- `STC8G2K64S4-36I-LQFP4836I-QFN48`+- `STC8G2K64S4-36I-LQFP4836I-LQFP32`+- `STC8G2K64S4-36I-LQFP4836I-QFN32`+- `STC8G2K64S4-36I-LQFP4836I-PDIP40`++## CAD (KiCad official)++- Symbol: `STC8G2K64S4-36I-LQFP48`+- Footprint: `Package_QFP:LQFP-48_7x7mm_P0.5mm`+- 3D model: LQFP-48(7x7) (KiCad packages3D, STEP)++## Provenance++Data extracted from the manufacturer datasheet, not a distributor listing:++- **Datasheet:** [STC Micro datasheet](docs/stc8g2k64s4-36i-lqfp48-datasheet.pdf) (1240 pp, sha256 `7d5e82c9f651aa92`, retrieved 2026-08-17, tier: lcsc)+- **Extractor:** `ds2sf` (Claude). Every pin and dimension is cited to a datasheet page; it refuses to fabricate.+- **CAD:** KiCad official libraries (CC-BY-SA 4.0).++[Datasheet PDF](docs/stc8g2k64s4-36i-lqfp48-datasheet.pdf)
page.jsonadded+34
@@ -0,0 +1,34 @@+{+  "slug": "stc8g2k64s4-36i-lqfp48",+  "version": "0.1.0",+  "type": "component",+  "description": "STC Micro Microcontrollers (MCU/MPU/SOC), LQFP-48(7x7). Datasheet-verified pinout, KiCad symbol/footprint/3D.",+  "tags": [+    "component",+    "mcu",+    "stc8g2k64s4-36i-lqfp48"+  ],+  "dependencies": {},+  "hero": {+    "type": "image",+    "path": "docs/hero.png"+  },+  "files": [+    "page.json",+    "README.md",+    "stc8g2k64s4-36i-lqfp48.kicad_sym",+    "stc8g2k64s4-36i-lqfp48.kicad_mod",+    "stc8g2k64s4-36i-lqfp48.glb",+    "stc8g2k64s4-36i-lqfp48.step",+    "stc8g2k64s4-36i-lqfp48.lbr",+    "docs/hero.png",+    "docs/stc8g2k64s4-36i-lqfp48-datasheet.pdf",+    "viewers/symbol.html",+    "viewers/footprint.html"+  ],+  "visibility": "public",+  "author": {+    "name": "Ray",+    "email": "[email protected]"+  }+}\ No newline at end of file