Loads when you scroll to it. Unloads after 5 minutes in the background.

Symbol & Footprint

Schematic Symbol

Open full view ↗
Loads when you scroll to it. Unloads after 5 minutes in the background.

PCB Footprint

Open full view ↗
Loads when you scroll to it. Unloads after 5 minutes in the background.
Loads when you scroll to it. Unloads after 5 minutes in the background.
Download PDF
Contents

README

markdown

STC8G2K64S4-36I-LQFP32

STC Micro · Microcontroller Units (MCUs/MPUs/SOCs) · LQFP-32(7x7)

STC8G2K64S4-36I-LQFP32 from STC Micro, in a LQFP-32(7x7). Pinout and pin descriptions extracted from the manufacturer datasheet (extract_pins, cross-checked by a second model); symbol, footprint, and 3D from KiCad-official CAD.

Pinout

Pin Name Type Function
1 P1.0/RxD2/CCP1/ADC0/PWM10 bidirectional General I/O P1.0 that can also serve as UART2 receive (RxD2), PCA CCP1, ADC input channel 0 or enhanced PWM10.
2 P1.1/TxD2/CCP0/ADC1/PWM11 bidirectional General I/O P1.1 that can also serve as UART2 transmit (TxD2), PCA CCP0, ADC input channel 1 or enhanced PWM11.
3 P1.2/T2/SS/ECI/ADC2/PWM12 bidirectional General I/O P1.2 that can also serve as Timer 2 external clock input (T2), SPI slave select (SS), PCA external pulse input (ECI), ADC input channel 2 or enhanced PWM12.
4 P1.3/T2CLKO/MOSI/ADC3/PWM13 bidirectional General I/O P1.3 that can also serve as Timer 2 clock divided output (T2CLKO), SPI MOSI, ADC input channel 3 or enhanced PWM13.
5 P1.4/I2CSDA/MISO/ADC4/PWM14 bidirectional General I/O P1.4 that can also serve as I2C data line (SDA), SPI MISO, ADC input channel 4 or enhanced PWM14.
6 P1.5/I2CSCL/SCLK/ADC5/PWM15 bidirectional General I/O P1.5 that can also serve as I2C clock line (SCL), SPI clock (SCLK), ADC input channel 5 or enhanced PWM15.
7 P1.6/XTALO/MCLKO_2/RxD_3/ADC6/PWM16 bidirectional General I/O P1.6 that can also serve as external crystal output (XTALO), main clock output (MCLKO_2), UART1 receive (RxD_3), ADC input channel 6 or enhanced PWM16.
8 P1.7/XTALI/TxD_3/ADC7/PWM17 bidirectional General I/O P1.7 that can also serve as external crystal or clock input (XTALI), UART1 transmit (TxD_3), ADC input channel 7 or enhanced PWM17.
9 P5.4/nRST/MCLKO/SS_3/PWM54 bidirectional General I/O P5.4 that defaults to I/O and can be set in ISP as the active-low reset pin (nRST); it also serves as main clock output (MCLKO), SPI slave select (SS_3) or enhanced PWM54.
10 Vcc/AVcc power_in Positive supply pin for the MCU and the ADC; the datasheet specifies 1.9V~5.5V operation and recommends a 10uF-or-larger plus 0.1uF decoupling capacitor between Vcc and Gnd.
11 ADC_VRef+ input ADC external reference voltage input that must be connected to an external reference of 2.4V to MCU-VCC because leaving it floating causes leakage current.
12 Gnd/AGnd power_in Ground and ADC ground pin.
13 P3.0/RxD/INT4/PWM30 bidirectional General I/O P3.0 that can also serve as UART1 receive (RxD, used for ISP download), external interrupt 4 (INT4, falling edge only) or enhanced PWM30; it powers up in weak pull-up quasi-bidirectional mode.
14 P3.1/TxD/PWM31 bidirectional General I/O P3.1 that can also serve as UART1 transmit (TxD, used for ISP download) or enhanced PWM31; it powers up in weak pull-up quasi-bidirectional mode.
15 P3.2/INT0/SCLK_4/I2CSCL_4/PWM32 bidirectional General I/O P3.2 that can also serve as external interrupt 0 (INT0), SPI clock (SCLK_4), I2C clock line (SCL_4) or enhanced PWM32; P3.0/P3.1/P3.2 must not all be low at power-up unless USB ISP mode is intended.
16 P3.3/INT1/MISO_4/I2CSDA_4/PWM33 bidirectional General I/O P3.3 that can also serve as external interrupt 1 (INT1), SPI MISO (MISO_4), I2C data line (SDA_4) or enhanced PWM33.
17 P3.4/T0/T1CLKO/ECI_2/MOSI_4/CMPO/PWM34 bidirectional General I/O P3.4 that can also serve as Timer 0 external clock input (T0), Timer 1 clock divided output (T1CLKO), PCA external pulse input (ECI_2), SPI MOSI (MOSI_4), comparator output (CMPO) or enhanced PWM34.
18 P3.5/T1/T0CLKO/SS_4/CCP0_2/PWMFLT/PWM35 bidirectional General I/O P3.5 that can also serve as Timer 1 external clock input (T1), Timer 0 clock divided output (T0CLKO), SPI slave select (SS_4), PCA CCP0_2, enhanced PWM external fault detection (PWMFLT) or enhanced PWM35.
19 P3.6/INT2/RxD_2/CMP-/CCP1_2/PWM36 bidirectional General I/O P3.6 that can also serve as external interrupt 2 (INT2, falling edge only), UART1 receive (RxD_2), comparator negative input (CMP-), PCA CCP1_2 or enhanced PWM36.
20 P3.7/INT3/TxD_2/CMP+/CCP2_2/CCP2/PWM37 bidirectional General I/O P3.7 that can also serve as external interrupt 3 (INT3, falling edge only), UART1 transmit (TxD_2), comparator positive input (CMP+), PCA CCP2/CCP2_2 or enhanced PWM37.
21 P2.0/PWM20/A8 bidirectional General I/O P2.0 that can also serve as enhanced PWM20 or address bus line A8.
22 P2.1/PWM21/A9 bidirectional General I/O P2.1 that can also serve as enhanced PWM21 or address bus line A9.
23 P2.2/PWM22/A10/SS_2 bidirectional General I/O P2.2 that can also serve as enhanced PWM22, address bus line A10 or SPI slave select (SS_2).
24 P2.3/PWM23/A11/MOSI_2 bidirectional General I/O P2.3 that can also serve as enhanced PWM23, address bus line A11 or SPI MOSI (MOSI_2).
25 P2.4/MISO_2/I2CSDA_2/ECI_3/A12/PWM24 bidirectional General I/O P2.4 that can also serve as SPI MISO (MISO_2), I2C data line (SDA_2), PCA external pulse input (ECI_3), address bus line A12 or enhanced PWM24.
26 P2.5/SCLK_2/I2CSCL_2/CCP0_3/A13/PWM25 bidirectional General I/O P2.5 that can also serve as SPI clock (SCLK_2), I2C clock line (SCL_2), PCA CCP0_3, address bus line A13 or enhanced PWM25.
27 P2.6/CCP1_3/A14/PWM26 bidirectional General I/O P2.6 that can also serve as PCA CCP1_3, address bus line A14 or enhanced PWM26.
28 P2.7/CCP2_3/A15/PWM27 bidirectional General I/O P2.7 that can also serve as PCA CCP2_3, address bus line A15 or enhanced PWM27.
29 P0.0/RxD3/AD0/ADC8/PWM00 bidirectional General I/O P0.0 that can also serve as UART3 receive (RxD3), address/data bus line AD0, ADC input channel 8 or enhanced PWM00.
30 P0.1/TxD3/AD1/ADC9/PWM01 bidirectional General I/O P0.1 that can also serve as UART3 transmit (TxD3), address/data bus line AD1, ADC input channel 9 or enhanced PWM01.
31 P0.2/RxD4/AD2/ADC10/PWM02 bidirectional General I/O P0.2 that can also serve as UART4 receive (RxD4), address/data bus line AD2, ADC input channel 10 or enhanced PWM02.
32 P0.3/TxD4/AD3/ADC11/PWM03 bidirectional General I/O P0.3 that can also serve as UART4 transmit (TxD4), address/data bus line AD3, ADC input channel 11 or enhanced PWM03.

