3D Model
Open in new tab ↗
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.
Datasheet
Open in new tab ↗Loads when you scroll to it. Unloads after 5 minutes in the background.
README
markdownSTM8AF6246TCSSSX
STMicroelectronics · ST Microelectronics · LQFP-32(7x7)
STM8AF6246TCSSSX from STMicroelectronics, in a LQFP-32(7x7). Pinout and pin descriptions extracted from the manufacturer datasheet (extract_pins, read twice and the reads agreed); symbol, footprint, and 3D from KiCad-official CAD.
Pinout
| Pin | Name | Type | Function |
|---|---|---|---|
| 1 | NRST | bidirectional | Reset input/output pin (main function after reset: Reset), with no alternate function. |
| 2 | PA1/OSCIN | bidirectional | Port A1 (O1 speed, floating/wpu input, push-pull/open-drain output) whose default alternate function is resonator/crystal input OSCIN. |
| 3 | PA2/OSCOUT | bidirectional | Port A2 (O1 speed, external interrupt capable) whose default alternate function is resonator/crystal output OSCOUT. |
| 4 | VSS | power_in | Digital ground. |
| 5 | VCAP | passive | 1.8 V regulator capacitor pin for the external capacitor. |
| 6 | VDD | power_in | Digital power supply. |
| 7 | VDDIO_1 | power_in | I/O power supply. |
| 8 | PF4/AIN12 | bidirectional | Port F4 (O1 speed) with analog input 12 as default alternate function; a pull-up is enabled during reset and AIN12 is not selectable in ADC scan mode or with the analog watchdog. |
| 9 | VDDA | power_in | Analog power supply. |
| 10 | VSSA | power_in | Analog ground. |
| 11 | PB5/AIN5 | bidirectional | Port B5 (O1 speed, external interrupt capable) with analog input 5 as default alternate function and I2C_SDA after remap [AFR6]. |
| 12 | PB4/AIN4 | bidirectional | Port B4 (O1 speed, external interrupt capable) with analog input 4 as default alternate function and I2C_SCL after remap [AFR6]. |
| 13 | PB3/AIN3 | bidirectional | Port B3 (O1 speed, external interrupt capable) with analog input 3 as default alternate function and TIM1_ETR after remap [AFR5]. |
| 14 | PB2/AIN2 | bidirectional | Port B2 (O1 speed, external interrupt capable) with analog input 2 as default alternate function and TIM1_CH3N (listed as TIM1_NCC3) after remap [AFR5]. |
| 15 | PB1/AIN1 | bidirectional | Port B1 (O1 speed, external interrupt capable) with analog input 1 as default alternate function and TIM1_CH2N (listed as TIM1_NCC2) after remap [AFR5]. |
| 16 | PB0/AIN0 | bidirectional | Port B0 (O1 speed, external interrupt capable) with analog input 0 as default alternate function and TIM1_CH1N (listed as TIM1_NCC1) after remap [AFR5]. |
| 17 | PE5/SPI_NSS | bidirectional | Port E5 (O1 speed, external interrupt capable) with SPI master/slave select as default alternate function. |
| 18 | PC1/TIM1_CH1 | bidirectional | Port C1 (high sink, O3 speed, external interrupt capable) with Timer 1 channel 1 as default alternate function. |
| 19 | PC2/TIM1_CH2 | bidirectional | Port C2 (high sink, O3 speed, external interrupt capable) with Timer 1 channel 2 as default alternate function. |
| 20 | PC3/TIM1_CH3 | bidirectional | Port C3 (high sink, O3 speed, external interrupt capable) with Timer 1 channel 3 as default alternate function. |
| 21 | PC4/TIM1_CH4 | bidirectional | Port C4 (high sink, O3 speed, external interrupt capable) with Timer 1 channel 4 as default alternate function. |
| 22 | PC5/SPI_SCK | bidirectional | Port C5 (O3 speed, external interrupt capable) with SPI clock as default alternate function. |
| 23 | PC6/SPI_MOSI | bidirectional | Port C6 (O3 speed, external interrupt capable) with SPI master out/slave in as default alternate function. |
| 24 | PC7/SPI_MISO | bidirectional | Port C7 (O3 speed, external interrupt capable) with SPI master in/slave out as default alternate function. |
| 25 | PD0/TIM3_CH2 | bidirectional | Port D0 (high sink, O3 speed, external interrupt capable) with Timer 3 channel 2 as default alternate function, and TIM1_BKIN [AFR3] or CLK_CCO [AFR2] after remap. |
| 26 | PD1/SWIM | bidirectional | Port D1 (high sink, O4 speed, external interrupt capable) used as SWIM data interface, held in input pull-up during and after reset. |
| 27 | PD2/TIM3_CH1 | bidirectional | Port D2 (high sink, O3 speed, external interrupt capable) with Timer 3 channel 1 as default alternate function and TIM2_CH3 after remap [AFR1]. |
| 28 | PD3/TIM2_CH2 | bidirectional | Port D3 (high sink, O3 speed, external interrupt capable) with Timer 2 channel 2 as default alternate function and ADC_ETR after remap [AFR0]. |
| 29 | PD4/TIM2_CH1/BEEP | bidirectional | Port D4 (high sink, O3 speed, external interrupt capable) with Timer 2 channel 1 as default alternate function and BEEP output after remap [AFR7]. |
| 30 | PD5/LINUART_TX | bidirectional | Port D5 (O1 speed, external interrupt capable) with LINUART data transmit as default alternate function. |
| 31 | PD6/LINUART_RX | bidirectional | Port D6 (O1 speed, external interrupt capable) with LINUART data receive as default alternate function. |
| 32 | PD7/TLI | bidirectional | Port D7 (O1 speed, external interrupt capable) with top level interrupt as default alternate function; if configured as interrupt pin it triggers the TLI. |
Key specifications
| Parameter | Value |
|---|---|
| Manufacturer | STMicroelectronics |
| Package | LQFP-32(7x7) |
| Category | Embedded Processors & Controllers |
| Pins | 32 |
Electrical characteristics
Limits as printed in the datasheet (page.json metadata.characteristics carries them as data).
| Parameter | Symbol | Min | Typ | Max | Unit | Conditions | Page |
|---|---|---|---|---|---|---|---|
| Standard operating voltage | VDD/VDDIO | 3 | 5.5 | V | 52 | ||
| Internal CPU clock frequency | fCPU | 0 | 16 | MHz | TA = -40 °C to 150 °C | 52 | |
| Ambient temperature | TA | -40 | 125 | °C | Suffix C | 52 | |
| Junction temperature range | TJ | 130 | °C | Suffix C | 52 | ||
| CEXT: capacitance of external capacitor | VCAP | 470 | 3300 | nF | 52 | ||
| ESR of external capacitor | ESR | 0.3 | Ω | at 1 MHz | 52 | ||
| ESL of external capacitor | ESL | 15 | nH | 52 | |||
| Power dissipation | PD | 85 | mW | LQFP32, all temperature ranges | 52 | ||
| Supply voltage (including VDDA and VDDIO) | VDDx - VSS | -0.3 | 6.5 | V | 50 | ||
| Input voltage on true open drain pins (PE1, PE2) | VIN | 6.5 | V | referenced to VSS; minimum VSS - 0.3 V | 50 | ||
| Variations between different power pins | /VDDx - VDD/ | 50 | mV | 50 | |||
| Variations between all the different ground pins | /VSSx - VSS/ | 50 | mV | 50 | |||
| Total current into VDDIO power lines (source) | IVDDIO | 100 | mA | 51 | |||
| Total current out of VSSIO ground lines (sink) | IVSSIO | 100 | mA | 51 | |||
| Output current sunk by any I/O and control pin | IIO | 20 | mA | 51 | |||
| Output current source by any I/Os and control pin | IIO | -20 | mA | 51 | |||
| Injected current on any pin | IINJ(PIN) | -10 | 10 | mA | 51 | ||
| Sum of injected currents | IINJ(TOT) | 50 | mA | 51 | |||
| Storage temperature range | TSTG | -65 | 150 | °C | 51 | ||
| Maximum junction temperature | TJ | 160 | °C | 51 | |||
| Operating voltage (all modes, execution/write/erase) | VDD | 3 | 5.5 | V | fCPU 0 to 16 MHz with 0 ws | 62 | |
| Operating voltage (code execution) | VDD | 2.6 | 5.5 | V | fCPU 0 to 16 MHz with 0 ws | 62 | |
| Power-on reset threshold | VIT+ | 2.65 | 2.8 | 2.95 | V | 53 | |
| Brown-out reset threshold | VIT- | 2.58 | 2.73 | 2.88 | V | 53 | |
| Brown-out reset hysteresis | VHYS(BOR) | 70 | mV | guaranteed by design | 53 | ||
| Reset release delay | tTEMP | 1 | 1.7 | ms | VDD rising | 53 | |
| Reset generation delay | tTEMP | 3 | µs | VDD falling | 53 | ||
| Supply current in Run mode | IDD(RUN) | 7.4 | 14 | mA | fCPU = 16 MHz, code executed from Flash, HSE external clock | 54 | |
| Supply current in Run mode | IDD(RUN) | 4 | 7.4 | mA | fCPU = 8 MHz, code executed from Flash, HSE external clock | 54 | |
| Supply current in Run mode | IDD(RUN) | 2.4 | 4.1 | mA | fCPU = 4 MHz, code executed from Flash, HSE external clock | 54 | |
| Supply current in Run mode | IDD(RUN) | 1.5 | 2.5 | mA | fCPU = 2 MHz, code executed from Flash, HSE external clock | 54 | |
| Supply current in Run mode | IDD(RUN) | 3.7 | 5 | mA | fCPU = 16 MHz, code executed from RAM and EEPROM, HSE external clock | 54 | |
| Supply current in Run mode | IDD(RUN) | 2.2 | 3 | mA | fCPU = 8 MHz, code executed from RAM and EEPROM, HSE external clock | 54 | |
| Supply current in Run mode | IDD(RUN) | 1.4 | 2 | mA | fCPU = 4 MHz, code executed from RAM and EEPROM, HSE external clock | 54 | |
| Supply current in Wait mode | IDD(WFI) | 1.65 | 2.5 | mA | fCPU = 16 MHz, CPU stopped, all peripherals off, HSE external clock | 54 | |
| Supply current in Wait mode | IDD(WFI) | 1.15 | 1.9 | mA | fCPU = 8 MHz, CPU stopped, all peripherals off, HSE external clock | 54 | |
| Supply current in Wait mode | IDD(WFI) | 0.9 | 1.6 | mA | fCPU = 4 MHz, CPU stopped, all peripherals off, HSE external clock | 54 | |
| Supply current in Wait mode | IDD(WFI) | 0.8 | 1.5 | mA | fCPU = 2 MHz, CPU stopped, all peripherals off, HSE external clock | 54 | |
| Supply current in Slow mode | IDD(SLOW) | 1.5 | 1.95 | mA | fCPU = 125 kHz, ext. clock 16 MHz, all peripherals off, code from RAM | 54 | |
| Supply current in Slow mode | IDD(SLOW) | 1.5 | 1.8 | mA | fCPU = 128 kHz, LSI internal RC, all peripherals off, code from RAM | 54 | |
| Supply current in Halt mode | IDD(H) | 5 | 35 | µA | clocks stopped, MVR off, Flash power-down, TA -40 to 55 °C | 55 | |
| Supply current in Active-halt mode with regulator on | IDD(AH) | 770 | 900 | µA | ext. clock 16 MHz, fMASTER = 125 kHz | 55 | |
| Supply current in Active-halt mode with regulator on | IDD(AH) | 150 | 230 | µA | LSI clock 128 kHz | 55 | |
| Supply current in Active-halt mode with regulator off | IDD(AH) | 25 | 42 | µA | LSI clock 128 kHz | 55 | |
| Wakeup time from Active-halt mode with regulator on | tWU(AH) | 10 | 30 | µs | operating mode, TA = -40 to 150 °C | 55 | |
| Wakeup time from Active-halt mode with regulator off | tWU(AH) | 50 | 80 | µs | regulator off | 55 | |
| Programming current | IDD(PROG) | 1 | 1.7 | mA | VDD = 5 V, -40 °C to 150 °C, erasing and programming | 56 | |
| User external clock source frequency | fHSE_ext | 0 | 16 | MHz | TA is -40 to 150 °C | 57 | |
| OSCIN input leakage current | ILEAK_HSE | -1 | 1 | µA | VSS < VIN < VDD | 57 | |
| Recommended load capacitance | CL1/CL2 | 20 | pF | 58 | |||
| Feedback resistor | RF | 220 | kΩ | 58 | |||
| Frequency | fHSI | 16 | MHz | 59 | |||
| HSI oscillator accuracy (factory calibrated) | ACCHS | -5 | 5 | % | 3.0 V ≤ VDD ≤ 5.5 V, -40 °C ≤ TA ≤ 150 °C | 60 | |
| LSI frequency | fLSI | 112 | 128 | 144 | kHz | 60 | |
| Temperature for writing and erasing | TWE | -40 | 150 | °C | Flash program memory | 62 | |
| Flash program memory endurance (erase/write cycles) | NWE | 1000 | cycles | TA = 25 °C | 62 | ||
| Output low level voltage | VOL | 0.5 | V | High sink and true open drain I/O, VDD = 5 V, I = 8 mA | 63 | ||
| Pull-up resistor | Rpu | 35 | 50 | 65 | kΩ | VDD = 5 V, VIN = VSS | 63 |
| Thermal resistance junction-ambient LQFP 32 - 7 x 7 mm | ΘJA | 59 | °C/W | JEDEC JESD51-2, 4-layer PCB, natural convection | 88 |
CAD (KiCad official)
- Symbol:
STM8AF6246TCSSSX - Footprint:
Package_QFP:LQFP-32_7x7mm_P0.8mm - 3D model: LQFP-32(7x7) (KiCad packages3D, STEP)
- 3D model files:
stm8af6246tcsssx-etched.step/stm8af6246tcsssx-etched.glbcarry the MPN laser-etched on the die in a toggleableAdom.LaserEtchgroup (Fusion-ready);stm8af6246tcsssx.step/stm8af6246tcsssx.glbare the bare package body.
Provenance
Data extracted from the manufacturer datasheet, not a distributor listing:
- Datasheet: STMicroelectronics datasheet (99 pp, sha256
b2515811c84033b5, retrieved 2026-11-07, tier: manufacturer) - Extractor: parts-factory
2.0.0/extract_pins 0.3, primaryclaude-sonnet-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: KiCad official libraries (CC-BY-SA 4.0).