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

- Shipping:

Inventory:1,000
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM8S103F2M6TR from STMicroelectronics is an 8-bit access-line microcontroller featuring a 16 MHz STM8 core, 8 Kbytes Flash, 640 bytes data EEPROM, 10-bit ADC with 5 channels, three timers (including advanced 16-bit TIM1), UART, SPI, and I²C interfaces - deployed in industrial sensor nodes, motor control feedback loops, and smart appliance UI controllers.
For engineers reviewing the STM8S103F2M6TR datasheet, STM8S103F2M6TR pinout, STM8S103F2M6TR application, or STM8S103F2M6TR equivalent, key selection criteria include its 20-pin TSSOP package, 2.95–5.5 V supply range, nested interrupt controller supporting 32 vectors, low-power active-halt mode (0.35 µA typ), and SWIM single-wire debug interface for space-constrained embedded designs.
Technical Context
The STM8S103F2M6TR 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: external crystal (up to 24 MHz), external clock input, user-trimmable 16 MHz RC, and low-power 128 kHz RC - all monitored by a clock security system.
Interrupt handling uses a nested controller with 32 vectors and priority encoding, supporting up to 27 external interrupts across six dedicated pins. Memory subsystem includes 8 Kbytes of Flash with 20-year data retention at 55 °C after 10 kcycles, plus 640 bytes of true data EEPROM rated for 300 kwrite cycles - both accessible via SWIM for in-system programming.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | STM8 8-bit Harvard architecture, 16 MHz max CPU frequency - enables deterministic real-time control without cache or branch prediction overhead. |
| Flash Memory | 8 Kbytes with 20-year data retention at 55 °C after 10,000 write/erase cycles - suitable for firmware updates and field calibration storage. |
| Data EEPROM | 640 bytes true EEPROM, 300,000 write endurance - supports persistent parameter logging and configuration backup without external memory. |
| ADC | 10-bit SAR ADC with ±1 LSB INL, 5 multiplexed inputs, scan mode, and analog watchdog - delivers accurate sensor signal digitization in noisy environments. |
| Timers | TIM1 (16-bit advanced, 4 CAPCOM, dead-time insertion), TIM2 (16-bit general purpose), TIM4 (8-bit basic), plus AWU and dual watchdogs - covers motor commutation, PWM generation, and system supervision. |
| I/O Count | 16 GPIOs in TSSOP20 package, including 13 high-sink outputs (20 mA sink capability) - drives LEDs, relays, and logic-level peripherals directly. |
| Supply Range | 2.95 V to 5.5 V operation - interoperates with 3.3 V and 5 V logic families and battery-powered systems without level-shifting. |
Pinout & Package
STM8S103F2M6TR is housed in a 20-lead TSSOP package (4.4 mm body width, 0.65 mm pitch), optimized for automated assembly and thermal performance in compact industrial PCBs.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Power supply | Main 2.95–5.5 V supply rail; decoupling capacitor required at pin for stable core and peripheral operation. |
| VSS | Ground reference | Digital ground return path; must be connected to low-impedance PCB plane for noise immunity. |
| NRST | Active-low reset input | Asynchronous reset trigger; internal pull-up ensures reliable power-on reset; accepts 1.65 V min logic low. |
| SWIM | Single-wire interface module | Debug and programming interface using one bidirectional pin - eliminates need for JTAG header space. |
| PA0–PA7 | Programmable I/O port A | 8-bit port with alternate functions including UART TX/RX, SPI, I²C, ADC inputs, and timer channels. |
| PD0–PD5 | Programmable I/O port D | 6-bit port supporting additional UART, SPI, timer, and external interrupt functions; PD5 serves as SWIM pin. |
Key Features
| Feature | Design Value |
|---|---|
| Low-power modes | Wait (1.3 µA @ 3.3 V), active-halt (0.35 µA), and halt (0.25 µA) - extends battery life in portable sensors and remote monitors. |
| Robust I/O design | Immunity to current injection up to 100 mA per pin - prevents latch-up in electrically noisy industrial environments. |
| Unique 96-bit ID | Factory-programmed serial number per device - enables secure device authentication and firmware binding in OEM applications. |
| Flexible clock security | Hardware clock monitor detects HSE/HSI failure and triggers safe state transition - critical for fail-safe motor control and safety-critical peripherals. |
| True data EEPROM | No external components needed for nonvolatile parameter storage - reduces BOM count and board area vs. external EEPROM solutions. |
Applications
| Industrial Sensor Node | Smart Appliance UI Controller |
|---|---|
Use Scenario: Temperature/humidity monitoring in HVAC ducts with RS-485 backhaul and local LED status indication. IC Role / Device Role / Timing Role: Central MCU managing ADC sampling, UART communication, and real-time LED blink patterns via TIM4. Use Value: Integrated 10-bit ADC and UART eliminate external signal conditioning ICs; low-power modes extend maintenance-free operation to >5 years on coin cell. |
Use Scenario: Touch-button interface and display driver for washing machine control panel with buzzer feedback. IC Role / Device Role / Timing Role: Primary UI processor handling capacitive touch scanning (via ADC), buzzer timing (TIM1), and I²C display update. Use Value: High-sink I/Os drive LEDs and piezo buzzer directly; SWIM debug enables rapid UI firmware iteration without test points. |
| Brushless DC Motor Feedback | Energy Meter Communication Module |
Use Scenario: Rotor position sensing and commutation timing in small BLDC fans using Hall-effect sensors and 3-phase gate drivers. IC Role / Device Role / Timing Role: Real-time motor controller executing hall sensor decoding, PWM generation (TIM1), and fault detection. Use Value: TIM1's complementary outputs with programmable dead-time prevent shoot-through in half-bridge drivers; 16 MHz core ensures sub-microsecond interrupt latency. |
Use Scenario: Isolated PLC-to-meter communication bridge supporting DLMS/COSEM over UART and IR LED transmission. IC Role / Device Role / Timing Role: Protocol translation engine managing UART framing, IR carrier modulation (via TIM2), and EEPROM-based meter ID storage. Use Value: Built-in 640-byte EEPROM stores utility-specific credentials; UART clock output enables synchronous IrDA physical layer without external oscillator. |
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, identical core and peripherals, but only 4 Kbytes Flash and 128 bytes EEPROM. | Suitable for simpler firmware with no field-upgrade requirement or minimal calibration data storage. | Select when cost sensitivity outweighs future firmware scalability needs; not recommended for designs requiring >4 Kbytes code space. |
| EFM8BB10F8G-A-QSOP24 | 8051-based core, 8 Kbytes Flash, 512 bytes RAM, but no integrated EEPROM; requires external nonvolatile storage for parameters. | Better suited for USB-enabled or higher-speed UART (up to 2 Mbps) applications where EEPROM is managed externally. | Choose if USB connectivity or higher UART throughput is mandatory; accept added BOM complexity for EEPROM replacement. |
Compared with STM8S003F3P6, STM8S103F2M6TR provides double Flash and five times more EEPROM - essential for OTA-capable firmware and multi-point calibration. Versus EFM8BB10F8G-A-QSOP24, it offers native EEPROM and lower system-level power in active-halt mode, reducing total solution size and cost in battery-operated meters and sensors.
Availability
STM8S103F2M6TR is available at Aetrix Electronics and suitable for industrial sensor nodes, smart appliance UI controllers, brushless DC motor feedback systems, and energy meter communication modules requiring stable component supply across long production lifecycles.
Supply support for STM8S103F2M6TR 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 devices, sensors, and analog ICs for industrial, automotive, and consumer markets.
The STM8S series targets cost-sensitive, high-reliability embedded applications demanding robust peripherals, low-power operation, and long-term supply stability - especially in white goods, industrial automation, and building controls.
FAQ
Does STM8S103F2M6TR support in-application programming (IAP) of Flash memory?
Yes. The device supports IAP via its built-in bootloader accessed through UART or SWIM interface. Firmware can reprogram Flash sectors while executing from other regions, enabling field updates without external programmers. The Flash memory controller includes write-protection bits and option byte configuration to prevent accidental erasure.
What is the maximum operating temperature range for STM8S103F2M6TR?
The STM8S103F2M6TR is specified for industrial temperature range: –40 °C to +85 °C ambient. All electrical characteristics - including Flash retention, ADC accuracy, and clock stability - are guaranteed across this range per DS6120 Rev 15, Section 10.3.
Can the internal 16 MHz RC oscillator be calibrated for improved accuracy?
Yes. The internal 16 MHz RC oscillator features user-trimmable calibration via the CLK_HSICALR register (address 0x50C2). Calibration adjusts frequency in ±1% steps using an external reference clock or known timing source, achieving ±2% accuracy over temperature and voltage - sufficient for UART communication at 115.2 kbps.
Is SWIM debugging supported on STM8S103F2M6TR without additional hardware?
Yes. SWIM (Single-Wire Interface Module) requires only one dedicated pin (PD5) and a standard ST-LINK/V2 or compatible debugger. No external pull-ups, level shifters, or auxiliary signals are needed - enabling full flash programming, breakpoint setting, and register inspection using a single PCB trace.
STM8S103F2M6TR Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 20-SOIC (0.295", 7.50mm Width)
- Series:
- STM8S
- 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, 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:
STM8S103F2M6TR FAQ
1.How can I place an order for STM8S103F2M6TR through Aetrix?
Please submit a Request for Quotation (RFQ) for STM8S103F2M6TR 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 STM8S103F2M6TR reliable?
The price and inventory of STM8S103F2M6TR are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM8S103F2M6TR is usually 5 days.
3.What payment methods are accepted for STM8S103F2M6TR?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM8S103F2M6TR transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM8S103F2M6TR?
STM8S103F2M6TR orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM8S103F2M6TR 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 STM8S103F2M6TR?
For technical support, including STM8S103F2M6TR datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM8S103F2M6TR requirements.
6.How does Aetrix verify that STM8S103F2M6TR is sourced from the original manufacturer or authorized distributors?
All STM8S103F2M6TR 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 STM8S103F2M6TR meets industry standards.
7.What is the process for return or replacement of STM8S103F2M6TR?
All STM8S103F2M6TR units undergo pre-shipment inspection (PSI). If there is an issue with STM8S103F2M6TR, 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 STM8S103F2M6TR part is unused and in its original packaging.
Return procedure for STM8S103F2M6TR:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM8S103F2M6TR 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…

