main
Ray
Publish 0.1.0
93b1232
STM8AF6246TCSSSY
STMicroelectronics · Microcontrollers (MCU/MPU/SOC) · LQFP-32(7x7)
STM8AF6246TCSSSY from STMicroelectronics, 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 | NRST | bidirectional | Reset pin with an on-chip pull-up of 30 to 60 kΩ; input low level is VSS to 0.3×VDD and input high level is 0.7×VDD to VDD. |
| 2 | PA1/OSCIN | bidirectional | Port A1 standard I/O (up to 2 MHz) that doubles as the HSE crystal input or external clock input OSCIN, with a 0 to 16 MHz external clock range. |
| 3 | PA2/OSCOUT | bidirectional | Port A2 standard I/O (up to 2 MHz) that doubles as the HSE crystal/resonator output OSCOUT for 1 to 16 MHz crystals. |
| 4 | VSS | power_in | Digital ground; all power (VDD, VDDIO, VDDA) and ground (VSS, VSSIO, VSSA) pins must always be connected to the external supply. |
| 5 | VCAP | passive | Connection for the 1.8 V main regulator external capacitor CEXT, which must be 470 nF to 3300 nF with ESR of 0.3 Ω max at 1 MHz and ESL of 15 nH max. |
| 6 | VDD | power_in | Digital power supply with a standard operating range of 3.0 V to 5.5 V; the VDDx to VSS absolute maximum is 6.5 V. |
| 7 | VDDIO | power_in | I/O power supply with a standard operating range of 3.0 V to 5.5 V. |
| 8 | PF4/AIN12 | bidirectional | Port F4 I/O (standard speed) that is also analog input AIN12, which is not selectable in ADC scan mode or with the analog watchdog; its pull-up is enabled during the reset phase. |
| 9 | VDDA | power_in | Analog power supply for the 10-bit ADC, specified from 3 V to 5.5 V. |
| 10 | VSSA | power_in | Analog ground for the 10-bit ADC; it must be connected to the external ground. |
| 11 | PB5/AIN5 | bidirectional | Port B5 I/O with analog input AIN5; its alternate function is I2C_SDA when the AFR6 remap option is set. |
| 12 | PB4/AIN4 | bidirectional | Port B4 I/O with analog input AIN4; its alternate function is I2C_SCL when the AFR6 remap option is set. |
| 13 | PB3/AIN3 | bidirectional | Port B3 I/O with analog input AIN3; its alternate function is TIM1_ETR when the AFR5 remap option is set. |
| 14 | PB2/AIN2 | bidirectional | Port B2 I/O with analog input AIN2; its alternate function is TIM1_CH3N when the AFR5 remap option is set. |
| 15 | PB1/AIN1 | bidirectional | Port B1 I/O with analog input AIN1; its alternate function is TIM1_CH2N when the AFR5 remap option is set. |
| 16 | PB0/AIN0 | bidirectional | Port B0 I/O with analog input AIN0; its alternate function is TIM1_CH1N when the AFR5 remap option is set. |
| 17 | PE5/SPI_NSS | bidirectional | Port E5 standard I/O used as the SPI master/slave select (NSS) pin. |
| 18 | PC1/TIM1_CH1 | bidirectional | Port C1 high-sink I/O (8 mA) that carries the Timer 1 channel 1 signal. |
| 19 | PC2/TIM1_CH2 | bidirectional | Port C2 high-sink I/O (8 mA) that carries the Timer 1 channel 2 signal. |
| 20 | PC3/TIM1_CH3 | bidirectional | Port C3 high-sink I/O (8 mA) that carries the Timer 1 channel 3 signal. |
| 21 | PC4/TIM1_CH4 | bidirectional | Port C4 high-sink I/O (8 mA) that carries the Timer 1 channel 4 signal. |
| 22 | PC5/SPI_SCK | bidirectional | Port C5 standard I/O used as the SPI clock. |
| 23 | PC6/SPI_MOSI | bidirectional | Port C6 standard I/O used as the SPI master out / slave in data line. |
| 24 | PC7/SPI_MISO | bidirectional | Port C7 standard I/O used as the SPI master in / slave out data line. |
| 25 | PD0/TIM3_CH2 | bidirectional | Port D0 high-sink I/O (8 mA) with Timer 3 channel 2; AFR3 remaps it to TIM1_BKIN and AFR2 to CLK_CCO, with AFR2 taking priority. |
| 26 | PD1/SWIM | bidirectional | Port D1 high-sink I/O (8 mA) used as the SWIM data interface, which is in input pull-up during reset and after reset release. |
| 27 | PD2/TIM3_CH1 | bidirectional | Port D2 high-sink I/O (8 mA) with Timer 3 channel 1; AFR1 remaps it to TIM2_CH3. |
| 28 | PD3/TIM2_CH2 | bidirectional | Port D3 high-sink I/O (8 mA) with Timer 2 channel 2; AFR0 remaps it to ADC_ETR. |
| 29 | PD4/TIM2_CH1/BEEP | bidirectional | Port D4 high-sink I/O (8 mA) with Timer 2 channel 1; AFR7 remaps it to the BEEP output (1, 2 or 4 kHz). |
| 30 | PD5/LINUART_TX | bidirectional | Port D5 standard I/O used as the LINUART data transmit pin. |
| 31 | PD6/LINUART_RX | bidirectional | Port D6 standard I/O used as the LINUART data receive pin. |
| 32 | PD7/TLI | bidirectional | Port D7 standard I/O that triggers the top level interrupt TLI when configured as an interrupt pin. |
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 |
|---|---|---|---|---|---|---|---|
| Internal CPU clock frequency | fCPU | 0 | 16 | MHz | TA = -40 °C to 150 °C | 52 | |
| Standard operating voltage | VDD/VDDIO | 3 | 5.5 | V | 52 | ||
| CEXT: capacitance of external capacitor | VCAP | 470 | 3300 | nF | 52 | ||
| ESR of external capacitor | 0.3 | Ω | at 1 MHz | 52 | |||
| ESL of external capacitor | 15 | nH | 52 | ||||
| Power dissipation LQFP32 | PD | 85 | mW | all temperature ranges | 52 | ||
| Ambient temperature, suffix C | TA | -40 | 125 | °C | Suffix C | 52 | |
| Junction temperature range, suffix C | TJ | 130 | °C | Suffix C | 52 | ||
| VDD rise time rate | tVDD | 2 | µs/V | 53 | |||
| 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 | |
| Reset release delay | tTEMP | 1 | 1.7 | ms | VDD rising | 53 | |
| Supply current in Run mode | IDD(RUN) | 7.4 | 14 | mA | Code in Flash, HSE external clock, all peripherals clocked, fCPU = 16 MHz | 54 | |
| Supply current in Run mode | IDD(RUN) | 4 | 7.4 | mA | Code in Flash, HSE external clock, all peripherals clocked, fCPU = 8 MHz (max not tested in production) | 54 | |
| Supply current in Run mode | IDD(RUN) | 2.4 | 4.1 | mA | Code in Flash, HSE external clock, all peripherals clocked, fCPU = 4 MHz (max not tested in production) | 54 | |
| Supply current in Run mode | IDD(RUN) | 1.5 | 2.5 | mA | Code in Flash, HSE external clock, all peripherals clocked, fCPU = 2 MHz | 54 | |
| Supply current in Run mode | IDD(RUN) | 3.7 | 5 | mA | Code in RAM and EEPROM, HSE external clock, all peripherals clocked, fCPU = 16 MHz | 54 | |
| Supply current in Run mode | IDD(RUN) | 2.2 | 3 | mA | Code in RAM and EEPROM, HSE external clock, all peripherals clocked, fCPU = 8 MHz (max not tested in production) | 54 | |
| Supply current in Run mode | IDD(RUN) | 1.4 | 2 | mA | Code in RAM and EEPROM, HSE external clock, all peripherals clocked, fCPU = 4 MHz (max not tested in production) | 54 | |
| Supply current in Run mode | IDD(RUN) | 1 | 1.5 | mA | Code in RAM and EEPROM, HSE external clock, all peripherals clocked, fCPU = 2 MHz | 54 | |
| Supply current in Wait mode | IDD(WFI) | 1.65 | 2.5 | mA | CPU stopped, all peripherals off, HSE external clock, fCPU = 16 MHz | 54 | |
| Supply current in Wait mode | IDD(WFI) | 1.15 | 1.9 | mA | CPU stopped, all peripherals off, HSE external clock, fCPU = 8 MHz (max not tested in production) | 54 | |
| Supply current in Wait mode | IDD(WFI) | 0.9 | 1.6 | mA | CPU stopped, all peripherals off, HSE external clock, fCPU = 4 MHz (max not tested in production) | 54 | |
| Supply current in Wait mode | IDD(WFI) | 0.8 | 1.5 | mA | CPU stopped, all peripherals off, HSE external clock, fCPU = 2 MHz | 54 | |
| Supply current in Slow mode | IDD(SLOW) | 1.5 | 1.95 | mA | fCPU scaled down, all peripherals off, code in RAM, external clock 16 MHz, fCPU = 125 kHz | 54 | |
| Supply current in Slow mode | IDD(SLOW) | 1.5 | 1.8 | mA | fCPU scaled down, all peripherals off, code in RAM, LSI internal RC, fCPU = 128 kHz (max not tested in production) | 54 | |
| Supply current in Halt mode | IDD(H) | 5 | 35 | µA | Halt, main regulator off, flash power-down, clocks stopped; TA = -40 to 55 °C | 55 | |
| Supply current in Active-halt mode with regulator on | IDD(AH) | 770 | 900 | µA | Main regulator on, flash operating, ext. clock 16 MHz, fMASTER = 125 kHz | 55 | |
| Supply current in Active-halt mode with regulator on | IDD(AH) | 150 | 230 | µA | Main regulator on, flash operating, LSI clock 128 kHz | 55 | |
| Wakeup time from Active-halt mode with regulator on | tWU(AH) | 10 | 30 | µs | Main regulator on, operating mode, TA = -40 to 150 °C | 55 | |
| Wakeup time from Active-halt mode with regulator off | tWU(AH) | 50 | 80 | µs | Main regulator off | 55 | |
| HSE oscillator current consumption | IDD(OSC) | 1 | 2 | mA | Quartz or ceramic resonator, CL = 33 pF, VDD = 5 V, fOSC = 24 MHz (max informative) | 55 | |
| HSE oscillator current consumption | IDD(OSC) | 0.5 | 1 | mA | Quartz or ceramic resonator, CL = 33 pF, VDD = 3.3 V, fOSC = 24 MHz (max informative) | 55 | |
| Programming current consumption | IDD(PROG) | 1 | 1.7 | mA | VDD = 5 V, -40 °C to 150 °C, erasing and programming data or Flash program memory | 56 | |
| HSE 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 | |||
| 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 | |
| Operating voltage (all modes, execution/write/erase) | VDD | 3 | 5.5 | V | fCPU is 0 to 16 MHz with 0 ws | 62 | |
| Operating voltage (code execution) | VDD | 2.6 | 5.5 | V | fCPU is 0 to 16 MHz with 0 ws | 62 | |
| Standard programming time (including erase) for byte/word/block | tprog | 6 | 6.6 | ms | 1 byte/4 bytes/128 bytes | 62 | |
| Flash program memory endurance (erase/write cycles) | NWE | 1000 | cycles | TA = 25 °C | 62 | ||
| Data memory endurance (erase/write cycles) | NWE | 100 | k cycles | TA = -40 °C to 125 °C | 62 | ||
| Data memory endurance (erase/write cycles) | NWE | 300 | k cycles | TA = 25 °C | 62 | ||
| Input low level voltage | VIL | -0.3 | V | 63 | |||
| Output low level voltage, high sink and true open drain I/O | VOL | 0.5 | V | VDD = 5 V, I = 8 mA | 63 | ||
| Output low level voltage, standard I/O | VOL | 0.6 | V | VDD = 5 V, I = 3 mA | 63 | ||
| Output low level voltage, standard I/O | VOL | 0.4 | V | VDD = 3 V, I = 1.5 mA | 63 | ||
| Pull-up resistor | Rpu | 35 | 50 | 65 | kΩ | VDD = 5 V, VIN = VSS | 63 |
| Digital input pad leakage current | Ilkg | -1 | 1 | µA | VSS ≤ VIN ≤ VDD | 63 | |
| Analog input pad leakage current | Ilkg ana | -250 | 250 | nA | VSS ≤ VIN ≤ VDD, -40 °C < TA < 125 °C | 63 | |
| Total current on either VDDIO or VSSIO | IDDIO | 60 | mA | Including injection currents | 63 | ||
| Supply voltage (including VDDA and VDDIO) | VDDx - VSS | -0.3 | 6.5 | V | 50 | ||
| Storage temperature range | TSTG | -65 | 150 | °C | 51 | ||
| Maximum junction temperature | TJ | 160 | °C | 51 | |||
| Output current sunk by any I/O and control pin | IIO | 20 | mA | 51 | |||
| NRST pull-up resistor | RPU(NRST) | 30 | 40 | 60 | kΩ | 67 | |
| 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:
STM8AF6246TCSSSY - Footprint:
Package_QFP:LQFP-32_7x7mm_P0.8mm - 3D model: LQFP-32(7x7) (KiCad packages3D, STEP)
- 3D model files:
stm8af6246tcsssy-etched.step/stm8af6246tcsssy-etched.glbcarry the MPN laser-etched on the die in a toggleableAdom.LaserEtchgroup (Fusion-ready);stm8af6246tcsssy.step/stm8af6246tcsssy.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-10, tier: lcsc) - 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: KiCad official libraries (CC-BY-SA 4.0).
# STM8AF6246TCSSSY
**STMicroelectronics** · Microcontrollers (MCU/MPU/SOC) · LQFP-32(7x7)
STM8AF6246TCSSSY from STMicroelectronics, 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 | NRST | bidirectional | Reset pin with an on-chip pull-up of 30 to 60 kΩ; input low level is VSS to 0.3×VDD and input high level is 0.7×VDD to VDD. |
| 2 | PA1/OSCIN | bidirectional | Port A1 standard I/O (up to 2 MHz) that doubles as the HSE crystal input or external clock input OSCIN, with a 0 to 16 MHz external clock range. |
| 3 | PA2/OSCOUT | bidirectional | Port A2 standard I/O (up to 2 MHz) that doubles as the HSE crystal/resonator output OSCOUT for 1 to 16 MHz crystals. |
| 4 | VSS | power_in | Digital ground; all power (VDD, VDDIO, VDDA) and ground (VSS, VSSIO, VSSA) pins must always be connected to the external supply. |
| 5 | VCAP | passive | Connection for the 1.8 V main regulator external capacitor CEXT, which must be 470 nF to 3300 nF with ESR of 0.3 Ω max at 1 MHz and ESL of 15 nH max. |
| 6 | VDD | power_in | Digital power supply with a standard operating range of 3.0 V to 5.5 V; the VDDx to VSS absolute maximum is 6.5 V. |
| 7 | VDDIO | power_in | I/O power supply with a standard operating range of 3.0 V to 5.5 V. |
| 8 | PF4/AIN12 | bidirectional | Port F4 I/O (standard speed) that is also analog input AIN12, which is not selectable in ADC scan mode or with the analog watchdog; its pull-up is enabled during the reset phase. |
| 9 | VDDA | power_in | Analog power supply for the 10-bit ADC, specified from 3 V to 5.5 V. |
| 10 | VSSA | power_in | Analog ground for the 10-bit ADC; it must be connected to the external ground. |
| 11 | PB5/AIN5 | bidirectional | Port B5 I/O with analog input AIN5; its alternate function is I2C_SDA when the AFR6 remap option is set. |
| 12 | PB4/AIN4 | bidirectional | Port B4 I/O with analog input AIN4; its alternate function is I2C_SCL when the AFR6 remap option is set. |
| 13 | PB3/AIN3 | bidirectional | Port B3 I/O with analog input AIN3; its alternate function is TIM1_ETR when the AFR5 remap option is set. |
| 14 | PB2/AIN2 | bidirectional | Port B2 I/O with analog input AIN2; its alternate function is TIM1_CH3N when the AFR5 remap option is set. |
| 15 | PB1/AIN1 | bidirectional | Port B1 I/O with analog input AIN1; its alternate function is TIM1_CH2N when the AFR5 remap option is set. |
| 16 | PB0/AIN0 | bidirectional | Port B0 I/O with analog input AIN0; its alternate function is TIM1_CH1N when the AFR5 remap option is set. |
| 17 | PE5/SPI_NSS | bidirectional | Port E5 standard I/O used as the SPI master/slave select (NSS) pin. |
| 18 | PC1/TIM1_CH1 | bidirectional | Port C1 high-sink I/O (8 mA) that carries the Timer 1 channel 1 signal. |
| 19 | PC2/TIM1_CH2 | bidirectional | Port C2 high-sink I/O (8 mA) that carries the Timer 1 channel 2 signal. |
| 20 | PC3/TIM1_CH3 | bidirectional | Port C3 high-sink I/O (8 mA) that carries the Timer 1 channel 3 signal. |
| 21 | PC4/TIM1_CH4 | bidirectional | Port C4 high-sink I/O (8 mA) that carries the Timer 1 channel 4 signal. |
| 22 | PC5/SPI_SCK | bidirectional | Port C5 standard I/O used as the SPI clock. |
| 23 | PC6/SPI_MOSI | bidirectional | Port C6 standard I/O used as the SPI master out / slave in data line. |
| 24 | PC7/SPI_MISO | bidirectional | Port C7 standard I/O used as the SPI master in / slave out data line. |
| 25 | PD0/TIM3_CH2 | bidirectional | Port D0 high-sink I/O (8 mA) with Timer 3 channel 2; AFR3 remaps it to TIM1_BKIN and AFR2 to CLK_CCO, with AFR2 taking priority. |
| 26 | PD1/SWIM | bidirectional | Port D1 high-sink I/O (8 mA) used as the SWIM data interface, which is in input pull-up during reset and after reset release. |
| 27 | PD2/TIM3_CH1 | bidirectional | Port D2 high-sink I/O (8 mA) with Timer 3 channel 1; AFR1 remaps it to TIM2_CH3. |
| 28 | PD3/TIM2_CH2 | bidirectional | Port D3 high-sink I/O (8 mA) with Timer 2 channel 2; AFR0 remaps it to ADC_ETR. |
| 29 | PD4/TIM2_CH1/BEEP | bidirectional | Port D4 high-sink I/O (8 mA) with Timer 2 channel 1; AFR7 remaps it to the BEEP output (1, 2 or 4 kHz). |
| 30 | PD5/LINUART_TX | bidirectional | Port D5 standard I/O used as the LINUART data transmit pin. |
| 31 | PD6/LINUART_RX | bidirectional | Port D6 standard I/O used as the LINUART data receive pin. |
| 32 | PD7/TLI | bidirectional | Port D7 standard I/O that triggers the top level interrupt TLI when configured as an interrupt pin. |
## 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 |
|---|---|---|---|---|---|---|---|
| Internal CPU clock frequency | fCPU | 0 | | 16 | MHz | TA = -40 °C to 150 °C | 52 |
| Standard operating voltage | VDD/VDDIO | 3 | | 5.5 | V | | 52 |
| CEXT: capacitance of external capacitor | VCAP | 470 | | 3300 | nF | | 52 |
| ESR of external capacitor | | | | 0.3 | Ω | at 1 MHz | 52 |
| ESL of external capacitor | | | | 15 | nH | | 52 |
| Power dissipation LQFP32 | PD | | | 85 | mW | all temperature ranges | 52 |
| Ambient temperature, suffix C | TA | -40 | | 125 | °C | Suffix C | 52 |
| Junction temperature range, suffix C | TJ | | | 130 | °C | Suffix C | 52 |
| VDD rise time rate | tVDD | 2 | | | µs/V | | 53 |
| 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 |
| Reset release delay | tTEMP | | 1 | 1.7 | ms | VDD rising | 53 |
| Supply current in Run mode | IDD(RUN) | | 7.4 | 14 | mA | Code in Flash, HSE external clock, all peripherals clocked, fCPU = 16 MHz | 54 |
| Supply current in Run mode | IDD(RUN) | | 4 | 7.4 | mA | Code in Flash, HSE external clock, all peripherals clocked, fCPU = 8 MHz (max not tested in production) | 54 |
| Supply current in Run mode | IDD(RUN) | | 2.4 | 4.1 | mA | Code in Flash, HSE external clock, all peripherals clocked, fCPU = 4 MHz (max not tested in production) | 54 |
| Supply current in Run mode | IDD(RUN) | | 1.5 | 2.5 | mA | Code in Flash, HSE external clock, all peripherals clocked, fCPU = 2 MHz | 54 |
| Supply current in Run mode | IDD(RUN) | | 3.7 | 5 | mA | Code in RAM and EEPROM, HSE external clock, all peripherals clocked, fCPU = 16 MHz | 54 |
| Supply current in Run mode | IDD(RUN) | | 2.2 | 3 | mA | Code in RAM and EEPROM, HSE external clock, all peripherals clocked, fCPU = 8 MHz (max not tested in production) | 54 |
| Supply current in Run mode | IDD(RUN) | | 1.4 | 2 | mA | Code in RAM and EEPROM, HSE external clock, all peripherals clocked, fCPU = 4 MHz (max not tested in production) | 54 |
| Supply current in Run mode | IDD(RUN) | | 1 | 1.5 | mA | Code in RAM and EEPROM, HSE external clock, all peripherals clocked, fCPU = 2 MHz | 54 |
| Supply current in Wait mode | IDD(WFI) | | 1.65 | 2.5 | mA | CPU stopped, all peripherals off, HSE external clock, fCPU = 16 MHz | 54 |
| Supply current in Wait mode | IDD(WFI) | | 1.15 | 1.9 | mA | CPU stopped, all peripherals off, HSE external clock, fCPU = 8 MHz (max not tested in production) | 54 |
| Supply current in Wait mode | IDD(WFI) | | 0.9 | 1.6 | mA | CPU stopped, all peripherals off, HSE external clock, fCPU = 4 MHz (max not tested in production) | 54 |
| Supply current in Wait mode | IDD(WFI) | | 0.8 | 1.5 | mA | CPU stopped, all peripherals off, HSE external clock, fCPU = 2 MHz | 54 |
| Supply current in Slow mode | IDD(SLOW) | | 1.5 | 1.95 | mA | fCPU scaled down, all peripherals off, code in RAM, external clock 16 MHz, fCPU = 125 kHz | 54 |
| Supply current in Slow mode | IDD(SLOW) | | 1.5 | 1.8 | mA | fCPU scaled down, all peripherals off, code in RAM, LSI internal RC, fCPU = 128 kHz (max not tested in production) | 54 |
| Supply current in Halt mode | IDD(H) | | 5 | 35 | µA | Halt, main regulator off, flash power-down, clocks stopped; TA = -40 to 55 °C | 55 |
| Supply current in Active-halt mode with regulator on | IDD(AH) | | 770 | 900 | µA | Main regulator on, flash operating, ext. clock 16 MHz, fMASTER = 125 kHz | 55 |
| Supply current in Active-halt mode with regulator on | IDD(AH) | | 150 | 230 | µA | Main regulator on, flash operating, LSI clock 128 kHz | 55 |
| Wakeup time from Active-halt mode with regulator on | tWU(AH) | | 10 | 30 | µs | Main regulator on, operating mode, TA = -40 to 150 °C | 55 |
| Wakeup time from Active-halt mode with regulator off | tWU(AH) | | 50 | 80 | µs | Main regulator off | 55 |
| HSE oscillator current consumption | IDD(OSC) | | 1 | 2 | mA | Quartz or ceramic resonator, CL = 33 pF, VDD = 5 V, fOSC = 24 MHz (max informative) | 55 |
| HSE oscillator current consumption | IDD(OSC) | | 0.5 | 1 | mA | Quartz or ceramic resonator, CL = 33 pF, VDD = 3.3 V, fOSC = 24 MHz (max informative) | 55 |
| Programming current consumption | IDD(PROG) | | 1 | 1.7 | mA | VDD = 5 V, -40 °C to 150 °C, erasing and programming data or Flash program memory | 56 |
| HSE 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 |
| 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 |
| Operating voltage (all modes, execution/write/erase) | VDD | 3 | | 5.5 | V | fCPU is 0 to 16 MHz with 0 ws | 62 |
| Operating voltage (code execution) | VDD | 2.6 | | 5.5 | V | fCPU is 0 to 16 MHz with 0 ws | 62 |
| Standard programming time (including erase) for byte/word/block | tprog | | 6 | 6.6 | ms | 1 byte/4 bytes/128 bytes | 62 |
| Flash program memory endurance (erase/write cycles) | NWE | 1000 | | | cycles | TA = 25 °C | 62 |
| Data memory endurance (erase/write cycles) | NWE | 100 | | | k cycles | TA = -40 °C to 125 °C | 62 |
| Data memory endurance (erase/write cycles) | NWE | 300 | | | k cycles | TA = 25 °C | 62 |
| Input low level voltage | VIL | -0.3 | | | V | | 63 |
| Output low level voltage, high sink and true open drain I/O | VOL | | | 0.5 | V | VDD = 5 V, I = 8 mA | 63 |
| Output low level voltage, standard I/O | VOL | | | 0.6 | V | VDD = 5 V, I = 3 mA | 63 |
| Output low level voltage, standard I/O | VOL | | | 0.4 | V | VDD = 3 V, I = 1.5 mA | 63 |
| Pull-up resistor | Rpu | 35 | 50 | 65 | kΩ | VDD = 5 V, VIN = VSS | 63 |
| Digital input pad leakage current | Ilkg | -1 | | 1 | µA | VSS ≤ VIN ≤ VDD | 63 |
| Analog input pad leakage current | Ilkg ana | -250 | | 250 | nA | VSS ≤ VIN ≤ VDD, -40 °C < TA < 125 °C | 63 |
| Total current on either VDDIO or VSSIO | IDDIO | | | 60 | mA | Including injection currents | 63 |
| Supply voltage (including VDDA and VDDIO) | VDDx - VSS | -0.3 | | 6.5 | V | | 50 |
| Storage temperature range | TSTG | -65 | | 150 | °C | | 51 |
| Maximum junction temperature | TJ | | | 160 | °C | | 51 |
| Output current sunk by any I/O and control pin | IIO | | | 20 | mA | | 51 |
| NRST pull-up resistor | RPU(NRST) | 30 | 40 | 60 | kΩ | | 67 |
| 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: `STM8AF6246TCSSSY`
- Footprint: `Package_QFP:LQFP-32_7x7mm_P0.8mm`
- 3D model: LQFP-32(7x7) (KiCad packages3D, STEP)
- 3D model files: `stm8af6246tcsssy-etched.step` / `stm8af6246tcsssy-etched.glb` carry the MPN laser-etched on the die in a toggleable `Adom.LaserEtch` group (Fusion-ready); `stm8af6246tcsssy.step` / `stm8af6246tcsssy.glb` are the bare package body.
## Provenance
Data extracted from the manufacturer datasheet, not a distributor listing:
- **Datasheet:** [STMicroelectronics datasheet](https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588923097718538240) (99 pp, sha256 `b2515811c84033b5`, retrieved 2026-11-10, tier: lcsc)
- **Extractor:** parts-factory `2.0.0` / `extract_pins 0.3`, primary `claude-haiku-5-5` (text), consensus `claude-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).
[Datasheet PDF](docs/stm8af6246tcsssy-datasheet.pdf)