STMicroelectronics STM8S903F3P6
- Part No.:
- STM8S903F3P6
- Manufacturer:
- STMicroelectronics
- Category:
- Microcontrollers
- Package:
- 20-TSSOP (0.173", 4.40mm Width)
- Datasheet:
-
STM8S903F3P6.pdf
- Description:
- IC MCU 8BIT 8KB FLASH 20TSSOP
- Quantity:
- Payment:

- Shipping:

Inventory:3,428
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM8S903F3P6 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, I²C, and two 16-bit timers - used in industrial sensor nodes requiring low-power operation and robust I/O.
For engineers reviewing the STM8S903F3P6 datasheet, STM8S903F3P6 pinout, STM8S903F3P6 application, or STM8S903F3P6 equivalent, key selection criteria include its TSSOP20 package, 2.95–5.5 V supply range, 300 kcycle EEPROM endurance, and support for SmartCard/IrDA/LIN master modes via UART.
Technical Context
The STM8S903F3P6 implements a Harvard-architecture STM8 core with 3-stage pipeline and extended instruction set, enabling deterministic real-time execution. Its clock system includes four sources: external crystal, external clock input, 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 32 interrupts and up to 28 external vectors. Power management enables wait, active-halt, and halt modes with individual peripheral clock gating, achieving sub-μA current in halt mode at 3.3 V.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | 16 MHz STM8 8-bit CPU with Harvard architecture and 3-stage pipeline - enables deterministic timing for control loops. |
| Flash Memory | 8 Kbytes Flash with 20-year data retention at 55 °C after 10 kcycles - suitable for field-upgradable firmware in long-lifecycle devices. |
| Data EEPROM | 640 bytes true data EEPROM rated for 300 kwrite cycles - supports reliable parameter storage without external memory. |
| ADC | 10-bit ±1 LSB ADC with 7 multiplexed inputs + 1 internal channel, scan mode, and analog watchdog - enables multi-sensor monitoring with built-in fault detection. |
| Timers | One 16-bit advanced control timer (TIM1) with dead-time insertion, one 16-bit general-purpose timer (TIM5), and one 8-bit basic timer (TIM6) - supports motor control, PWM generation, and periodic wake-up. |
| Supply Voltage | 2.95–5.5 V operating range - allows direct interface with 3.3 V and 5 V logic systems without level-shifting. |
| I/O Count | Up to 16 I/Os in TSSOP20 package, including 13 high-sink outputs - drives LEDs, relays, and digital sensors directly. |
Pinout & Package
STM8S903F3P6 is packaged in a 20-pin TSSOP (4.4 mm body width) with 0.65 mm pitch, optimized for compact industrial PCB layouts and automated assembly.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Power supply | Main 2.95–5.5 V supply rail; decoupled via 100 nF capacitor near pin. |
| VSS | Ground reference | Digital ground return path; requires low-impedance connection to PCB ground plane. |
| NRST | Active-low reset input | Asynchronous reset with internal pull-up; accepts 1.2–5.5 V logic levels and supports external reset button or supervisor IC. |
| PA0–PA7 | Programmable I/O port A | 8-bit bidirectional port with alternate functions including UART1_TX, SPI_CLK, I²C_SCL - configurable as push-pull, open-drain, or high-sink (up to 20 mA sink per pin). |
| PB0–PB5 | Programmable I/O port B | 6-bit bidirectional port supporting TIM1_CH1–CH4, ADC_IN0–IN5, and SWIM debug interface - enables single-wire in-circuit programming and debugging. |
| PC0–PC1 | Programmable I/O port C | 2-bit port with UART1_RX and SPI_MOSI/MISO functions - provides full-duplex serial communication capability in minimal pin count. |
Key Features
| Feature | Design Value |
|---|---|
| Single-Wire Interface Module (SWIM) | Enables full in-circuit debugging and programming using only one pin (PB4), reducing test point count and board space. |
| High-Sink I/O Capability | 21 pins support up to 20 mA sink current - directly drives LEDs, small solenoids, or optocouplers without external drivers. |
| Flexible Clock Sources | Four independent clock options (HSE, HSI, LSI, external clock) with automatic failover and clock security monitoring - ensures reliable operation in noisy environments. |
| Low-Power Modes | Wait, active-halt, and halt modes with sub-1 μA current consumption at 3.3 V - extends battery life in portable sensor applications. |
| Integrated Analog Peripherals | 10-bit ADC with internal reference measurement and analog watchdog - eliminates need for external voltage reference or comparator circuits. |
Applications
| Industrial Sensor Node | Smart Metering Interface |
|---|---|
Use Scenario: Standalone temperature/humidity sensor node with RS-485 backhaul and local LED status indication. IC Role / Device Role / Timing Role: Main system controller managing ADC sampling, UART-to-RS485 translation, and LED blink patterns via TIM6. Use Value: High-sink I/O drives LEDs directly; 640-byte EEPROM stores calibration coefficients; low-power modes extend 10-year battery life. |
Use Scenario: Pulse-counting interface between mechanical utility meter and wireless communication module. IC Role / Device Role / Timing Role: Edge-triggered counter using PB0 as external interrupt input, with UART forwarding pulse counts to LoRaWAN gateway. Use Value: 28 external interrupt vectors enable precise event capture; 16 MHz core handles burst data processing without jitter. |
| Home Appliance Control | Automotive Body Controller |
Use Scenario: Washing machine mainboard controlling motor driver, water valve, and user interface panel. IC Role / Device Role / Timing Role: System orchestrator running state machine, generating PWM for BLDC motor via TIM1, and scanning keypad matrix. Use Value: TIM1's dead-time insertion prevents shoot-through in half-bridge drivers; 8 Kbyte Flash accommodates safety-certified firmware. |
Use Scenario: Door module managing window lift, mirror adjustment, and interior lighting with LIN bus communication. IC Role / Device Role / Timing Role: LIN master node using UART in LIN mode to coordinate slave ECUs; ADC monitors potentiometer position feedback. Use Value: Integrated LIN master mode eliminates external transceiver; 10-bit ADC resolution meets automotive position-sensing requirements. |
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 1 Kbyte RAM and no auto-wakeup timer. | Limited to simpler control tasks without background ADC scanning or complex state machines. | Select when cost sensitivity outweighs need for extended RAM or wakeup timer functionality. |
| STM8L051F3P6 | Ultra-low-power variant with 3.6 μA active-halt current (vs. 1.2 μA for STM8S903F3P6), but reduced max clock speed (12 MHz) and no LIN mode. | Better suited for coin-cell-powered devices; lacks UART LIN master capability required for automotive body networks. | Choose for battery-operated IoT endpoints where LIN is not needed and power budget is tighter than 10 μA. |
Compared with STM8S003F3P6, STM8S903F3P6 adds 1 Kbyte RAM and auto-wakeup timer for richer firmware; compared with STM8L051F3P6, it trades higher active current for LIN support and faster 16 MHz operation - making it optimal for wired industrial and automotive subsystems.
Availability
STM8S903F3P6 is available at Aetrix Electronics and suitable for industrial sensor nodes, smart metering interfaces, and home appliance control systems requiring stable component supply and long-term production continuity.
Supply support for STM8S903F3P6 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, and analog/mixed-signal devices for industrial, automotive, and consumer markets.
The STM8S series targets cost-sensitive, high-reliability embedded control applications - emphasizing robust I/O, integrated peripherals, and toolchain maturity for rapid development of deterministic real-time systems.
FAQ
Does STM8S903F3P6 support in-circuit debugging?
Yes, it features a Single-Wire Interface Module (SWIM) on PB4 that enables full in-circuit programming and debugging using ST-LINK/V2 or compatible tools. No additional debug header or JTAG pins are required - the interface operates at standard VDD voltage levels and supports breakpoint setting, register inspection, and flash memory read/write during runtime.
What is the maximum operating frequency at 3.3 V supply?
At 3.3 V, the STM8S903F3P6 supports a maximum CPU frequency of 16 MHz when using the internal 16 MHz RC oscillator (trimmed) or an external clock source. The fCPUmax vs. VDD curve in Section 10.3.1 confirms full 16 MHz operation down to 2.95 V, ensuring timing margin across the entire specified voltage range.
Can the ADC measure internal reference voltage?
Yes, the 10-bit ADC includes a dedicated internal channel for measuring the internal reference voltage (VREFINT), which is factory-calibrated and accessible via ADC_IN17. This enables software-based VDD estimation without external components, supporting supply monitoring and brown-out detection in battery-powered designs.
Is there hardware support for LIN bus communication?
Yes, the integrated UART1 peripheral supports LIN 2.2 master mode with automatic sync-break generation, checksum calculation, and identifier filtering - eliminating need for external LIN transceivers in simple master-node implementations such as automotive door modules or seat controllers.
STM8S903F3P6 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 20-TSSOP (0.173", 4.40mm Width)
- Series:
- STM8S
- Packaging:
- Tray
- 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:
STM8S903F3P6 FAQ
1.How can I place an order for STM8S903F3P6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM8S903F3P6 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 STM8S903F3P6 reliable?
The price and inventory of STM8S903F3P6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM8S903F3P6 is usually 5 days.
3.What payment methods are accepted for STM8S903F3P6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM8S903F3P6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM8S903F3P6?
STM8S903F3P6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM8S903F3P6 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 STM8S903F3P6?
For technical support, including STM8S903F3P6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM8S903F3P6 requirements.
6.How does Aetrix verify that STM8S903F3P6 is sourced from the original manufacturer or authorized distributors?
All STM8S903F3P6 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 STM8S903F3P6 meets industry standards.
7.What is the process for return or replacement of STM8S903F3P6?
All STM8S903F3P6 units undergo pre-shipment inspection (PSI). If there is an issue with STM8S903F3P6, 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 STM8S903F3P6 part is unused and in its original packaging.
Return procedure for STM8S903F3P6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM8S903F3P6 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…

