Contact Us

STM8S003F3P6

Brand: ST
The STM8S003F3P6 belongs to ST's STM8S Value Line — the most cost-aggressive 8-bit MCU family ST has ever produced. Designed to compete at sub-$0.30 price points in high volume, the S003 delivers genuine STM8 core performance with hardware PWM, multi-channel ADC, and UART/SPI/I²C communication — all in a tiny TSSOP-20 footprint that demands minimal PCB real estate. In the drone ecosystem, the STM8S003F3P6 achieved legendary status as the default MCU for BLHeli_S ESCs. The BLHeli_S open-source ESC firmware was specifically written for the STM8S platform, leveraging the advanced 16-bit timer's complementary PWM outputs with automatic dead-time insertion to drive N-channel MOSFET half-bridges at up to 48 kHz PWM frequency. This enables ultra-smooth motor commutation with DShot, Multishot, and Oneshot protocols — making the STM8S003 the invisible engine behind every high-performance FPV racing drone's motor response. Beyond ESCs, it serves in BMS monitoring nodes (cell voltage ADC scanning, I²C communication to the main FC), PDB current-sense controllers, and addressable LED strip drivers.
quote now

Product Specifications

STM8S003F3P6 — 8-Bit STM8 Value Line MCU for BLHeli_S ESCs and Drone Peripherals by STMicroelectronics

The STM8S003F3P6 is STMicroelectronics' cost-optimized 8-bit STM8 core microcontroller, running at 16 MHz with 8 KB Flash and 1 KB SRAM. Packaged in a compact TSSOP-20, it is the undisputed king of BLHeli_S drone ESC firmware — powering millions of brushless motor controllers in FPV racing drones, cinewhoops, and micro-quadcopters worldwide. With 3× 16-bit timers (including advanced PWM with complementary outputs), a 5-channel 10-bit ADC, and UART/SPI/I²C interfaces operating from a single 2.95–5.5V supply, the STM8S003F3P6 delivers unmatched cost-per-ESC performance for the drone industry.

Part Number Decoded — Field by Field

FieldValueMeaning
STM8Product FamilySTMicroelectronics 8-bit MCU — STM8 proprietary core
SProduct TypeStandard — mainstream general-purpose series (2.95–5.5V)
003Sub-FamilyValue Line — cost-optimized, entry-level 8-bit MCU
FPin Count20 pins (TSSOP-20)
3Flash Size8 KB
PPackageTSSOP (Thin-Shrink Small Outline Package)
6Temperature Range−40°C to +85°C (industrial)

Quick Specifications

ParameterValue
ManufacturerSTMicroelectronics
Part NumberSTM8S003F3P6
CoreSTM8 (8-bit proprietary, Harvard architecture, 3-stage pipeline)
Max Clock16 MHz (internal RC or external crystal)
Flash8 KB (with read-while-write capability)
SRAM1 KB
EEPROM128 bytes (true data EEPROM, 300K write cycles)
PackageTSSOP-20 (6.5×4.4 mm, 0.65 mm pitch)
Supply Voltage2.95V – 5.5V
Operating Temperature−40°C to +85°C
GPIO16 (5V-tolerant, up to 20 mA sink/source)
ADC1× 10-bit, 5 channels
Timers3× 16-bit: 1× advanced (PWM + complementary + dead-time), 2× general-purpose
Communication1× UART, 1× SPI (8 Mbit/s), 1× I²C (400 kHz)
DebugSWIM (Single Wire Interface Module)
Power Consumption~4.6 mA (run @ 16 MHz), ~2 µA (halt)

Product Overview

The STM8S003F3P6 belongs to ST's STM8S Value Line — the most cost-aggressive 8-bit MCU family ST has ever produced. Designed to compete at sub-$0.30 price points in high volume, the S003 delivers genuine STM8 core performance with hardware PWM, multi-channel ADC, and UART/SPI/I²C communication — all in a tiny TSSOP-20 footprint that demands minimal PCB real estate.

In the drone ecosystem, the STM8S003F3P6 achieved legendary status as the default MCU for BLHeli_S ESCs. The BLHeli_S open-source ESC firmware was specifically written for the STM8S platform, leveraging the advanced 16-bit timer's complementary PWM outputs with automatic dead-time insertion to drive N-channel MOSFET half-bridges at up to 48 kHz PWM frequency. This enables ultra-smooth motor commutation with DShot, Multishot, and Oneshot protocols — making the STM8S003 the invisible engine behind every high-performance FPV racing drone's motor response. Beyond ESCs, it serves in BMS monitoring nodes (cell voltage ADC scanning, I²C communication to the main FC), PDB current-sense controllers, and addressable LED strip drivers.

