STM8L151K4T6
Product Specifications
STM8L151K4T6
ST — MCU & Embedded Processors
Product Overview
The STM8L151K4T6 from ST is a microcontroller / embedded processor engineered for real-time control, signal processing, and connectivity. STMicroelectronics is a European semiconductor leader with a strong portfolio in MCUs, power management, sensors, and analog ICs.
Superb Automation partners with leading brands including Qorvo, TI, ADI, XILINX, NVIDIA, Intel, ST, MACOM, Renesas, and Coilcraft to provide complete BOM and supply-chain solutions.
Key Features
- ARM Cortex / RISC-V / proprietary core with high-performance real-time processing
- Integrated flash memory and SRAM for efficient code execution
- Rich peripheral set: UART, SPI, I2C, ADC, timers, PWM
- Low-power modes for battery-operated and energy-sensitive applications
- Hardware security features: secure boot, crypto accelerator, TRNG
- Extensive development ecosystem with IDE, HAL, and RTOS support
Key Specifications
| Core | — |
| Max Frequency | MHz |
| Flash | KB |
| SRAM | KB |
| GPIO | — |
| ADC | bits |
| Interfaces | — |
| Supply Voltage | V |
| Operating Temp | °C |
| Package | — |
Applications
Request Quote — In Stock, 100% New & Original, Full Warranty
STM8L151K4T6: 16 Kbyte ultra-low-power STM8L MCU in LQFP32
STM8L151K4T6 is a 16 Kbyte Flash member of the STM8L ultra-low-power line in a LQFP32 body (7 by 7 mm), with 2 Kbytes of RAM, 1 Kbyte of data EEPROM, 30 general purpose I/O, 22 channels on the 12 bit converter and 1 channel of 12 bit DAC. The supply range is 1.8 to 3.6 V, down to 1.65 V at power down and the core runs at up to 16 MHz. This order code has no LCD controller, so every port pin belongs to the application.
Order code and memory
| Order code | STM8L151K4T6 |
| Program Flash | 16 Kbytes |
| Data EEPROM | 1 Kbyte with ECC and read while write |
| RAM | 2 Kbytes |
| Package | LQFP32, 7 by 7 mm |
| Pin count | 32 |
| Maximum general purpose I/O | 30 |
| ADC channels | 22 of the 12 bit converter |
| DAC channels | 1 of 12 bits with output buffer |
| LCD controller | not present on this order code |
| Temperature grade | suffix 6, minus 40 to plus 85 C |
Electrical and peripheral parameters
| Supply voltage | 1.8 to 3.6 V, down to 1.65 V at power down |
| Maximum CPU clock | 16 MHz, 16 MIPS peak |
| Run current | 195 uA per MHz plus 440 uA static |
| Halt current | 350 nA typical |
| Active halt | 1.3 uA typical with the real time clock running |
| Low power modes | 5.1 uA typical in low power run, 3 uA in low power wait |
| Wake up time | 4.7 microseconds from halt |
| Analog to digital converter | 12 bit, up to 1 Msps, 22 channels, internal reference voltage and temperature sensor on chip |
| Digital to analog converter | 1 channel of 12 bits with output buffer, 7 microseconds typical settling into 5 k and 50 pF |
| Comparators | 2, one fixed threshold and one rail to rail, both can wake the core |
| Timers | two 16 bit general purpose timers with two channels each, one 16 bit advanced control timer with three channels, one 8 bit timer, beeper timer, window and independent watchdog |
| Serial interfaces | one SPI, one I2C at 400 kHz with SMBus and PMBus, one USART with ISO 7816 and IrDA |
| DMA | 4 channels covering the ADC, the DAC, SPI, I2C, USART and the timers |
| Data EEPROM endurance | 300 kcycle with ECC and read while write |
| Program memory endurance | 10 kcycle, 30 years retention at 85 C |
| Identification | 96 bit unique ID, single wire interface module, USART bootloader |
Points to check before this part goes on a BOM
The K4 is the 32 pin, 16 Kbyte member of the line. On this body the die gives up eleven port pins against the 48 pin part and three converter channels: 30 I/O and 22 analog inputs remain, with 2 Kbytes of RAM and 1 Kbyte of EEPROM unchanged. Anyone porting code from a C4 has to re map the peripheral pins rather than assume the same alternate functions land on the same numbers, because the 32 pin package drops whole ports rather than trimming one pin from each.
A 32 pin body is usually chosen for board area, and the consequence is a thermal one as well as an electrical one. Fewer pins means fewer paths to copper, and the port drivers share the same ground return; when several high sink outputs switch together the ground bounce appears on the ADC reference if the analog and digital returns are not separated at the pin. The usual fix on this family is a star point at the VSS pin nearest the converter and a separate trace to the VREF- pin.
Low power behaviour is identical to the rest of the medium density line: 350 nA in halt, 1.3 uA in active halt with the clock running, and a 4.7 microsecond wake up. What differs is what you can do with it. With 22 channels and one DAC, the part suits a two wire 4 to 20 mA transmitter or a battery gauge, and with 30 I/O it still carries the SPI, the I2C and the USART, so a sensor that has to talk to both a radio and a host is possible without an external bridge.
Where this order code fits
Compact transmitters, battery gauges, portable gas detectors and remote I/O slices where the enclosure fixes the board at 32 pins and the firmware still needs a real EEPROM. Teams comparing it against a neighbouring memory size or pin count start from our MCU Cross Reference page, and teams replacing a line that has gone end of life start from the Pin to Pin Cross Reference page. Both list the figures that have to match before a substitute goes on a BOM.
Questions buyers ask
How many I/O does the 32 pin body expose? 30 general purpose I/O, 22 of which reach the 12 bit converter. The 48 pin body of the same die has 41 I/O and 25 channels.
Is the K4 pin compatible with the K6? Yes on pinout and package, and both are 2 Kbyte RAM parts, so the difference is the 16 against 32 Kbyte program array and the price. Firmware built for one runs on the other as long as the linker knows which array it is targeting.
What is the DAC capable of? One 12 bit channel with an output buffer, a 7 microsecond typical settling time into 5 k and 50 pF, and an update rate of 1 Msps. The reference comes from VREF+, shared with the ADC.
SUPERB holds and sources ST microcontroller lines including this order code for production and repair demand, quoted against the exact ordering string with date codes and packing stated. When a line is changing, the One Stop BOM Sourcing page sets out the checks that keep a substitute from failing on the bench.