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

STM8AF6223PCAU

STMicroelectronics · ST Microelectronics · TSSOP-20

STM8AF6223PCAU from STMicroelectronics, in a TSSOP-20. 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 PD4 bidirectional Port D4 high-sink I/O whose default functions are Timer 5 channel 1 or BEEP output, with LINUART clock available as a remapped function.
2 PD5 bidirectional Port D5 high-sink I/O whose functions are analog input 5 or LINUART data transmit.
3 PD6 bidirectional Port D6 high-sink I/O whose functions are analog input 6 or LINUART data receive.
4 NRST bidirectional Reset pin of the device.
5 PA1 bidirectional Port A1 used as resonator or crystal input; in Halt/Active-halt it is set to input weak pull-up and cannot be used to wake the device.
6 PA2 bidirectional Port A2 used as resonator or crystal output.
7 VSS power_in Digital ground.
8 VCAP passive Connection for the 1.8 V regulator capacitor.
9 VDD power_in Digital power supply.
10 PB5 bidirectional Port B5 true open-drain I/O used as I2C data, with Timer 1 break input available as a remapped function.
11 PB4 bidirectional Port B4 true open-drain I/O used as I2C clock, with ADC external trigger available as a remapped function.
12 PB1 bidirectional Port B1 high-sink I/O whose functions are Timer 1 inverted channel 2 or analog input 1.
13 PB0 bidirectional Port B0 high-sink I/O whose functions are Timer 1 inverted channel 1 or analog input 0.
14 PC4 bidirectional Port C4 high-sink I/O whose functions are Timer 1 channel 4, configurable clock output or analog input 2, with Timer 1 channel 2 as a remapped function.
15 PC5/SPI_SCK bidirectional Port C5 high-sink I/O used as SPI clock, with Timer 5 channel 1 available as a remapped function.
16 PC6 bidirectional Port C6 high-sink I/O used as SPI master out or slave in, with Timer 1 channel 1 available as a remapped function.
17 PC7 bidirectional Port C7 high-sink I/O used as SPI master in or slave out, with Timer 1 channel 2 available as a remapped function.
18 PD1 bidirectional Port D1 high-sink I/O used as SWIM data interface, which is input pull-up during the reset phase and after internal reset release.
19 PD2 bidirectional Port D2 high-sink I/O whose functions are analog input 3, with Timer 5 channel 3 and top level interrupt available as remapped functions.
20 PD3 bidirectional Port D3 high-sink I/O whose functions are analog input 4, Timer 5 channel 2 or ADC external trigger.

Key specifications

Parameter Value
Manufacturer STMicroelectronics
Package TSSOP-20
Category Embedded Processors & Controllers
Pins 20

Electrical characteristics

Limits as printed in the datasheet (page.json metadata.characteristics carries them as data).