Key Features & Benefits

16 MHz STM8 Core with Hardware PWM — BLHeli_S Native Platform

The STM8 core's deterministic 3-stage pipeline (fetch-decode-execute) at 16 MHz delivers 16 MIPS peak — sufficient for the tight timing loops required by BLHeli_S motor commutation. The advanced 16-bit timer provides complementary PWM outputs with programmable dead-time insertion (critical for preventing MOSFET shoot-through in half-bridge ESC topologies) and supports center-aligned PWM up to 48 kHz for smooth sinusoidal motor drive.

8 KB Flash + 1 KB SRAM — Perfectly Sized for BLHeli_S Firmware

The BLHeli_S ESC firmware compiles to approximately 5–7 KB — fitting comfortably within the STM8S003's 8 KB Flash with room for bootloader and configuration EEPROM emulation. The 1 KB SRAM handles runtime variables, commutation state machine, and DShot telemetry packet assembly without external memory. The 128-byte true EEPROM stores ESC settings (timing, demag compensation, beacon strength) with 300,000 guaranteed write cycles.

5V-Tolerant GPIO — No Level Shifters to Drive MOSFET Gate Drivers

All 16 GPIO pins are 5V-tolerant with up to 20 mA sink/source — directly interfacing with 5V MOSFET gate driver ICs (FD6288, IR2101, etc.) without external level-shifting components. This reduces BOM count by 3–5 components per ESC and improves signal integrity in the high-noise environment of a switching motor controller.

2.95–5.5V Single-Supply Operation — Direct LiPo Power Monitoring

The wide operating voltage range enables the STM8S003 to be powered directly from a 2S–4S LiPo battery (7.4–16.8V) through a simple LDO regulator (e.g., L78L05) — or even a 1S LiPo (3.7V) with a diode drop. The 10-bit ADC monitors battery voltage and motor phase current for BEMF zero-crossing detection with 4.9 mV resolution at 5V reference.

SWIM Single-Wire Debug — Minimal Pin Overhead for In-Circuit Programming

The SWIM (Single Wire Interface Module) requires only one pin (SWIM) plus GND for full debugging and Flash programming — leaving 14 GPIO pins available for the application after reserving SWIM, NRST, and VCAP. This is critical for TSSOP-20 where every pin counts in an ESC layout.

Target Applications

BLHeli_S Brushless ESC (Drone Motor Controller)

The primary application. The STM8S003F3P6 is the reference MCU for BLHeli_S, driving 3-phase brushless DC motors in FPV racing drones, cinewhoops, and micro-quadcopters. The advanced timer's complementary PWM generates 6 gate-drive signals for the 3-phase inverter, while the ADC samples motor phase BEMF at up to 12-bit equivalent accuracy. Supports DShot 300/600/1200, Multishot, Oneshot125/42, and standard PWM protocols.

Battery Management System (BMS) Monitor

In drone BMS applications, the STM8S003 scans individual cell voltages via its 5-channel 10-bit ADC through an external multiplexer, monitors pack current through a shunt amplifier, and communicates SOC (State of Charge) data to the flight controller via I²C or UART. The 128-byte EEPROM stores calibration constants and cycle-count history.

Power Distribution Board (PDB) Current Sensor Controller

Serves as an intelligent PDB controller measuring ESC current draw, battery voltage, and 5V/12V regulator output status. Communicates real-time power telemetry (voltage, current, consumed mAh) to the flight controller via a single UART connection — providing the data that Betaflight and iNav display as OSD overlay elements.

Addressable LED Strip Controller (WS2812B / SK6812)

Using a bit-banged SPI or timer-driven output, the STM8S003 drives addressable RGB LED strips (WS2812B, SK6812, APA102) with precise sub-microsecond timing for programmable drone lighting, race gate indicators, and orientation markers — all at a fraction of the cost of a dedicated LED controller IC.

Frequently Asked Questions

Why does BLHeli_S use an 8-bit MCU instead of a 32-bit ARM?

BLHeli_S was originally architected for the Silicon Labs EFM8BB1 (C8051) but was ported to the STM8S because STM8 offered better cost, better availability, and a genuine hardware advanced timer with dead-time insertion. For the ESC control loop — which primarily runs a state machine with ADC-triggered commutation — an 8-bit MCU at 16 MHz is more than sufficient. The BLHeli_S control loop runs at ~10–20 µs per iteration, and the 48 kHz PWM update rate is limited by the power stage, not the MCU. Moving to a 32-bit ARM (BLHeli_32) only becomes necessary for FOC (Field-Oriented Control) algorithms that require floating-point math and faster ADC sampling.