Key specifications

Parameter Value
Manufacturer STC Micro
Package LQFP-32(7x7)
Category Embedded Processors & Controllers
Pins 32

Materials and finish

As the datasheet states them (page.json metadata.appearance; the 3D model's colours follow it).

Part Material Colour / plating Datasheet says Page
housing PC 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 following 548

CAD (KiCad official)

  • Symbol: STC8G2K64S4-36I-LQFP32
  • Footprint: Package_QFP:LQFP-32_7x7mm_P0.8mm
  • 3D model: LQFP-32(7x7) (KiCad packages3D, STEP)
  • 3D model files: stc8g2k64s4-36i-lqfp32-etched.step / stc8g2k64s4-36i-lqfp32-etched.glb carry the MPN laser-etched on the die in a toggleable Adom.LaserEtch group (Fusion-ready); stc8g2k64s4-36i-lqfp32.step / stc8g2k64s4-36i-lqfp32.glb are the bare package body.

Provenance

Data extracted from the manufacturer datasheet, not a distributor listing:

  • Datasheet: STC Micro datasheet (1240 pp, sha256 7d5e82c9f651aa92, retrieved 2026-10-27, tier: lcsc)
  • Datasheet language: Chinese. Pin names, descriptions, and specs on this page were extracted and translated to English by ds2sf; the linked PDF is the manufacturer original.
  • Extractor: parts-factory 2.0.0 / extract_pins 0.3, primary claude-sonnet-5-5 (text+vision), consensus claude-opus-5-5 (agreed), guards: pin_guards 0.1: passed. Pins are checked against the footprint pad set and their cited datasheet pages before publish.
  • CAD: KiCad official libraries (CC-BY-SA 4.0).

Datasheet PDF