Generated by kicad-footprint-generator · KiCad file format 20260206
STC12C5A60S2-35I-PDIP40
STC Micro · Microcontroller Units (MCUs/MPUs/SOCs) · DIP-40
STC12C5A60S2-35I-PDIP40 from STC Micro, in a DIP-40. Pinout and pin descriptions extracted from the manufacturer datasheet (extract_pins, cross-checked by a second model). Symbol and footprint from KiCad-official CAD; the 3D model is generated from the datasheet's package dimensions.
Pinout
| Pin | Name | Type | Function |
|---|---|---|---|
| 1 | CLKOUT2/ADC0/P1.0 | bidirectional | Port 1 bit 0 is a general I/O (mode set by P1M1/P1M0), also the CLKOUT2 clock output from the BRT overflow and ADC channel 0; ADC use requires setting the pin to open-drain or high-impedance input first. |
| 2 | ADC1/P1.1 | bidirectional | Port 1 bit 1 is a general I/O that doubles as ADC channel 1 input and must be set to open-drain or high-impedance input before being used for A/D conversion. |
| 3 | RxD2/ECI/ADC2/P1.2 | bidirectional | Port 1 bit 2 carries the UART2 receive input RxD2, the PCA external clock ECI and ADC channel 2; UART2 can be switched to P4.2 through AUXR1 bit 4 (S2_P4). |
| 4 | TxD2/CCP0/ADC3/P1.3 | bidirectional | Port 1 bit 3 carries the UART2 transmit output TxD2, PCA module 0 CCP0 and ADC channel 3; UART2 can be switched to P4.3 through AUXR1 bit 4 (S2_P4). |
| 5 | SS/CCP1/ADC4/P1.4 | bidirectional | Port 1 bit 4 carries the SPI slave select SS, PCA module 1 CCP1 and ADC channel 4; SPI can be moved to P4 through AUXR1 bit 5 (SPI_P4). |
| 6 | MOSI/ADC5/P1.5 | bidirectional | Port 1 bit 5 carries the SPI master-out/slave-in line MOSI and ADC channel 5; it can be moved to P4.1 when SPI_P4 is set. |
| 7 | MISO/ADC6/P1.6 | bidirectional | Port 1 bit 6 carries the SPI master-in/slave-out line MISO and ADC channel 6; it can be moved to P4.2 when SPI_P4 is set. |
| 8 | SCLK/ADC7/P1.7 | bidirectional | Port 1 bit 7 carries the SPI clock SCLK and ADC channel 7; it can be moved to P4.3 when SPI_P4 is set. |
| 9 | RST/P4.7 | bidirectional | Reset input when configured as RST (ISP option); when used as P4.7 I/O an external crystal is required, and a 470 Ω to 1 kΩ pull-down is recommended to avoid download lockout. |
| 10 | RxD/P3.0 | bidirectional | Port 3 bit 0 carries the UART1 receive input RxD and can wake the part from power-down when RXD_PIN_IE is set. |
| 11 | TxD/P3.1 | bidirectional | Port 3 bit 1 carries the UART1 transmit output TxD. |
| 12 | INT0/P3.2 | bidirectional | Port 3 bit 2 carries external interrupt 0 INT0 and can wake the CPU from power-down mode. |
| 13 | INT1/P3.3 | bidirectional | Port 3 bit 3 carries external interrupt 1 INT1 and can wake the CPU from power-down mode. |
| 14 | CLKOUT0/T0/P3.4 | bidirectional | Port 3 bit 4 carries Timer 0 external input T0, the T0 clock output CLKOUT0 and a power-down wake function when T0_PIN_IE is set. |
| 15 | CLKOUT1/T1/P3.5 | bidirectional | Port 3 bit 5 carries Timer 1 external input T1, the T1 clock output CLKOUT1 and a power-down wake function when T1_PIN_IE is set. |
| 16 | WR/P3.6 | bidirectional | Port 3 bit 6 carries the external data memory write strobe WR, used only when external RAM is accessed by MOVX. |
| 17 | RD/P3.7 | bidirectional | Port 3 bit 7 carries the external data memory read strobe RD, used only when external RAM is accessed by MOVX. |
| 18 | XTAL2 | output | Output of the on-chip inverting oscillator amplifier for the external crystal; it is left floating when the internal R/C oscillator is selected. |
| 19 | XTAL1 | input | Input to the on-chip inverting oscillator amplifier and internal clock circuit; an external clock may be driven into XTAL1 with XTAL2 left floating. |
| 20 | Gnd | power_in | Ground reference for the device. |
| 21 | P2.0 | bidirectional | Port 2 bit 0 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain). |
| 22 | P2.1 | bidirectional | Port 2 bit 1 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain). |
| 23 | P2.2 | bidirectional | Port 2 bit 2 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain). |
| 24 | P2.3 | bidirectional | Port 2 bit 3 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain). |
| 25 | P2.4 | bidirectional | Port 2 bit 4 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain). |
| 26 | P2.5 | bidirectional | Port 2 bit 5 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain). |
| 27 | P2.6 | bidirectional | Port 2 bit 6 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain). |
| 28 | P2.7 | bidirectional | Port 2 bit 7 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain). |
| 29 | P4.4/NA | bidirectional | Port 4 bit 4 is a weak-pull-up pin with no function after reset; setting P4SW.4 = 1 makes it a general I/O. |
| 30 | P4.5/ALE | bidirectional | Port 4 bit 5 outputs ALE only during MOVX accesses to external devices; setting P4SW.5 = 1 makes it a general I/O. |
| 31 | P4.6/EX_LVD/RST2 | bidirectional | Port 4 bit 6 carries the second reset input RST2 and the external low-voltage detect input EX_LVD; setting P4SW.6 = 1 makes it a general I/O. |
| 32 | P0.7 | bidirectional | Port 0 bit 7 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA. |
| 33 | P0.6 | bidirectional | Port 0 bit 6 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA. |
| 34 | P0.5 | bidirectional | Port 0 bit 5 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA. |
| 35 | P0.4 | bidirectional | Port 0 bit 4 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA. |
| 36 | P0.3 | bidirectional | Port 0 bit 3 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA. |
| 37 | P0.2 | bidirectional | Port 0 bit 2 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA. |
| 38 | P0.1 | bidirectional | Port 0 bit 1 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA. |
| 39 | P0.0 | bidirectional | Port 0 bit 0 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA. |
| 40 | Vcc | power_in | Positive supply; the 5 V family (STC12C5A60S2) is specified at 5.5 V to 3.5 V per the selection table. |
Key specifications
| Parameter | Value |
|---|---|
| Manufacturer | STC Micro |
| Package | DIP-40 |
| Category | Embedded Processors & Controllers |
| Pins | 40 |
Electrical characteristics
Limits as printed in the datasheet (page.json metadata.characteristics carries them as data).
| Parameter | Symbol | Min | Typ | Max | Unit | Conditions | Page |
|---|---|---|---|---|---|---|---|
| Storage temperature | TST | -55 | 125 | °C | 306 | ||
| Operating Temperature (I) | TA | -40 | 85 | °C | Industrial grade (I) | 306 | |
| DC Power Supply (5V MCU) | VDD-VSS | -0.3 | 5.5 | V | 5V MCU | 306 | |
| Voltage on any pin | -0.3 | V | Maximum printed as VCC+0.3 V; not numeric | 306 | |||
| VDD Operating Voltage | VDD | 3.3 | 5 | 5.5 | V | 306 | |
| Power Down Current | IPWDN | 0.1 | uA | 5V; printed as <0.1 | 306 | ||
| Idle Current | IIDLE | 3 | mA | 5V | 306 | ||
| Operating Current | ICC | 20 | mA | 5V | 306 | ||
| Input low voltage (P0,P1,P2,P3) | VIL1 | 0.8 | V | 5V | 306 | ||
| Input High voltage (P0,P1,P2,P3) | VIH1 | 2 | V | 5V | 306 | ||
| Input High voltage (RESET) | VIH2 | 2.2 | V | 5V | 306 | ||
| Sinking Current for Output Low (P0,P1,P2,P3) | IOL1 | 20 | mA | 5V; Vpin=0.45V | 306 | ||
| (Quasi-output) Sourcing Current for Output High (P0,P1,P2,P3) | IOH1 | 150 | 230 | uA | 5V | 306 | |
| (Push-Pull, Strong-output) Sourcing Current for Output High (P0,P1,P2,P3) | IOH2 | 20 | mA | 5V; Vpin=2.4V | 306 | ||
| Logic 0 input current (P0,P1,P2,P3) | IIL | 50 | uA | VPIN=0V | 306 | ||
| Logic 1 to 0 transition current (P0,P1,P2,P3) | ITL | 100 | 270 | 600 | uA | VPIN=2V | 306 |
CAD (land: KiCad; 3D: generated from the datasheet)
- Symbol:
STC12C5A60S2-35I-PDIP40 - Footprint:
Package_DIP:DIP-40_W15.24mm - 3D model: DIP-40, generated on the KiCad land (body 13.84 x 52 mm, terminals on the pads, 4.83 mm tall, datasheet A, max). KiCad's stock model for this land is taller than the datasheet allows, so the model is generated from the datasheet drawing; the dimensions come from the datasheet drawing where it was read and are defaults otherwise (see provenance.model_3d_generated), not the manufacturer's CAD (STEP)
- 3D model files:
stc12c5a60s2-35i-pdip40-etched.step/stc12c5a60s2-35i-pdip40-etched.glbcarry the MPN laser-etched on the die in a toggleableAdom.LaserEtchgroup (Fusion-ready);stc12c5a60s2-35i-pdip40.step/stc12c5a60s2-35i-pdip40.glbare the bare package body.
Provenance
Data extracted from the manufacturer datasheet, not a distributor listing:
- Datasheet: STC Micro datasheet (1543 pp, sha256
7fde44da8887b7a0, retrieved 2026-11-12, 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, primaryclaude-haiku-5-5(text), consensusclaude-sonnet-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: land: KiCad official libraries (CC-BY-SA 4.0); 3D: generated from the datasheet's package dimensions (provenance.model_3d_generated).