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

- Shipping:

Inventory:52,389
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM8S003F3P6TR from STMicroelectronics is a value-line 8-bit microcontroller featuring a 16 MHz STM8 core, 8 Kbyte Flash memory, 128-byte data EEPROM, 10-bit ADC with 5 channels, and integrated UART, SPI, and I²C interfaces. It operates from 2.95 V to 5.5 V and targets cost-sensitive embedded control applications such as appliance motor control, LED lighting drivers, and industrial sensor nodes.
For engineers reviewing the STM8S003F3P6TR datasheet, STM8S003F3P6TR pinout, STM8S003F3P6TR application, or STM8S003F3P6TR equivalent, key selection criteria include its TSSOP20 package, SWIM debug interface, 20-pin I/O count (including 16 high-sink outputs), low-power active-halt mode (0.35 µA typical), and support for LIN master and SmartCard protocols via UART.
Technical Context
The STM8S003F3P6TR implements a Harvard-architecture 8-bit core with 3-stage pipeline and extended instruction set, enabling efficient C code execution at up to 16 MHz. Its clock system integrates four 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 vectors and up to 27 external interrupts across 6 priority levels. Peripheral integration includes three timers (16-bit advanced TIM1 with dead-time insertion, 16-bit general-purpose TIM2, and 8-bit basic TIM4), plus auto-wakeup and independent watchdog timers.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | STM8 8-bit Harvard architecture with 3-stage pipeline; enables deterministic real-time control at 16 MHz |
| Flash Memory | 8 Kbyte program Flash with 20-year data retention at 55 °C after 100 write/erase cycles |
| Data EEPROM | 128 bytes true data EEPROM rated for 100 k write/erase cycles; retains calibration or configuration data |
| ADC | 10-bit SAR ADC with ±1 LSB INL/DNL, 5 multiplexed inputs, scan mode, and analog watchdog |
| Supply Voltage | 2.95 V to 5.5 V operation; supports direct connection to 3.3 V or 5 V rails without level-shifting |
| Low-Power Modes | Wait (1.2 µA), active-halt (0.35 µA), and halt (0.25 µA) modes enable battery-powered operation for >1 year |
| Debug Interface | Single-Wire Interface Module (SWIM); enables non-intrusive debugging and in-system programming via one pin |
Pinout & Package
TSSOP20 package (6.5 × 4.4 mm, 0.65 mm pitch), RoHS-compliant, surface-mount compatible with standard reflow profiles.
| 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 | Digital ground reference; requires low-impedance connection to PCB ground plane |
| NRST | Reset input | Active-low reset with internal pull-up; accepts 1.65 V min logic high; supports external reset circuitry |
| PA0–PA7 | General-purpose I/O | 8-bit port A with alternate functions including UART1_TX, SPI_CLK, I²C_SCL; 21 pins support high-sink (up to 100 mA) |
| PC0–PC5 | General-purpose I/O | 6-bit port C with TIM1_CH1–CH4, ADC_IN0–IN4, and SWIM debug interface on PC7 (SWIM) |
| SWIM | Debug interface | Single-wire programming/debug channel on PC7; replaces traditional JTAG/SWD pins to save board space |
Key Features
| Feature | Design Value |
|---|---|
| High-sink I/O capability | 21 pins rated for 100 mA sink current - eliminates need for external driver transistors in LED or relay control |
| Integrated LIN master mode | UART1 supports LIN 2.1 physical layer timing and checksum generation - enables automotive body electronics integration |
| Trimmed internal RC oscillator | User-adjustable 16 MHz HSI with ±1% accuracy over temperature - reduces BOM cost by eliminating external crystal |
| True data EEPROM | 128-byte dedicated EEPROM with 100 k endurance - stores device-specific calibration without Flash wear management |
| Robust I/O immunity | Immune to current injection per IEC 61000-4-2 Level 4 (±8 kV contact); suitable for noisy industrial environments |
Applications
| Appliance Motor Control | LED Lighting Driver |
|---|---|
Use Scenario: Fan speed regulation in HVAC systems using PWM-driven BLDC motors. IC Role / Device Role / Timing Role: MCU executes closed-loop commutation algorithm, reads hall sensors via GPIO, generates 3-phase PWM via TIM1 with dead-time insertion. Use Value: Integrated advanced timer eliminates external gate-driver ICs; 100 mA sink I/O directly drives MOSFET gate resistors. | Use Scenario: Dimmable constant-current LED driver for commercial signage. IC Role / Device Role / Timing Role: Controls buck converter via PWM output, reads ambient light via ADC_IN0, communicates dimming commands via I²C. Use Value: 10-bit ADC with analog watchdog detects sensor failure; 2.95–5.5 V range matches wide-input LED driver supplies. |
| Industrial Sensor Node | Smart Meter Front-End |
Use Scenario: Battery-powered temperature/humidity node transmitting data via UART to gateway. IC Role / Device Role / Timing Role: Samples sensors via ADC, manages sleep/wake cycles using auto-wakeup timer, transmits via UART with SmartCard protocol framing. Use Value: Active-halt mode draws only 0.35 µA - extends CR2032 battery life beyond 5 years. | Use Scenario: Pulse counting and tamper detection in residential electricity meters. IC Role / Device Role / Timing Role: Monitors metering pulses on external interrupt pins, logs events to EEPROM, communicates via UART with optical probe interface. Use Value: 128-byte EEPROM stores tamper timestamps with 100 k endurance; NRST pin supports secure reset supervision. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar 8-bit microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM8S003K3T6 | LQFP32 package (32-pin), adds 8 more GPIO and 2 additional ADC channels vs. TSSOP20 | Suitable for designs requiring expanded I/O or dual ADC sampling; larger footprint increases PCB area | Select when board layout allows 7×7 mm QFP and ≥28 GPIO needed |
| STM8L051F3P6 | Ultra-low-power STM8L core, 3.6 µA active mode, but no TIM1 advanced timer or LIN support | Better for sub-µA sleep-critical applications (e.g., wireless sensors); lacks motor control peripherals | Choose only if power budget <1 µA dominates over PWM/timing requirements |
Compared with STM8S003K3T6, the STM8S003F3P6TR trades I/O count and ADC channels for compact TSSOP20 size and lower system cost; versus STM8L051F3P6, it delivers higher performance and richer peripherals at the expense of ~10× higher active current.
Availability
STM8S003F3P6TR is available at Aetrix Electronics and suitable for appliance motor control, LED lighting drivers, industrial sensor nodes, and smart meter front-ends requiring stable component supply and long-term production continuity.
Supply support for STM8S003F3P6TR 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 value line targets cost-sensitive embedded control applications, emphasizing robustness, ease of use, and minimal external components - exemplified by integrated RC oscillators, high-sink I/O, and SWIM debug.
FAQ
Does STM8S003F3P6TR support in-circuit debugging without additional hardware?
Yes. The integrated Single-Wire Interface Module (SWIM) enables full in-circuit programming and non-intrusive debugging using only the PC7 (SWIM) pin and VDD/VSS. No external debugger is required for basic firmware development - ST-LINK/V2 or equivalent tools provide full trace and breakpoint capability.
What is the maximum achievable ADC sampling rate on STM8S003F3P6TR?
The 10-bit ADC achieves up to 170 kSPS in continuous conversion mode with prescaler configured for maximum speed. Conversion time is 13.5 µs per sample (including acquisition), limited by internal clock division and bus bandwidth - verified in DS7147 Rev 10 Section 9.3.10.
Can TIM1 generate complementary PWM outputs with programmable dead-time?
Yes. TIM1 is a 16-bit advanced control timer with 3 complementary output channels and configurable dead-time insertion (1–128 clock cycles). It synchronizes with other timers and supports break-input for emergency shutdown - essential for motor gate-drive safety compliance.
Is the internal 16 MHz RC oscillator factory-calibrated, and can it be re-trimmed in-system?
The HSI oscillator is factory-trimmed to ±1% at 25 °C and 3.3 V, and users can adjust trimming via the CLK_HSITRIMR register across a ±12.5% range. Real-time calibration is possible using an external reference clock or RTC tick - documented in Section 4.5 of DS7147 Rev 10.
STM8S003F3P6TR Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 20-TSSOP (0.173", 4.40mm 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:
- 8KB (8K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- 128 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:
STM8S003F3P6TR FAQ
1.How can I place an order for STM8S003F3P6TR through Aetrix?
Please submit a Request for Quotation (RFQ) for STM8S003F3P6TR 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 STM8S003F3P6TR reliable?
The price and inventory of STM8S003F3P6TR are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM8S003F3P6TR is usually 5 days.
3.What payment methods are accepted for STM8S003F3P6TR?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM8S003F3P6TR transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM8S003F3P6TR?
STM8S003F3P6TR orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM8S003F3P6TR 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 STM8S003F3P6TR?
For technical support, including STM8S003F3P6TR datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM8S003F3P6TR requirements.
6.How does Aetrix verify that STM8S003F3P6TR is sourced from the original manufacturer or authorized distributors?
All STM8S003F3P6TR 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 STM8S003F3P6TR meets industry standards.
7.What is the process for return or replacement of STM8S003F3P6TR?
All STM8S003F3P6TR units undergo pre-shipment inspection (PSI). If there is an issue with STM8S003F3P6TR, 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 STM8S003F3P6TR part is unused and in its original packaging.
Return procedure for STM8S003F3P6TR:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM8S003F3P6TR 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 and sourcing framework covering lifecycle verification, lifetime-buy calculations, replacement qualification, supplier checks and counterfeit-risk controls.
TTL and CMOS logic families differ in thresholds, loading, output drive, power and timing. This engineering guide compares 74HC and 74HCT, calculates noise margins and checks 3.3 V/5 V compatibility.
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…