Parameter Symbol Min Typ Max Unit Conditions Page
Supply voltage VDDx - VSS -0.3 6.5 V 54
Input voltage on true open drain pins VIN 6.5 V true open drain pins; min printed as VSS - 0.3 54
Variations between different power pins /VDDx - VDD/ 50 mV 54
Variations between ground pins /VSSx - VSS/ 50 mV 54
Total current into VDD lines IVDD 100 mA source 55
Total current out of VSS lines IVSS 80 mA sink 55
Output current sunk by any I/O IIO 20 mA sunk 55
Output current sourced by any I/O IIO -20 mA source 55
Injected current on RST pin IINJ(PIN) -4 4 mA 55
Injected current on OSCIN pin IINJ(PIN) -4 4 mA 55
Injected current on any other pin IINJ(PIN) -4 4 mA 55
Total injected current ΣIINJ(TOT) -20 20 mA sum of all I/O and control pins 55
Storage temperature range TSTG -65 150 °C 55
Maximum junction temperature TJ 150 °C 55
Internal CPU clock frequency fCPU 0 16 MHz 56
Standard operating voltage VDD 3 5.5 V 56
External capacitor on VCAP CEXT 470 3300 nF 56
ESR of external capacitor ESR 0.3 Ω at 1 MHz 56
ESL of external capacitor ESL 15 nH 56
Power dissipation TSSOP20 PD 45 mW TA = 125 °C for suffix C version 56
Ambient temperature suffix C TA -40 125 °C suffix C version 56
Junction temperature suffix C TJ -40 130 °C suffix C 56
Thermal resistance junction-ambient TSSOP20 ΘJA 110 °C/W TSSOP20 - 4 x 4 mm 103
VDD rise time rate tVDD 2 µs/V 57
Reset release delay tTEMP 1.7 ms VDD rising 57
Power-on reset threshold VIT+ 2.6 2.7 2.85 V 57
Brown-out reset threshold VIT- 2.5 2.65 2.8 V 57
Brown-out reset hysteresis VHYS(BOR) 70 mV 57
Run supply current, code from RAM, HSI IDD(RUN) 1.7 2 mA VDD = 5 V, fCPU = fMASTER = 16 MHz, HSI RC osc. (16 MHz) 58
Run supply current, code from Flash, HSI IDD(RUN) 3.7 4.5 mA VDD = 5 V, fCPU = fMASTER = 16 MHz, HSI RC osc. (16 MHz) 59
Wait mode supply current, HSI IDD(WFI) 0.89 1.5 mA VDD = 5 V, fCPU = fMASTER = 16 MHz, HSI RC osc. (16 MHz) 60
Halt mode current, Flash power-down, max at 85 °C IDD(H) 6 20 µA VDD = 5 V, Flash in power-down mode, HSI clock after wakeup, max at 85°C 62
Halt mode current, Flash power-down, max at 125 °C IDD(H) 6 55 µA VDD = 5 V, Flash in power-down mode, HSI clock after wakeup, max at 125°C 62
Supply current in reset state IDD(R) 400 µA VDD = 5 V 63
Reset pin release to vector fetch tRESETBL 150 µs 63
User external clock frequency fHSE_ext 0 16 MHz 67
OSCIN input leakage current ILEAK_HSE -1 1 µA VSS < VIN < VDD 67
External high-speed oscillator frequency fHSE 1 16 MHz 68
Recommended load capacitance C 20 pF 68
Oscillator transconductance gm 5 mA/V 68
HSI frequency fHSI 16 MHz 69
HSI accuracy (factory calibrated) ACCHS -5 5 % 3.0 V ≤ VDD ≤ 5.5 V, -40 °C ≤ TA ≤ 150 °C 69
LSI frequency fLSI 110 128 150 kHz 70
Flash operating voltage (all modes) VDD 3 5.5 V fCPU is 0 to 16 MHz with 0 ws 70
Standard programming time tprog 6 6.6 ms byte/word/block (1 byte/4 byte/64 byte) 70
Erase time for 1 block tERASE 3 3.3 ms 64 byte 70
Flash endurance NWE 1000 cycles TA = 25 °C 71
Input hysteresis Vhys 700 mV 72
Pull-up resistor Rpu 35 55 80 kΩ VDD = 5 V, VIN = VSS 72
Digital input pad leakage current Ilkg -1 1 µA VSS ≤ VIN ≤ VDD 72
Output low level, standard ports VOL 2 V IIO = 10 mA, VDD = 5 V, 8 pins sunk 74
Output high level, standard ports VOH 2.8 V IIO = 10 mA, VDD = 5 V, 8 pins sourced 74
Output low level, high sink ports VOL 0.8 V IIO = 10 mA, VDD = 5 V, 8 pins sunk 75
Output high level, high sink ports VOH 4 V IIO = 10 mA, VDD = 5 V, 8 pins sourced 75
NRST output low level voltage VOL(NRST) 0.5 V 79
NRST pull-up resistor RPU(NRST) 30 55 80 kΩ 79
SPI clock frequency, master fSCK 0 8 MHz Master mode 81
ADC clock frequency fADC 1 4 MHz VDD = 3 to 5.5 V 86
Internal bandgap reference voltage VBGREF 1.19 1.22 1.25 V VDD = 3 to 5.5 V 86

CAD (KiCad official)

  • Symbol: STM8AF6223PCAU
  • Footprint: Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm
  • 3D model: TSSOP-20 (KiCad packages3D, STEP)
  • 3D model files: stm8af6223pcau-etched.step / stm8af6223pcau-etched.glb carry the MPN laser-etched on the die in a toggleable Adom.LaserEtch group (Fusion-ready); stm8af6223pcau.step / stm8af6223pcau.glb are the bare package body.

Provenance

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

  • Datasheet: STMicroelectronics datasheet (112 pp, sha256 d9cd5dcf0815e39e, retrieved 2026-10-31, tier: manufacturer)
  • 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