STMicroelectronics STM8S103F2M6
- Part No.:
- STM8S103F2M6
- Manufacturer:
- STMicroelectronics
- Category:
- Microcontrollers
- Package:
- 20-SOIC (0.295", 7.50mm Width)
- Datasheet:
-
STM8S103F2M6.pdf
- Description:
- IC MCU 8BIT 4KB FLASH 20SO
- Quantity:
- Payment:

- Shipping:

Inventory:800
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM8S103F2M6 from STMicroelectronics is an 8-bit access-line microcontroller featuring a 16 MHz STM8 core, 8 Kbyte Flash program memory, 640 byte data EEPROM, 10-bit ADC with 5 channels, UART/SPI/I²C interfaces, and three timers-including a 16-bit advanced control timer with dead-time insertion. It targets cost-sensitive embedded control in industrial sensors, motor drives, and appliance UIs.
For engineers reviewing the STM8S103F2M6 datasheet, STM8S103F2M6 pinout, STM8S103F2M6 application, or STM8S103F2M6 equivalent, key selection criteria include its 20-pin TSSOP package, 2.95–5.5 V supply range, 300 kcycle EEPROM endurance, nested 32-interrupt controller, and SWIM single-wire debug interface for space-constrained firmware updates.
Technical Context
The STM8S103F2M6 implements a Harvard-architecture 8-bit core with 3-stage pipeline and extended instruction set, enabling deterministic real-time execution at up to 16 MHz. Its clock system integrates four independent sources: user-trimmable 16 MHz RC, low-power 128 kHz RC, crystal oscillator, and external clock input-each supported by clock security monitoring.
Peripheral integration includes UART with LIN master and SmartCard modes, SPI up to 8 Mbit/s, I²C up to 400 kbit/s, and a 10-bit ADC with analog watchdog and scan mode. Power management supports wait, active-halt, and halt modes with individual peripheral clock gating for precise current optimization.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core Architecture | 16 MHz STM8 8-bit Harvard core with 3-stage pipeline and extended instruction set for deterministic real-time control. |
| Flash Memory | 8 Kbyte on-chip Flash with 20-year data retention at 55 °C after 10,000 write/erase cycles. |
| Data EEPROM | 640 byte true data EEPROM rated for 300,000 write/erase cycles-enables robust parameter storage without external NV memory. |
| ADC Resolution | 10-bit SAR ADC with ±1 LSB INL/DNL, 5 multiplexed inputs, scan mode, and analog watchdog for sensor signal integrity. |
| Communication | UART (LIN/SmartCard/IrDA), SPI (8 Mbit/s), I²C (400 kbit/s)-supports mixed-protocol connectivity in compact control nodes. |
| Timers | Three independent timers: TIM1 (16-bit advanced, 4 CAPCOM, dead-time), TIM2 (16-bit general purpose), TIM4 (8-bit basic) + AWU and watchdogs. |
| Supply Voltage | 2.95–5.5 V operation-compatible with both 3.3 V and 5 V legacy industrial rails without level-shifting. |
| I/O Count | 16 GPIOs in TSSOP20 package, including 12 high-sink outputs (up to 20 mA sink per pin) for direct LED/relay drive. |
Pinout & Package
STM8S103F2M6 is packaged in a 20-pin TSSOP (4.4 mm body width) with 0.65 mm pitch, optimized for automated assembly and thermal performance in compact PCB layouts.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Power supply | Main 2.95–5.5 V supply rail; decoupled via 100 nF capacitor near pin for stable core/peripheral operation. |
| VSS | Ground reference | Digital ground return path; requires low-impedance connection to minimize noise coupling into ADC/timers. |
| NRST | Active-low reset input | Asynchronous reset with internal pull-up; accepts 1.2–5.5 V logic levels and supports external reset supervisor ICs. |
| SWIM | Single-wire interface module | Dedicated debug programming pin-enables in-circuit flash programming and real-time debugging using ST-LINK tools. |
| PA0–PA7 | Programmable I/O port A | 8-bit bidirectional port with alternate functions: UART TX/RX, SPI CLK/MOSI/MISO, I²C SCL/SDA, ADC IN0–IN4. |
| PB0–PB5 | Programmable I/O port B | 6-bit port supporting TIM1/2 channel outputs, external interrupts, and general-purpose digital I/O with high-sink capability. |
Key Features
| Feature | Design Value |
|---|---|
| SWIM Debug Interface | Single-pin in-circuit programming and real-time debugging-eliminates need for dedicated JTAG header space and reduces BOM count. |
| User-Trimmed 16 MHz RC Oscillator | Factory-calibrated ±1% accuracy at 25 °C; software-trimmable across temperature-removes external crystal for cost-sensitive timing. |
| High-Sink I/O Capability | 21 pins support 20 mA sink current-directly drives LEDs, small relays, or optocouplers without external drivers. |
| Low-Power Modes | Wait (1.5 µA), active-halt (2.5 µA), and halt (0.3 µA) modes with configurable wake-up sources-extends battery life in portable devices. |
| 96-Bit Unique ID | Factory-programmed read-only identifier-enables secure device authentication, firmware binding, and production traceability. |
Applications
| Industrial Sensor Node | Home Appliance UI Controller |
|---|---|
Use Scenario: Temperature/humidity sensing node with local display and wireless reporting. IC Role / Device Role / Timing Role: Main system controller managing ADC sampling, button debounce, LCD segment driving, and UART-based data transmission. Use Value: Integrated 10-bit ADC with analog watchdog ensures accurate sensor readings; 640-byte EEPROM stores calibration offsets and usage history without external memory. |
Use Scenario: Front-panel control for washing machine with rotary encoder, LED indicators, and buzzer feedback. IC Role / Device Role / Timing Role: Dedicated UI processor handling real-time encoder decoding, PWM-controlled LED brightness, and audible beeper timing. Use Value: TIM1's dead-time insertion enables clean PWM generation for LED dimming; high-sink I/Os directly drive indicator LEDs at 20 mA each. |
| Brushless DC Motor Starter | Smart Lighting Dimmer Module |
Use Scenario: Low-cost BLDC starter board for fans or pumps with Hall-effect commutation. IC Role / Device Role / Timing Role: Commutation sequencer generating complementary PWM signals with programmable dead-time to prevent shoot-through in gate drivers. Use Value: TIM1's 3 complementary outputs + hardware dead-time insertion eliminate software timing jitter and reduce firmware complexity. |
Use Scenario: DALI-compatible LED dimmer with AC phase-cut detection and constant-current output control. IC Role / Device Role / Timing Role: System manager acquiring zero-crossing events via GPIO interrupt, computing dimming level, and modulating output via PWM. Use Value: Nested interrupt controller handles simultaneous zero-crossing capture and UART DALI frame reception without latency or missed edges. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar 8-bit microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM8S003F3P6 | Same 20-pin TSSOP package and core, but only 4 Kbyte Flash and no data EEPROM. | Lacks persistent parameter storage-requires external EEPROM or FRAM for calibration data retention. | Select when firmware size ≤4 KB and non-volatile data storage is handled externally or not required. |
| EFM8BB10F8G-A-QFN20 | Silicon Labs 8051 core, 8 KB Flash, 512 B RAM, no integrated EEPROM; operates down to 1.8 V. | Lower voltage operation enables coin-cell battery use, but lacks hardware ADC watchdog and dedicated SWIM debug. | Prefer for ultra-low-voltage (<2.5 V) battery-powered designs where EEPROM is unnecessary and 8051 toolchain familiarity exists. |
Compared with STM8S103F2M6, STM8S003F3P6 trades EEPROM and Flash capacity for lower unit cost, while EFM8BB10F8G offers wider voltage range and higher sleep-mode efficiency but sacrifices integrated non-volatile data storage and streamlined debug infrastructure.
Availability
STM8S103F2M6 is available at Aetrix Electronics and suitable for industrial sensor nodes, home appliance UI controllers, BLDC motor starters, and smart lighting dimmer modules requiring stable component supply across multi-year production cycles.
Supply support for STM8S103F2M6 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, MEMS, and automotive semiconductors.
The STM8S series delivers cost-optimized 8-bit MCUs for mainstream industrial and consumer control applications, emphasizing code density, low-power operation, and robust debug infrastructure for rapid firmware development.
FAQ
Does STM8S103F2M6 support in-system programming via SWIM?
Yes. STM8S103F2M6 features a dedicated SWIM (Single-Wire Interface Module) pin that enables full in-circuit programming and debugging using ST-LINK/V2 or compatible programmers. No bootloader code is required-the SWIM interface accesses Flash and EEPROM directly through hardware-level commands, supporting field firmware updates without removing the MCU from the PCB.
What is the maximum ADC sampling rate achievable with STM8S103F2M6?
The STM8S103F2M6 ADC achieves up to 1 MSPS conversion rate when configured in continuous mode with 10-bit resolution and no analog watchdog enabled. Actual throughput depends on clock configuration: with CPU clock at 16 MHz and ADC prescaler set to 2, the ADC clock runs at 8 MHz, allowing one conversion every 13 ADC clocks (1.625 µs), yielding ~615 kSPS in practice under typical conditions.
Can TIM1 generate complementary PWM outputs with programmable dead-time?
Yes. TIM1 is a 16-bit advanced control timer with three complementary output channels and hardware-configurable dead-time insertion (1–128 clock cycles). Dead-time is applied automatically between complementary pairs (e.g., CH1/CH1N) to prevent cross-conduction in half-bridge or inverter gate drivers-no CPU intervention or software delay loops are needed.
Is the 640-byte data EEPROM accessible during normal program execution?
Yes. The 640-byte data EEPROM can be read and written while the CPU executes code from Flash memory. Write operations require a minimum 4.5 ms erase/write cycle per byte or page, during which the CPU remains operational-but interrupt latency increases slightly. EEPROM endurance is guaranteed at 300,000 cycles, with data retention specified for 20 years at 55 °C.
STM8S103F2M6 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 20-SOIC (0.295", 7.50mm Width)
- Series:
- STM8S
- Packaging:
- Tube
- 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, POR, PWM, WDT
- Number of I/O:
- 16
- Program Memory Size:
- 4KB (4K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- 640 x 8
- RAM Size:
- 1K x 8
- Voltage - Supply (Vcc/Vdd):
- 2.95V ~ 5.5V
- Data Converters:
- A/D 5x10b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM8S103F2M6 FAQ
1.How can I place an order for STM8S103F2M6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM8S103F2M6 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 STM8S103F2M6 reliable?
The price and inventory of STM8S103F2M6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM8S103F2M6 is usually 5 days.
3.What payment methods are accepted for STM8S103F2M6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM8S103F2M6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM8S103F2M6?
STM8S103F2M6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM8S103F2M6 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 STM8S103F2M6?
For technical support, including STM8S103F2M6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM8S103F2M6 requirements.
6.How does Aetrix verify that STM8S103F2M6 is sourced from the original manufacturer or authorized distributors?
All STM8S103F2M6 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 STM8S103F2M6 meets industry standards.
7.What is the process for return or replacement of STM8S103F2M6?
All STM8S103F2M6 units undergo pre-shipment inspection (PSI). If there is an issue with STM8S103F2M6, 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 STM8S103F2M6 part is unused and in its original packaging.
Return procedure for STM8S103F2M6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM8S103F2M6 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…

