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

- Shipping:

Inventory:767
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM8S903F3M6 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 operation down to 2.95 V. It targets cost-sensitive industrial control and sensor interface applications requiring robust I/O and deterministic real-time response.
For engineers reviewing the STM8S903F3M6 datasheet, STM8S903F3M6 pinout, STM8S903F3M6 application, or STM8S903F3M6 equivalent, key selection considerations include its 20-pin TSSOP/SO/UFQFPN package options, 16 MHz max CPU frequency at 5.5 V, 300 kcycle EEPROM endurance, nested interrupt controller with 32 vectors, and hardware debug support via SWIM interface.
Technical Context
The STM8S903F3M6 implements a Harvard-architecture 8-bit core with 3-stage pipeline and extended instruction set, enabling efficient code density and deterministic execution timing. Its clock system includes four independent sources: external crystal, external clock, user-trimmable 16 MHz RC, and low-power 128 kHz RC - all managed by a clock security system with monitor.
Interrupt handling uses a nested controller supporting up to 28 external interrupts across 7 vectors, with priority programmability. Peripheral integration includes TIM1 (16-bit advanced timer with dead-time insertion), TIM5 (16-bit general-purpose), TIM6 (8-bit basic), and auto-wakeup timer - enabling precise motor control, PWM generation, and periodic wake-up from low-power modes.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core Architecture | STM8 8-bit Harvard core with 3-stage pipeline; enables deterministic 1-cycle instruction execution for real-time control loops. |
| Max Clock Frequency | 16 MHz at 5.5 V supply; supports time-critical tasks like 100 kHz PWM generation with 16-bit resolution. |
| Flash Memory | 8 Kbytes Flash with 20-year data retention at 55 °C after 10 kcycles; sufficient for firmware with bootloader and field-upgrade capability. |
| Data EEPROM | 640 bytes true EEPROM with 300 kcycle endurance; stores calibration data, device configuration, or usage counters without external NV memory. |
| ADC Resolution & Channels | 10-bit SAR ADC with ±1 LSB INL, 7 external + 1 internal channel; supports simultaneous sampling of temperature, voltage, and current sensors. |
| I/O Count & Type | Up to 16 I/Os in TSSOP20 package, including 13 high-sink outputs (20 mA); drives LEDs, relays, and logic-level MOSFETs directly. |
| Supply Voltage Range | 2.95 V to 5.5 V; operates across industrial battery (3.3 V LiFePO₄) and legacy 5 V rail systems without level-shifting. |
Pinout & Package
STM8S903F3M6 is available in TSSOP20 (4.4 mm body), SO20 (300 mil), and UFQFPN20 (3 × 3 mm) packages. All variants share identical pin functions and electrical characteristics; mechanical differences affect thermal performance and PCB assembly compatibility.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Power supply input | Primary 2.95–5.5 V supply; requires local 100 nF ceramic decoupling adjacent to pin. |
| VSS | Ground reference | Digital ground return; must be connected to low-impedance PCB plane for noise immunity. |
| NRST | Active-low reset input | Asynchronous reset with internal pull-up; accepts external push-button or supervisor IC assertion. |
| SWIM | Single-wire debug interface | Enables programming and real-time debugging using ST-LINK/V2; no dedicated UART pins required. |
| PA0–PA7 | Programmable GPIO / alternate functions | Support UART TX/RX, SPI SCK/MOSI/MISO, I²C SCL/SDA, ADC inputs, and timer capture/compare. |
| PC0–PC3 | Programmable GPIO / alternate functions | Include TIM1 complementary outputs, UART CTS/RTS, and additional ADC channels. |
Key Features
| Feature | Design Value |
|---|---|
| Low-power clock sources | Integrated 128 kHz RC oscillator enables sub-1 µA halt-mode operation with wake-up on external event or timer expiry. |
| Hardware debug interface | SWIM single-wire interface supports full-speed flash programming, breakpoint setting, and register inspection without dedicated JTAG pins. |
| Robust I/O structure | 21 high-sink I/Os (20 mA) tolerate 5 V input while powered from 3.3 V; eliminates need for external level translators in mixed-voltage systems. |
| EEPROM endurance | 640 bytes of true data EEPROM rated for 300,000 write/erase cycles; suitable for logging infrequent parameter changes over 10+ years. |
| ADC analog watchdog | Configurable threshold monitoring on any ADC channel triggers interrupt or DMA transfer without CPU intervention. |
Applications
| Industrial Sensor Node | Smart Meter Interface |
|---|---|
Use Scenario: Standalone temperature/humidity node with RS-485 backhaul and local LED status indication. IC Role / Device Role / Timing Role: Main controller executing sensor polling, CRC-16 checksum calculation, UART framing, and LED blink timing via TIM6. Use Value: Integrated UART with clock output supports synchronous RS-485 transceiver timing; 640-byte EEPROM stores calibration offsets and last-reported values across power cycles. |
Use Scenario: Pulse-counting interface between mechanical utility meter and wireless module. IC Role / Device Role / Timing Role: Edge-triggered counter capturing meter reed-switch pulses; UART forwards counts to LoRaWAN concentrator every 15 minutes. Use Value: 28 external interrupt vectors allow concurrent handling of pulse input, UART RX, and watchdog timeout; 16 MHz core ensures sub-millisecond response to meter events. |
| Home Appliance Control | Motorized Valve Actuator |
Use Scenario: Washing machine mainboard managing water level sensing, heater control, and user interface buttons. IC Role / Device Role / Timing Role: Real-time coordinator reading ADC-based pressure sensor, driving TRIAC via opto-isolator, and scanning keypad matrix. Use Value: 10-bit ADC with internal reference enables accurate tank fill-level measurement; high-sink I/Os directly drive indicator LEDs and buzzer without external drivers. |
Use Scenario: HVAC zone valve with position feedback, thermal cutoff, and Modbus RTU communication. IC Role / Device Role / Timing Role: Closed-loop controller using TIM1 complementary outputs to generate dead-time-controlled H-bridge gate signals for bidirectional DC motor. Use Value: TIM1's hardware dead-time insertion prevents shoot-through during direction reversal; integrated UART handles Modbus slave addressing and error reporting. |
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 footprint and core, but only 1 Kbyte RAM and no hardware debug (SWIM disabled); 5 Kbytes Flash. | Lacks SWIM debug interface and has reduced RAM - unsuitable for applications requiring runtime variable storage or iterative firmware development. | Select when cost is primary constraint and debug access is unnecessary in production units. |
| EFM8BB10F8G-A-QFN20 | Silicon Labs 8051 core, 8 Kbytes Flash, 512 bytes RAM, 12-bit ADC, but no integrated EEPROM; requires external I²C EEPROM for nonvolatile storage. | Higher ADC resolution but lacks on-chip EEPROM - increases BOM count and PCB area for data logging use cases. | Prefer when higher analog precision is critical and external NV memory is acceptable. |
Compared with STM8S003F3P6, STM8S903F3M6 provides verified SWIM debug and larger RAM for complex state machines; versus EFM8BB10F8G-A-QFN20, it delivers integrated EEPROM and lower system-level power in sleep modes, reducing component count for embedded sensor nodes.
Availability
STM8S903F3M6 is available at Aetrix Electronics and suitable for industrial sensor nodes, smart meter interfaces, home appliance control, and motorized valve actuators requiring stable component supply across multi-year production cycles.
Supply support for STM8S903F3M6 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 was developed specifically for cost-sensitive, resource-constrained embedded applications demanding high reliability, low power, and seamless toolchain integration - targeting industrial control, appliance, and IoT edge nodes.
FAQ
What is the maximum operating frequency of the STM8S903F3M6?
The STM8S903F3M6 achieves a maximum CPU frequency of 16 MHz when supplied at 5.5 V. At 3.3 V, the guaranteed maximum is 12 MHz per electrical characteristics Table 21. This frequency governs all peripheral timers, ADC conversion rates, and communication interface baud rates - for example, SPI can operate up to 8 Mbit/s only when fCPU ≥ 16 MHz.
Does the STM8S903F3M6 support in-circuit debugging?
Yes, the STM8S903F3M6 includes a Single-Wire Interface Module (SWIM) that enables full in-circuit debugging and programming using ST-LINK/V2 or compatible debuggers. SWIM provides non-intrusive breakpoints, register inspection, and flash memory read/write without requiring dedicated debug pins beyond the SWIM pin itself.
How many I/O pins are available in the TSSOP20 package?
The STM8S903F3M6 in TSSOP20 provides 16 general-purpose I/O pins: PA0–PA7 (8 pins), PC0–PC3 (4 pins), and PB4–PB7 (4 pins). All support configurable pull-ups/pull-downs, interrupt-on-change, and multiple alternate functions including UART, SPI, I²C, and ADC inputs.
What is the endurance rating of the integrated EEPROM?
The STM8S903F3M6 features 640 bytes of true data EEPROM rated for 300,000 write/erase cycles and 20-year data retention at 55 °C. This specification is validated per ST's qualification testing and applies under standard operating conditions - making it suitable for storing calibration coefficients, device serial numbers, or usage counters in field-deployed equipment.
STM8S903F3M6 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 ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM8S903F3M6 FAQ
1.How can I place an order for STM8S903F3M6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM8S903F3M6 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 STM8S903F3M6 reliable?
The price and inventory of STM8S903F3M6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM8S903F3M6 is usually 5 days.
3.What payment methods are accepted for STM8S903F3M6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM8S903F3M6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM8S903F3M6?
STM8S903F3M6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM8S903F3M6 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 STM8S903F3M6?
For technical support, including STM8S903F3M6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM8S903F3M6 requirements.
6.How does Aetrix verify that STM8S903F3M6 is sourced from the original manufacturer or authorized distributors?
All STM8S903F3M6 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 STM8S903F3M6 meets industry standards.
7.What is the process for return or replacement of STM8S903F3M6?
All STM8S903F3M6 units undergo pre-shipment inspection (PSI). If there is an issue with STM8S903F3M6, 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 STM8S903F3M6 part is unused and in its original packaging.
Return procedure for STM8S903F3M6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM8S903F3M6 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…

