← Commit history

Initial commit: component/stc8g1k17-38i-tssop20

Ray ·142bd30c8d ·1mo ago
2 files changed +96
README.mdadded+62
@@ -0,0 +1,62 @@+# STC8G1K17-38I-TSSOP20++**STC Micro** · Microcontrollers (MCU/MPU/SOC) · TSSOP-20++STC8G1K17-38I-TSSOP20 from STC Micro, in a TSSOP-20. 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 | P1.2/T2/ECI/SS/ADC2 | bidirectional | Standard GPIO P1.2. Muxed alt-functions: Timer 2 external clock input (T2), PCA external pulse input (ECI), SPI slave select (SS, I/O), ADC analog input channel 2 (ADC2). |+| 2 | P1.3/T2CLKO/MOSI/ADC3 | bidirectional | Standard GPIO P1.3. Alt-functions: Timer 2 clock divider output (T2CLKO), SPI MOSI (master output/slave input), ADC channel 3 (ADC3). |+| 3 | P1.4/I2CSDA/MISO/ADC4 | bidirectional | Standard GPIO P1.4. Alt-functions: I2C data line (SDA), SPI MISO (master input/slave output), ADC channel 4 (ADC4). |+| 4 | P1.5/I2CSCL/SCLK/ADC5 | bidirectional | Standard GPIO P1.5. Alt-functions: I2C clock line (SCL), SPI clock (SCLK), ADC channel 5 (ADC5). |+| 5 | P1.6/XTALO/MCLKO_2/RxD_3/ADC6 | bidirectional | Standard GPIO P1.6. Alt-functions: external crystal output (XTALO), master clock divider output alt-2 (MCLKO_2), UART1 RxD alt-3 (RxD_3), ADC channel 6 (ADC6). |+| 6 | P1.7/XTALI/TxD_3/ADC7 | bidirectional | Standard GPIO P1.7. Alt-functions: external crystal input (XTALI), UART1 TxD alt-3 (TxD_3), ADC channel 7 (ADC7). |+| 7 | P5.4/nRST/MCLKO | bidirectional | Standard GPIO P5.4 by default; can be configured (via ISP option) as active-low reset input (nRST). Alt-function: master clock output (MCLKO). When used as reset, internal 4K pull-up is always enabled; as GPIO, pull-up is enabled for ~6.5 ms at power-up before auto-disabling. |+| 8 | Vcc/AVcc/ADC_VRef+ | power_in | Chip supply (Vcc) and ADC supply (AVcc); also serves as ADC external reference input (ADC_VRef+). Supply range 1.9-5.5 V. Place a 10 uF (or larger) bulk cap and a 0.1 uF decoupling cap close to this pin. VRef+ must not be left floating (leakage) - if precision is not required, tie to MCU VCC. |+| 9 | P5.5 | bidirectional | Standard GPIO P5.5. No alternate functions listed for this variant. |+| 10 | Gnd/AGnd | power_in | Digital ground (Gnd) and ADC analog ground (AGnd). Combined into a single pin on this package. |+| 11 | P3.0/RxD/INT4/ADC8 | bidirectional | Standard GPIO P3.0. Alt-functions: UART1 receive (RxD), external interrupt 4 (INT4), ADC channel 8 (ADC8). Powers up in weak pull-up / quasi-bidirectional mode (unlike most GPIOs which default to high-impedance). |+| 12 | P3.1/TxD/ADC9 | bidirectional | Standard GPIO P3.1. Alt-functions: UART1 transmit (TxD), ADC channel 9 (ADC9). Powers up in weak pull-up / quasi-bidirectional mode. |+| 13 | P3.2/INT0/ADC10/SCL_4/SCLK_4 | bidirectional | Standard GPIO P3.2. Alt-functions: external interrupt 0 (INT0), ADC channel 10 (ADC10), I2C clock alt-4 (SCL_4), SPI clock alt-4 (SCLK_4). |+| 14 | P3.3/INT1/ADC11/SDA_4/MISO_4 | bidirectional | Standard GPIO P3.3. Alt-functions: external interrupt 1 (INT1), ADC channel 11 (ADC11), I2C data alt-4 (SDA_4), SPI MISO alt-4 (MISO_4). |+| 15 | P3.4/T0/T1CLKO/ADC12/ECI_2/CMPO/MOSI_4 | bidirectional | Standard GPIO P3.4. Alt-functions: Timer 0 external clock (T0), Timer 1 clock divider output (T1CLKO), ADC channel 12 (ADC12), PCA external input alt-2 (ECI_2), comparator output (CMPO), SPI MOSI alt-4 (MOSI_4). |+| 16 | P3.5/T1/T0CLKO/ADC13/CCP0_2/SS_4 | bidirectional | Standard GPIO P3.5. Alt-functions: Timer 1 external clock (T1), Timer 0 clock divider output (T0CLKO), ADC channel 13 (ADC13), PCA capture/PWM CCP0 alt-2 (CCP0_2), SPI slave-select alt-4 (SS_4). |+| 17 | P3.6/INT2/RxD_2/ADC14/CCP1_2/CMP- | bidirectional | Standard GPIO P3.6. Alt-functions: external interrupt 2 (INT2), UART1 RxD alt-2 (RxD_2), ADC channel 14 (ADC14), PCA CCP1 alt-2 (CCP1_2), comparator negative input (CMP-). |+| 18 | P3.7/INT3/TxD_2/CCP2/CCP2_2/CMP+ | bidirectional | Standard GPIO P3.7. Alt-functions: external interrupt 3 (INT3), UART1 TxD alt-2 (TxD_2), PCA CCP2 (default and alt-2 mapping), comparator positive input (CMP+). |+| 19 | P1.0/RxD2/ADC0/CCP1 | bidirectional | Standard GPIO P1.0. Alt-functions: UART2 receive (RxD2), ADC channel 0 (ADC0), PCA CCP1 capture/PWM output. |+| 20 | P1.1/TxD2/ADC1/CCP0 | bidirectional | Standard GPIO P1.1. Alt-functions: UART2 transmit (TxD2), ADC channel 1 (ADC1), PCA CCP0 capture/PWM output. |++## Key specifications++| Parameter | Value |+|---|---|+| Manufacturer | STC Micro |+| Package | TSSOP-20 |+| Category | MCU |+| Pins | 20 |++## Ordering variants++- `STC8G1K17-38I-TSSOP2038I-TSSOP20`+- `STC8G1K17-38I-TSSOP2038I-QFN20`+- `STC8G1K17-38I-TSSOP2038I-SOP16`++## CAD (KiCad official)++- Symbol: `STC8G1K17-38I-TSSOP20`+- Footprint: `Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm`+- 3D model: TSSOP-20 (KiCad packages3D, STEP)++## Provenance++Data extracted from the manufacturer datasheet, not a distributor listing:++- **Datasheet:** [STC Micro datasheet](docs/stc8g1k17-38i-tssop20-datasheet.pdf) (1240 pp, sha256 `7d5e82c9f651aa92`, retrieved 2026-08-17, 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:** `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/stc8g1k17-38i-tssop20-datasheet.pdf)
page.jsonadded+34
@@ -0,0 +1,34 @@+{+  "slug": "stc8g1k17-38i-tssop20",+  "version": "0.1.0",+  "type": "component",+  "description": "STC Micro Microcontrollers (MCU/MPU/SOC), TSSOP-20. Datasheet-verified pinout, KiCad symbol/footprint/3D.",+  "tags": [+    "component",+    "mcu",+    "stc8g1k17-38i-tssop20"+  ],+  "dependencies": {},+  "hero": {+    "type": "image",+    "path": "docs/hero.png"+  },+  "files": [+    "page.json",+    "README.md",+    "stc8g1k17-38i-tssop20.kicad_sym",+    "stc8g1k17-38i-tssop20.kicad_mod",+    "stc8g1k17-38i-tssop20.glb",+    "stc8g1k17-38i-tssop20.step",+    "stc8g1k17-38i-tssop20.lbr",+    "docs/hero.png",+    "docs/stc8g1k17-38i-tssop20-datasheet.pdf",+    "viewers/symbol.html",+    "viewers/footprint.html"+  ],+  "visibility": "public",+  "author": {+    "name": "Ray",+    "email": "[email protected]"+  }+}\ No newline at end of file