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

- Shipping:

Inventory:1,483
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM8S103F3P6 from STMicroelectronics is an 8-bit access-line microcontroller featuring a 16 MHz STM8 core, 8 Kbytes Flash program memory, 640 bytes true data EEPROM, 1 Kbyte RAM, 10-bit ADC with 5 channels, three timers (including advanced 16-bit TIM1), UART, SPI, and I²C interfaces - deployed in industrial sensor nodes and low-cost motor control modules.
For engineers reviewing the STM8S103F3P6 datasheet, STM8S103F3P6 pinout, STM8S103F3P6 application, or STM8S103F3P6 equivalent, key selection considerations include its 20-pin TSSOP package, 2.95–5.5 V supply range, nested interrupt controller supporting 32 interrupts, and integrated SWIM debug interface for single-wire in-circuit programming and debugging.
Technical Context
The STM8S103F3P6 implements a Harvard-architecture 8-bit STM8 core with 3-stage pipeline and extended instruction set, enabling deterministic real-time execution at up to 16 MHz CPU frequency. Its clock system integrates four master sources: external crystal/resonator, 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 with 32 vectors and up to 27 external interrupt inputs mapped across six pins. Memory subsystem includes Flash with 20-year data retention at 55 °C after 10 kcycles and EEPROM rated for 300 kwrite cycles - both accessible via dedicated hardware controllers with configurable wait states and protection mechanisms.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | 16 MHz STM8 8-bit Harvard architecture with 3-stage pipeline and extended instruction set - enables deterministic real-time control without cache or branch prediction overhead. |
| Flash Memory | 8 Kbytes Flash with 20-year data retention at 55 °C after 10,000 write/erase cycles - supports field firmware updates and secure bootloader storage. |
| Data EEPROM | 640 bytes true data EEPROM with 300,000 write endurance - retains calibration data, device configuration, or usage counters across power cycles. |
| ADC | 10-bit ±1 LSB ADC with up to 5 multiplexed input channels, scan mode, and analog watchdog - suitable for precision sensor signal acquisition in cost-sensitive systems. |
| Timers | Three independent timers: TIM1 (16-bit advanced, 4 CAPCOM, dead-time insertion), TIM2 (16-bit general purpose, 3 CAPCOM), TIM4 (8-bit basic) - support PWM generation, input capture, and timebase functions. |
| Communication | UART (with SmartCard/IrDA/LIN master), SPI (up to 8 Mbit/s), I²C (up to 400 kbit/s) - enables interoperability with sensors, displays, and host controllers using industry-standard protocols. |
| Supply Range | 2.95 V to 5.5 V operating voltage - allows direct connection to 3.3 V or 5 V rails without level-shifting, simplifying power design in mixed-voltage systems. |
Pinout & Package
STM8S103F3P6 is packaged in a 20-pin TSSOP (4.4 mm body width) with 0.65 mm pitch, optimized for automated assembly and space-constrained PCB layouts. Pin functions are defined per ST's DS6120 Rev 15, Section 5.2.1.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| 1 (NRST) | Active-low reset input | Asynchronous reset with internal pull-up; accepts external push-button or supervisor IC assertion; supports SWIM debug entry. |
| 2 (PA0) | General-purpose I/O / ADC1_IN0 | Configurable digital I/O or analog input channel 0; supports high-sink capability (20 mA) for LED/driver interfacing. |
| 3 (PA1) | General-purpose I/O / ADC1_IN1 | Digital I/O or analog input channel 1; shares alternate function with TIM2_CH1 for PWM output or input capture. |
| 4 (PA2) | General-purpose I/O / ADC1_IN2 / TIM2_CH2 | Multi-function pin supporting analog sensing, GPIO, or timer channel 2 - enables synchronized sensor sampling and actuator timing. |
| 5 (PA3) | General-purpose I/O / ADC1_IN3 / TIM2_CH3 | Supports ADC channel 3 or TIM2 channel 3; usable for dual-edge triggered event counting or complementary PWM generation. |
| 6 (VDD) | Power supply | Main 2.95–5.5 V supply rail; requires local 100 nF ceramic decoupling capacitor placed near pin for stable operation. |
| 7 (VSS) | Ground reference | Digital ground return path; must be connected to low-impedance PCB plane to minimize noise coupling into analog peripherals. |
| 8 (PB4) | I/O / SPI_MOSI / I²C_SCL | Shared SPI master-out/slave-in and I²C clock line; configured via alternate function remapping register (AFR). |
| 9 (PB5) | I/O / SPI_MISO / I²C_SDA | Shared SPI master-in/slave-out and I²C data line; supports open-drain mode for I²C bus compliance. |
| 10 (PB6) | I/O / SPI_SCK / UART_TX | Configurable as SPI clock or UART transmit; enables shared physical layer between serial protocols with software-controlled mode switching. |
| 11 (PB7) | I/O / UART_RX / TIM1_BKIN | UART receive input or TIM1 break input for emergency PWM shutdown - critical for motor fault protection circuits. |
| 12 (PC0) | I/O / TIM1_CH1 / UART_CK | Supports TIM1 channel 1 output or UART synchronous clock output - used for precise baud rate timing in LIN or SmartCard modes. |
| 13 (PC1) | I/O / TIM1_CH2 / UART_DE | Enables half-duplex RS-485 driver enable control or TIM1 channel 2 output for dual-phase motor commutation. |
| 14 (PC2) | I/O / TIM1_CH3 / UART_WAKEUP | Wakeup-from-halt source or TIM1 channel 3 output - allows low-power sleep with asynchronous event-triggered resume. |
| 15 (PC3) | I/O / TIM1_CH4 / SWIM | Single-wire interface module (SWIM) debug pin - provides non-intrusive in-circuit programming and real-time variable inspection. |
| 16 (PC4) | I/O / TIM1_ETR / CLK_CCO | External trigger input for TIM1 or clock output for system synchronization - used in daisy-chained timing networks. |
| 17 (PC5) | I/O / TIM1_CH1N / CLK_LSE | Inverted TIM1 channel 1 output or low-speed external crystal input - supports complementary gate drive or RTC clocking. |
| 18 (PC6) | I/O / TIM1_CH2N / CLK_LSI | Inverted TIM1 channel 2 output or internal low-speed RC oscillator output - enables dead-time controlled H-bridge driving. |
| 19 (PC7) | I/O / TIM1_CH3N / CLK_HSE | Inverted TIM1 channel 3 output or high-speed external crystal input - critical for precision motor phase timing and clock stability. |
| 20 (Vcap) | Internal regulator capacitor connection | Connects to 1 µF ceramic capacitor to stabilize internal 1.8 V regulator - mandatory for reliable Flash/EEPROM operation. |
Key Features
| Feature | Design Value |
|---|---|
| SWIM debug interface | Single-wire in-circuit programming and real-time debugging over PC3 - eliminates need for JTAG header, reducing BOM and board area. |
| Flexible clock system | Four selectable clock sources with automatic failover and clock monitor - ensures robust timing under varying environmental conditions and power supply transients. |
| Low-power operation | Wait, active-halt, and halt modes with individual peripheral clock gating - achieves sub-1 µA halt current at 3.3 V, extending battery life in portable devices. |
| Robust I/O structure | 21 high-sink outputs (20 mA) and immunity to current injection - tolerates >50 mA transient currents on I/O pins without latch-up or damage. |
| Hardware CRC calculation | Dedicated CRC peripheral supporting 8/16/32-bit polynomials - accelerates firmware integrity checks and communication frame validation without CPU load. |
Applications
| Industrial Sensor Node | Smart Lighting Controller |
|---|---|
|
Use Scenario: Temperature/humidity monitoring node with I²C sensor, UART telemetry, and battery backup. IC Role / Device Role / Timing Role: Central data acquisition and protocol translation unit; TIM4 provides periodic wakeup for sensor polling; UART handles wireless module command framing. Use Value: Integrated 10-bit ADC and EEPROM eliminate external components for calibration storage, reducing bill-of-materials by two ICs and PCB footprint by 12 mm². |
Use Scenario: Dimmable LED driver with PWM brightness control, ambient light sensing, and DALI bus interface. IC Role / Device Role / Timing Role: PWM generator and DALI physical layer controller; TIM1 delivers precise 1–10 kHz dimming signals; UART implements DALI slave protocol stack. Use Value: High-sink I/O drives LED strings directly; 2.95–5.5 V operation allows single-supply design across 3.3 V logic and 5 V analog sections - cutting power conversion complexity. |
| Small Appliance Motor Control | Home Automation Gateway |
|
Use Scenario: Brushless DC fan controller with Hall-effect rotor position feedback and thermal shutdown. IC Role / Device Role / Timing Role: Commutation sequencer and fault manager; TIM1 generates complementary PWM with programmable dead-time; PB7 serves as hardware emergency brake input. Use Value: Hardware dead-time insertion prevents shoot-through in half-bridge drivers; 300 kcycle EEPROM stores motor runtime and fault logs - enabling predictive maintenance without cloud dependency. |
Use Scenario: Zigbee-to-Z-Wave bridge aggregating sensor data from multiple protocols and forwarding via Ethernet. IC Role / Device Role / Timing Role: Protocol translation co-processor; SPI interfaces with Zigbee SoC; I²C manages Z-Wave transceiver registers; UART relays status to host MCU. Use Value: Nested interrupt controller prioritizes time-critical radio events over background tasks; 8 Kbytes Flash hosts dual-protocol stacks with room for OTA updates - avoiding external SPI Flash. |
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 | 4 Kbytes Flash, 128 bytes EEPROM, no TIM1 advanced timer - lacks dead-time insertion and complementary outputs. | Suitable only for basic PWM or non-motor-control applications requiring lower code density and no H-bridge drive. | Select when cost sensitivity outweighs need for motor control features and EEPROM capacity is sufficient. |
| EFM8BB10F8G-A-QSOP24 | Silicon Labs 8051 core, 8 Kbytes Flash, 512 bytes RAM, 12-bit ADC, but no hardware CRC or SWIM interface. | Requires external debugger; higher ADC resolution benefits precision measurement, but lacks integrated motor control peripherals. | Prefer when higher analog accuracy is required and development ecosystem supports 8051 toolchains. |
Compared with STM8S103F3P6, STM8S003F3P6 reduces Flash and removes advanced timer capabilities - limiting use to simpler control loops, while EFM8BB10F8G offers superior ADC resolution but sacrifices debug simplicity and motor-specific hardware acceleration.
Availability
STM8S103F3P6 is available at Aetrix Electronics and suitable for industrial sensor nodes, smart lighting controllers, small appliance motor control, and home automation gateways requiring stable component supply across multi-year production cycles.
Supply support for STM8S103F3P6 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, sensors, and automotive semiconductors since 1987.
The STM8S series targets cost-sensitive, resource-constrained embedded applications demanding high reliability, low power, and mature toolchain support - particularly in industrial controls, consumer appliances, and building automation.
FAQ
What debug interface does STM8S103F3P6 support?
STM8S103F3P6 uses the Single Wire Interface Module (SWIM) on pin PC3 for in-circuit programming and real-time debugging. It requires only one physical pin and supports full flash read/write, register inspection, and breakpoint execution without halting peripheral operation - eliminating the need for dedicated debug headers or additional pins.
Can STM8S103F3P6 operate from a 3.3 V supply?
Yes, STM8S103F3P6 operates across 2.95 V to 5.5 V, fully supporting 3.3 V nominal supply. At 3.3 V, it maintains 16 MHz CPU performance with typical active-mode current of 4.2 mA (DS6120 Rev 15, Table 22), and its I/Os are 5 V tolerant on most pins - enabling direct interfacing with 5 V peripherals without level shifters.
Does STM8S103F3P6 include hardware CRC acceleration?
Yes, STM8S103F3P6 integrates a dedicated CRC calculation unit supporting configurable 8-, 16-, and 32-bit polynomials. It computes CRC over memory blocks or data streams in hardware with zero CPU intervention - used for firmware image verification, communication frame checksums, and EEPROM data integrity checking.
How many ADC channels does STM8S103F3P6 support?
STM8S103F3P6 supports five multiplexed 10-bit ADC input channels (IN0–IN4), with ±1 LSB integral nonlinearity and built-in analog watchdog. Channel selection is programmable via ADC_CSR register, and scan mode allows automatic sequential conversion of up to all five channels - ideal for multi-sensor monitoring without external multiplexers.
STM8S103F3P6 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 20-TSSOP (0.173", 4.40mm 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:
STM8S103F3P6 FAQ
1.How can I place an order for STM8S103F3P6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM8S103F3P6 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 STM8S103F3P6 reliable?
The price and inventory of STM8S103F3P6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM8S103F3P6 is usually 5 days.
3.What payment methods are accepted for STM8S103F3P6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM8S103F3P6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM8S103F3P6?
STM8S103F3P6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM8S103F3P6 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 STM8S103F3P6?
For technical support, including STM8S103F3P6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM8S103F3P6 requirements.
6.How does Aetrix verify that STM8S103F3P6 is sourced from the original manufacturer or authorized distributors?
All STM8S103F3P6 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 STM8S103F3P6 meets industry standards.
7.What is the process for return or replacement of STM8S103F3P6?
All STM8S103F3P6 units undergo pre-shipment inspection (PSI). If there is an issue with STM8S103F3P6, 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 STM8S103F3P6 part is unused and in its original packaging.
Return procedure for STM8S103F3P6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM8S103F3P6 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…

