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

- Shipping:

Inventory:2,735
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM8S903F3M3 from STMicroelectronics is an 8-bit microcontroller featuring a 16 MHz STM8 core, 8 Kbytes Flash, 1 Kbyte RAM, and 640 bytes EEPROM. It integrates a 10-bit ADC with 7 multiplexed channels, UART, SPI, and I²C interfaces, and supports low-power modes including active-halt and halt. It is used in cost-sensitive industrial control panels requiring deterministic real-time response and firmware-upgradable sensor node logic.
For engineers reviewing the STM8S903F3M3 datasheet, STM8S903F3M3 pinout, STM8S903F3M3 application, or STM8S903F3M3 equivalent, key selection considerations include its 20-pin TSSOP/SO/UFQFPN package options, 2.95–5.5 V supply range, 16 MHz max CPU frequency, and integrated SWIM debug interface for in-circuit programming.
Technical Context
The STM8S903F3M3 implements a Harvard-architecture 8-bit core with 3-stage pipeline and extended instruction set, enabling single-cycle execution for most instructions. Its clock system includes four master sources: external crystal, 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 supporting 32 interrupts and up to 28 external vectors across 7 priority levels. Memory subsystem includes true data EEPROM (300 kcycle endurance) and Flash with 20-year data retention at 55 °C after 10 kcycles, managed via dedicated program/erase controllers.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core Architecture | STM8 8-bit Harvard core with 3-stage pipeline; enables deterministic timing and efficient code density for embedded control loops. |
| Max CPU Frequency | 16 MHz at 2.95–5.5 V; supports real-time tasks such as motor commutation timing and sensor sampling at ≤62.5 ns instruction resolution. |
| Flash Memory | 8 Kbytes Flash with 10 kcycle endurance and 20-year data retention at 55 °C; sufficient for bootloader + application firmware in space-constrained designs. |
| Data EEPROM | 640 bytes true data EEPROM with 300 kcycle endurance; retains calibration data, device configuration, or usage counters across power cycles without external NV memory. |
| ADC Resolution | 10-bit SAR ADC with ±1 LSB INL/DNL, 7 multiplexed inputs + 1 internal channel; supports accurate temperature sensing and analog signal monitoring in industrial environments. |
| Communication Interfaces | UART (with LIN/SmartCard/IrDA), SPI (up to 8 Mbit/s), and I²C (up to 400 kbit/s); enables direct connection to sensors, displays, and host controllers without protocol translation. |
| Supply Voltage Range | 2.95 V to 5.5 V; compatible with both 3.3 V and 5 V system rails, simplifying power architecture in mixed-voltage industrial modules. |
Pinout & Package
STM8S903F3M3 is available in TSSOP20 (4.4 mm body), SO20 (300 mil), and UFQFPN20 (3 × 3 mm, 0.5 mm pitch) packages. Pin functions are validated per DS6210 Rev 13 Sections 5.1–5.3 and Table 5.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Power supply | Main 2.95–5.5 V supply rail; requires local 100 nF decoupling near pin for stable core and peripheral operation. |
| VSS | Ground reference | Digital ground return path; must be connected to low-impedance PCB plane to minimize noise coupling into ADC and timers. |
| NRST | Active-low reset input | Asynchronous reset pin with internal pull-up; accepts external push-button or supervisor IC assertion for safe system initialization. |
| PA0–PA7 | Programmable I/O port A | 8-bit bidirectional port with high-sink capability (20 mA per pin); supports alternate functions including UART1_TX, SPI_CLK, and ADC_IN0–IN3. |
| PB0–PB5 | Programmable I/O port B | 6-bit bidirectional port; includes SWIM debug interface (PB4), UART1_RX (PB5), and ADC_IN4–IN6; configurable as open-drain or push-pull. |
| PC0–PC1 | Programmable I/O port C | 2-bit port supporting I²C_SCL (PC0) and I²C_SDA (PC1); includes internal pull-ups and slew-rate control for EMC-compliant bus operation. |
Key Features
| Feature | Design Value |
|---|---|
| SWIM single-wire debug interface | Enables full in-circuit programming and real-time debugging using only one pin (PB4), reducing test point count and PCB routing complexity. |
| Flexible clock sources | Four independent clock options (HSE, HSI, LSI, external clock) with automatic failover and clock monitor; eliminates need for external oscillator in cost-sensitive applications. |
| Low-power modes | Wait, active-halt, and halt modes with individual peripheral clock gating; achieves <1 μA halt current at 3.3 V, extending battery life in portable diagnostics tools. |
| High sink I/O capability | 21 pins support 20 mA sink current; directly drives LEDs, small relays, or optocouplers without external drivers in panel-mounted control units. |
| True data EEPROM | 640 bytes of wear-leveled EEPROM with hardware ECC and 300 kcycle endurance; stores field-updatable calibration coefficients without software wear-leveling overhead. |
Applications
| Industrial Motor Control | Smart Sensor Node |
|---|---|
|
Use Scenario: Compact BLDC fan controller in HVAC systems with thermal feedback and speed regulation. IC Role / Device Role / Timing Role: Executes closed-loop commutation logic, reads temperature via ADC, and communicates speed setpoints over UART to central unit. Use Value: Integrated 16-bit advanced timer (TIM1) with dead-time insertion ensures precise gate drive timing; 20-pin TSSOP fits tight board space. |
Use Scenario: Battery-powered environmental sensor node measuring temperature, humidity, and CO₂ via analog and digital interfaces. IC Role / Device Role / Timing Role: Manages sensor polling, ADC conversion sequencing, data preprocessing, and low-power wake-up scheduling via auto-wakeup timer. Use Value: 640-byte EEPROM stores sensor calibration offsets; active-halt mode draws <1.5 μA, enabling multi-year operation on coin cell. |
| Home Appliance UI Panel | PLC I/O Expansion Module |
|
Use Scenario: Keypad and LED display interface in washing machine control board with button debouncing and LED dimming. IC Role / Device Role / Timing Role: Scans mechanical keypad matrix, drives common-anode LED segments via GPIO, and communicates status to main MCU over I²C. Use Value: 21 high-sink I/Os eliminate external LED drivers; built-in 8-bit basic timer (TIM6) handles PWM dimming without CPU load. |
Use Scenario: DIN-rail mounted digital input module converting 24 V industrial signals to isolated logic-level outputs for PLC backplane. IC Role / Device Role / Timing Role: Conditions opto-isolated inputs, performs debounce filtering, and transmits status via UART to master controller. Use Value: Robust I/O design withstands ±4 kV ESD per IEC 61000-4-2; wide 2.95–5.5 V supply accommodates unregulated 5 V rails from industrial PSUs. |
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 package and core, but only 1 Kbyte Flash and no data EEPROM; lacks ADC internal reference measurement. | Suitable for simpler logic-only tasks (e.g., LED sequencers), not for sensor-based calibration storage or analog monitoring. | Select when firmware size ≤1 Kbyte and EEPROM-free operation is acceptable; avoid if field calibration persistence is required. |
| EFM8BB10F8G-A-QFN20 | Silicon Labs 8051 core, 8 Kbyte Flash, 512 byte RAM, no true EEPROM; includes capacitive touch sensing and higher ADC sample rate (1 Msps). | Better suited for touch-enabled HMI or high-speed pulse capture, but lacks robust EEPROM for long-term parameter retention. | Choose for touch interface integration or faster analog sampling; reject if guaranteed 300 kcycle nonvolatile storage is mandatory. |
Compared with STM8S903F3M3, STM8S003F3P6 trades EEPROM and ADC features for lower cost in fixed-function roles, while EFM8BB10F8G offers enhanced analog performance at the expense of proven industrial EEPROM reliability and ST's ecosystem toolchain support.
Availability
STM8S903F3M3 is available at Aetrix Electronics and suitable for industrial motor control, smart sensor nodes, home appliance UI panels, and PLC I/O expansion modules requiring stable component supply and long-lifecycle availability.
Supply support for STM8S903F3M3 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-optimized, robust 8-bit control applications in industrial automation and appliance control, emphasizing low-power operation, high I/O resilience, and seamless integration with ST's development ecosystem.
FAQ
What debug interface does STM8S903F3M3 support?
The STM8S903F3M3 uses the Single Wire Interface Module (SWIM) for in-circuit debugging and programming. It operates on PB4 (SWIM pin) and requires only one physical connection plus ground. SWIM supports full read/write memory access, breakpoint setting, and real-time variable inspection without halting peripheral operation.
Does STM8S903F3M3 support hardware UART auto-baud detection?
No, the STM8S903F3M3 UART does not implement hardware auto-baud detection. Baud rate is configured via the UARTDIV register using a programmable divisor derived from the APB clock. Synchronization relies on known clock source accuracy and external start-bit timing, requiring fixed or pre-negotiated baud rates in host communication.
Can the internal 16 MHz RC oscillator be calibrated for improved accuracy?
Yes, the internal 16 MHz RC oscillator (HSI) is user-trimmable via the CLK_HSITRIMR register. Trim values range from 0x00 to 0x1F, adjusting frequency in steps of approximately ±0.5% across the full range. Calibration is typically performed once during production using an external reference clock and stored in option bytes or application firmware.
What is the maximum operating temperature for STM8S903F3M3 in industrial grade?
The STM8S903F3M3 is qualified for industrial temperature range: –40 °C to +85 °C. This rating applies to all package variants (TSSOP20, SO20, UFQFPN20) and is verified per JEDEC JESD22-A104 and JESD22-A108 standards. Electrical characteristics in DS6210 Rev 13 Section 10.3 are specified across this full range.
STM8S903F3M3 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:
- 8KB (8K 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 ~ 125°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM8S903F3M3 FAQ
1.How can I place an order for STM8S903F3M3 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM8S903F3M3 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 STM8S903F3M3 reliable?
The price and inventory of STM8S903F3M3 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM8S903F3M3 is usually 5 days.
3.What payment methods are accepted for STM8S903F3M3?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM8S903F3M3 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM8S903F3M3?
STM8S903F3M3 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM8S903F3M3 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 STM8S903F3M3?
For technical support, including STM8S903F3M3 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM8S903F3M3 requirements.
6.How does Aetrix verify that STM8S903F3M3 is sourced from the original manufacturer or authorized distributors?
All STM8S903F3M3 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 STM8S903F3M3 meets industry standards.
7.What is the process for return or replacement of STM8S903F3M3?
All STM8S903F3M3 units undergo pre-shipment inspection (PSI). If there is an issue with STM8S903F3M3, 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 STM8S903F3M3 part is unused and in its original packaging.
Return procedure for STM8S903F3M3:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM8S903F3M3 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…