Can the STM8S003F3P6 run DShot telemetry?

Yes. BLHeli_S firmware with DShot telemetry requires precise timing to encode RPM, temperature, and voltage data into the DShot telemetry packet on the bidirectional DShot line. The STM8S003's UART and timer capture/compare units handle this with software bit-banging at the required 5.5 µs bit time. DShot 300/600 work reliably; DShot 1200 may encounter marginal timing on some boards due to the 16 MHz ceiling. The single-wire SWIM interface does not interfere with DShot telemetry because the SWIM pin can be repurposed as GPIO in the application.

What's the difference between STM8S003F3P6 and STM8S103F3P6?

The STM8S103F3P6 is an Access Line variant with identical Flash (8 KB) and SRAM (1 KB) but with a larger 640-byte EEPROM (vs. 128 bytes on the S003) and slightly different analog characteristics. Both are pin-compatible in TSSOP-20. The S003 Value Line is the lower-cost variant intended for high-volume cost-sensitive applications like ESCs; the S103 Access Line is positioned for general-purpose embedded use where the larger EEPROM is needed. For BLHeli_S, both work identically since the firmware does not exceed the S003's 128-byte EEPROM.

Can I use the STM8S003 for a 4-in-1 ESC (AIO)?

Yes, but each motor requires its own STM8S003. A 4-in-1 ESC board typically mounts four independent STM8S003F3P6 MCUs plus four 3-phase MOSFET bridges on a single PCB. Each MCU runs its own BLHeli_S firmware instance independently. The four ESCs share a common UART bus for DShot commands from the flight controller using a 1-to-4 signal buffer. Modern 4-in-1 BLHeli_S ESCs using STM8S003 can be found on boards like the Racerstar RS20A, DYS XS30A, and HAKRC 35A — all using four TSSOP-20 STM8S003 chips.

Ordering Information

Orderable Part NumberPackagePackagingTemperature
STM8S003F3P6TSSOP-20 (6.5×4.4 mm, 0.65 mm pitch)Tube−40°C to +85°C
STM8S003F3P6TRTSSOP-20 (6.5×4.4 mm, 0.65 mm pitch)Tape & Reel−40°C to +85°C
STM8S003K3T6CLQFP-32 (7×7 mm, 0.8 mm pitch)Tray−40°C to +85°C

Design Resources

  • Datasheet (DS7147): STM8S003F3 / STM8S003K3 — Value Line 8-bit MCU with 8 KB Flash, 16 MHz CPU, integrated EEPROM. Complete pin definitions, electrical characteristics, and package drawings.

  • Reference Manual (RM0016): STM8S Series — Full register-level documentation covering CPU core, memory organization, clock control, GPIO, timers, ADC, UART/SPI/I²C communication, and SWIM debug interface.

  • BLHeli_S GitHub: bitdump/BLHeli — Open-source BLHeli_S ESC firmware for STM8S (and EFM8BB) microcontrollers. Includes assembly source code, configuration tool, and DShot/Oneshot/Multishot protocol implementations.

  • Application Note AN3258: Getting Started with STM8S — Step-by-step guide covering hardware setup, STVD (ST Visual Develop), STVP (ST Visual Programmer), and basic code examples for STM8S.

  • STM8CubeMX: Graphical pinout and clock configuration tool — though primarily for STM32, basic STM8 pin mux configuration is supported for SWIM debugging and initial project setup.

  • STVD (ST Visual Develop): Free IDE for STM8 development with assembler, C compiler (COSMIC), simulator, and integrated SWIM debugger support. The primary toolchain used by BLHeli_S developers.

  • Application Note AN2737: STM8S in-circuit programming via SWIM — Hardware and software requirements for SWIM-based Flash programming, including SWIM connector pinout and electrical isolation recommendations.

  • STM8S Discovery (STM8S-DISCO): Low-cost evaluation board with STM8S105C6T6 MCU, touch-sensing, LED, and SWIM debugger — suitable for STM8S003 firmware prototyping before porting to TSSOP-20 target.

Request a Quote

SUPERB Automation supplies genuine STMicroelectronics STM8S003F3P6 MCUs with full traceability and batch-level QA documentation. The STM8S003F3P6 — with its legendary status as the BLHeli_S reference platform and sub-$0.30 price point — remains the most cost-effective 8-bit MCU for high-volume drone ESC manufacturing. Whether you need prototype quantities for ESC firmware development or production volumes for drone BMS and PDB controller manufacturing, we source through verified channels with competitive lead times. Contact us with your target quantity, delivery date, and any special packaging or marking requirements — we'll respond with a detailed quotation within 24 hours.