STMicroelectronics STM8AL3138TCX
- Part No.:
- STM8AL3138TCX
- Manufacturer:
- STMicroelectronics
- Category:
- Microcontrollers
- Package:
- 48-LQFP
- Datasheet:
-
STM8AL3138TCX.pdf
- Description:
- IC MCU 8BIT 8KB FLASH 48LQFP
- Quantity:
- Payment:

- Shipping:

Inventory:4,700
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM8AL3138TCX from STMicroelectronics is an AEC-Q100 qualified automotive-grade 8-bit ultra-low-power MCU featuring 32 Kbyte Flash, 2 Kbyte RAM, 1 Kbyte data EEPROM, 12-bit ADC (25 channels, up to 1 Mbps), 12-bit DAC with output buffer, two ultra-low-power comparators, RTC with BCD calendar and auto-wakeup (0.95 ppm resolution), and support for LIN 2.0, IrDA, and ISO 7816 interfaces. It operates from 1.65 V to 3.6 V across –40 °C to 125 °C and targets battery-powered automotive body electronics.
For engineers reviewing the STM8AL3138TCX datasheet, STM8AL3138TCX pinout, STM8AL3138TCX application, or STM8AL3138TCX equivalent, key selection criteria include ultra-low-power operation in active-halt mode (1.3 μA), fast wakeup time (4.7 µs), 41 mappable I/Os with interrupt capability, and qualification for automotive temperature grade T1 (–40 °C to 125 °C).
Technical Context
The STM8AL3138TCX implements a Harvard-architecture STM8 core with 3-stage pipeline, delivering 16 CISC MIPS at 16 MHz. Its clock system integrates dual crystal oscillators (1–16 MHz HSE and 32 kHz LSE), factory-trimmed 16 MHz RC, and 38 kHz low-consumption RC, all managed by a clock security system to detect oscillator failure.
Power management includes five configurable low-power modes - Wait, low-power run (5.1 μA), low-power wait (3 μA), active-halt with full RTC (1.3 μA), and halt with PDR (400 nA) - enabled by programmable voltage detector (PVD), ultra-safe BOR with five thresholds, and POR/PDR circuitry optimized for automotive supply transients.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core Architecture | Harvard, 3-stage pipeline STM8 CPU; enables deterministic execution and efficient code density for resource-constrained automotive control tasks. |
| Max Clock Frequency | 16 MHz; delivers 16 CISC MIPS peak performance while maintaining ultra-low power consumption in all operating modes. |
| Flash Memory | 32 Kbyte; supports 20-year data retention at 55 °C and in-system programming via SWIM interface for field updates. |
| ADC Resolution & Speed | 12-bit, up to 1 Mbps sampling rate across 25 channels; includes internal temp sensor and reference voltage for self-calibration. |
| Low-Power Halt Current | 400 nA with PDR enabled; allows extended battery life in always-on automotive modules such as door controllers or seat position memory. |
| RTC Accuracy | 0.95 ppm resolution with LSE crystal; enables precise calendar-based wake-up and scheduling without external timing components. |
| I/O Count & Mapping | 41 I/O pins, all individually mappable to interrupt vectors; simplifies PCB routing and firmware-driven peripheral reassignment. |
Pinout & Package
LQFP48 package (7 × 7 mm, 0.5 mm pitch), RoHS-compliant, ECOPACK2 qualified.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD, VSS | Power supply and ground | Dual power domains: VDD powers digital/IO; VSS provides common return; supports 1.65–3.6 V operation with robust transient immunity. |
| NRST | Active-low reset input | Asynchronous reset with internal pull-up; compatible with external reset supervisors and microcontroller watchdog cascading. |
| SWIM | Single-wire interface for debug and programming | Enables non-intrusive on-chip debugging and fast flash programming without dedicated JTAG pins or additional hardware. |
| PA0–PA7, PB0–PB7, PC0–PC7, PD0–PD7, PE0–PE7 | General-purpose I/O ports | All 41 pins support interrupt generation, alternate functions (USART, SPI, I²C, timers), and ultra-low leakage (50 nA per I/O). |
| OSC_IN / OSC_OUT | HSE crystal oscillator terminals | Supports 1–16 MHz external crystal; integrated load capacitors reduce BOM count and improve EMI robustness. |
| OSC32_IN / OSC32_OUT | LSE crystal oscillator terminals | Drives 32.768 kHz crystal for RTC; enables autonomous calendar operation and periodic wake-up from Halt mode. |
Key Features
| Feature | Design Value |
|---|---|
| Automotive Qualification | AEC-Q100 Grade 1 (–40 °C to 125 °C); validated for under-hood and body-control applications requiring long-term reliability. |
| Ultra-Low-Power RTC | BCD calendar with alarm + auto-wakeup from Halt; eliminates need for external real-time clock IC in telematics or smart-sensor nodes. |
| Dual Comparators | One rail-to-rail, one fixed-threshold comparator with wakeup capability; enables battery monitoring and windowed voltage detection without CPU intervention. |
| Integrated LIN 2.0 Support | Hardware USART with LIN break detection and sync field handling; reduces firmware overhead in automotive network gateways and actuators. |
| True Data EEPROM | 1 Kbyte endurance-rated (300 kcycles), independent of Flash; stores calibration data, odometer values, or configuration parameters with guaranteed write cycles. |
Applications
| Automotive Door Module | Smart Battery Sensor |
|---|---|
Use Scenario: Centralized control of power windows, locks, mirrors, and interior lighting in modern vehicle door assemblies. IC Role / Device Role / Timing Role: Primary MCU managing LIN communication with body controller, analog sensing of motor current and position, and PWM-driven LED status indicators. Use Value: Ultra-low-power Halt mode (400 nA) extends standby battery life; 41 I/Os enable direct connection to multiple sensors and actuators without external logic. |
Use Scenario: Monitoring voltage, current, temperature, and state-of-charge in 12 V lead-acid or LiFePO₄ starter batteries for start-stop systems. IC Role / Device Role / Timing Role: Analog front-end processor with 12-bit ADC, temp sensor, and dual comparators; performs periodic measurements during engine-off periods. Use Value: Active-halt mode (1.3 μA with RTC) enables hourly SoC checks; internal reference and EEPROM ensure consistent calibration across temperature and lifetime. |
| Seat Position Memory | Body Control Unit Subnode |
Use Scenario: Storing and recalling driver seat position settings using potentiometers and limit switches in premium vehicles. IC Role / Device Role / Timing Role: Dedicated seat MCU interfacing with analog position sensors, controlling DC motors via advanced timer PWM, and communicating over LIN. Use Value: 16-bit advanced control timer supports motor commutation and current limiting; 32 Kbyte Flash accommodates multi-user profile storage and firmware updates. |
Use Scenario: Distributed control node managing ambient lighting, HVAC feedback, and trunk release in modular body electronics architecture. IC Role / Device Role / Timing Role: Low-power coordinator receiving commands via I²C from main BCM and driving local peripherals via GPIO and beeper timer. Use Value: Fast 4.7 µs wakeup from Halt ensures responsive actuation; SWIM debug interface enables in-vehicle firmware patching without disassembly. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar ultra-low-power automotive MCU applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM8AL3L48TCX | Includes integrated LCD controller (4×28 segments) and step-up converter; same Flash/RAM/ADC/DAC specs. | Targeted at automotive instrument clusters or dashboard displays requiring segment LCD drive. | Select when LCD interface is required; otherwise, STM8AL3138TCX offers lower cost and identical core functionality without LCD overhead. |
| RL78/F13-GB | Renesas RL78 core; 20 MHz max, 32 Kbyte Flash, 2.5–5.5 V operation, no AEC-Q100 Grade 1 rating (only Grade 2: –40 °C to 105 °C). | Suitable for less demanding under-dash applications where extended temperature range is not mandatory. | Choose only if design tolerates reduced thermal margin and lacks requirement for AEC-Q100 Grade 1 compliance. |
Compared with STM8AL3L48TCX, the STM8AL3138TCX removes LCD circuitry to reduce power and cost for non-display applications; versus RL78/F13-GB, it provides verified automotive Grade 1 operation and superior low-power metrics below 2 μA in Halt mode.
Availability
STM8AL3138TCX is available at Aetrix Electronics and suitable for automotive body electronics, battery monitoring systems, and seat position memory modules requiring stable component supply across extended temperature ranges and long product lifecycles.
Supply support for STM8AL3138TCX includes scheduled delivery planning, volume procurement assistance, BOM continuity management, traceable sourcing, and lifecycle availability coordination for OEM customers, industrial embedded developers, connected-device designers, and electronics production programs.
Manufacturer
STMicroelectronics is a global semiconductor leader headquartered in Geneva, Switzerland, designing and manufacturing microcontrollers, power management ICs, sensors, and automotive-grade solutions.
The STM8AL3x series is part of ST's ultra-low-power automotive MCU portfolio, engineered specifically for battery-sensitive body electronics applications requiring AEC-Q100 qualification, sub-μA sleep currents, and integrated analog peripherals.
FAQ
What is the maximum operating temperature for STM8AL3138TCX?
The STM8AL3138TCX is rated for operation from –40 °C to +125 °C and is AEC-Q100 qualified for Grade 1 automotive applications. This specification is validated per DS7106 Rev 9, Section 9.3.1, and applies to all functional blocks including Flash, RTC, ADC, and I/Os under 1.65–3.6 V supply conditions.
Does STM8AL3138TCX support LIN physical layer directly?
No - the STM8AL3138TCX supports LIN protocol stack via its USART peripheral (ISO 7816/IrDA/LIN 1.3 & 2.0 compliant), but requires an external LIN transceiver (e.g., TLE7259-3GE) for physical layer signaling. The MCU handles LIN frame formatting, checksum, and scheduling in firmware or via hardware assist features.
How many I/O pins support external interrupt capability?
All 41 general-purpose I/O pins on the STM8AL3138TCX can be individually configured to generate external interrupts. Each port pin maps to a dedicated vector in the interrupt controller, enabling edge-triggered wake-up from any low-power mode, including Halt and active-halt.
Is SWIM debugging supported in all power modes?
SWIM debugging is fully operational in Run, Wait, and Low-power Run modes. It is disabled in Low-power Wait, Active-halt, and Halt modes - however, the device can be woken by NRST or an interrupt and immediately resume debug session without reset, preserving register and memory state where applicable.
STM8AL3138TCX Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 48-LQFP
- Series:
- STM8A
- Packaging:
- Tape & Reel (TR)
- Product Status:
- Active
- Programmable:
- Not Verified
- Core Processor:
- STM8
- Core Size:
- 8-Bit
- Speed:
- 16MHz
- Connectivity:
- I2C, IrDA, LINbus, SPI, UART/USART
- Peripherals:
- Brown-out Detect/Reset, DMA, POR, PWM, WDT
- Number of I/O:
- 41
- Program Memory Size:
- 8KB (8K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- 1K x 8
- RAM Size:
- 2K x 8
- Voltage - Supply (Vcc/Vdd):
- 1.65V ~ 3.6V
- Data Converters:
- A/D 25x12b; D/A 1x12b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 125°C (TA)
- Grade:
- Automotive
- Qualification:
- AEC-Q100
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM8AL3138TCX FAQ
1.How can I place an order for STM8AL3138TCX through Aetrix?
Please submit a Request for Quotation (RFQ) for STM8AL3138TCX on Aetrix. Our sales agent will provide a competitive quotation and guide you through the order confirmation once you accept the terms.
2.Are the price and stock information for STM8AL3138TCX reliable?
The price and inventory of STM8AL3138TCX are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM8AL3138TCX is usually 5 days.
3.What payment methods are accepted for STM8AL3138TCX?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM8AL3138TCX transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM8AL3138TCX?
STM8AL3138TCX orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM8AL3138TCX order is processed, you will receive an email with the shipment details and tracking number.
Note: Tracking information may take up to 24 hours to appear. Express delivery typically takes 3–5 business days.
5.How can I obtain technical support or documentation for STM8AL3138TCX?
For technical support, including STM8AL3138TCX datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM8AL3138TCX requirements.
6.How does Aetrix verify that STM8AL3138TCX is sourced from the original manufacturer or authorized distributors?
All STM8AL3138TCX products on Aetrix are procured from qualified distributors and authorized channels. Our dedicated quality assurance team conducts strict verification, including traceability checks and, if necessary, third-party testing. This ensures that STM8AL3138TCX meets industry standards.
7.What is the process for return or replacement of STM8AL3138TCX?
All STM8AL3138TCX units undergo pre-shipment inspection (PSI). If there is an issue with STM8AL3138TCX, returns or replacements are accepted under the following conditions:
1.Quantity discrepancies, incorrect items, or visible external defects (such as breakage or corrosion), acknowledged by Aetrix.
2.The issue is reported within 90 days of delivery.
3.The STM8AL3138TCX part is unused and in its original packaging.
Return procedure for STM8AL3138TCX:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM8AL3138TCX Tags

-
ATTINY4-TSHR
Microchip Technology

-
ATTINY10-TSHR
Microchip Technology

-
ATTINY10-TS8R
Microchip Technology

-
ATTINY202-SSNR
Microchip Technology

-
ATTINY202-SSFR
Microchip Technology

-
ATTINY402-SSNR
Microchip Technology

-
PIC16F15213T-I/MF
Microchip Technology

-
PIC16F15213-E/MF
Microchip Technology

-
PIC10F200T-I/OT
Microchip Technology

-
ATTINY412-SSNR
Microchip Technology

-
PIC10F202T-I/OT
Microchip Technology

-
ATTINY404-SSNR
Microchip Technology
Tech Hub
A practical engineering guide to 3.3V and 5V logic compatibility, input thresholds, resistor dividers, translator ICs, MOSFET level shifting, I2C pull-ups, timing limits and power-sequencing risks.
The 74HC595 uses push-pull logic outputs, while the TPIC6B595 uses 50 V open-drain DMOS sinks for higher-power loads. This guide compares timing, current limits, 3.3 V interfacing, load wiring, thermal…
The 74HC595 converts serial data into eight stable parallel outputs. This guide covers pin functions, shift and storage timing, OE and MR behavior, drive-current limits, cascading, voltage compatibilit…
A technical comparison of level-sensitive latches and edge-triggered flip-flops, covering timing windows, setup and hold limits, master–slave operation, time borrowing, race-through, HDL inference and…
A D latch stores one bit while Enable controls when data can pass. This reference covers gate-level operation, truth tables, transparency, setup and hold timing, LE versus OE, common ICs and practical …
An SR latch stores one bit through cross-coupled feedback. This engineering reference covers NOR and NAND implementations, truth tables, forbidden-state recovery, gated operation, switch debouncing, fa…
Latch circuits retain one bit through feedback. This technical reference covers SR and D latches, truth tables, transparency, timing limits, latch-versus-flip-flop behavior, applications and common log…
An engineering guide to LED driver operation, constant-current and constant-voltage outputs, linear and switching topologies, dimming, IC selection, calculations, replacement compatibility, and fault c…
Operational amplifier guide covering op amp basics, feedback, ideal vs real op amps, common configurations, buffer circuits, offset, bias current, gain-bandwidth, slew rate, rail-to-rail limits and sel…
Jumper cables guide covering safe connection order, red and black clamp placement, final ground connection, cable gauge, length, clamp quality, copper vs CCA cables, jump starter comparison and battery…

