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

- Shipping:

Inventory:870
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM8S103F2P6 from STMicroelectronics is an 8-bit access-line microcontroller featuring a 16 MHz STM8 core, 8 Kbyte Flash program memory, 640 byte data EEPROM, 10-bit ADC with 5 channels, UART/SPI/I²C interfaces, and three timers-including a 16-bit advanced control timer with dead-time insertion. It targets cost-sensitive embedded control in industrial sensors, motor drive supervision, and smart appliance subsystems.
For engineers reviewing the STM8S103F2P6 datasheet, STM8S103F2P6 pinout, STM8S103F2P6 application, or STM8S103F2P6 equivalent, key selection criteria include its 20-pin TSSOP package, 2.95–5.5 V supply range, 300 kcycle EEPROM endurance, nested interrupt controller supporting 32 vectors, and SWIM single-wire debug interface for space-constrained designs.
Technical Context
The STM8S103F2P6 implements a Harvard-architecture STM8 core with 3-stage pipeline and extended instruction set, enabling deterministic real-time execution at up to 16 MHz. Its clock system integrates four independent sources-16 MHz internal RC (user-trimmable), 128 kHz low-power RC, external crystal/resonator, and external clock-with clock security monitoring and per-peripheral clock gating.
Analog and timing subsystems include a 10-bit ±1 LSB ADC with scan mode and analog watchdog, plus three dedicated timers: TIM1 (16-bit advanced, 4 CAPCOM, 3 complementary outputs), TIM2 (16-bit general purpose), and TIM4 (8-bit basic). Communication is supported by full-duplex UART (with LIN/SmartCard/IrDA modes), SPI up to 8 Mbit/s, and I²C up to 400 kbit/s.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | 16 MHz STM8 8-bit Harvard architecture with 3-stage pipeline and extended instruction set - enables deterministic real-time control with low code footprint |
| Flash Memory | 8 Kbyte Flash with 20-year data retention at 55 °C after 10 kcycles - supports field firmware updates and long-life industrial deployment |
| Data EEPROM | 640 byte true data EEPROM, 300 kcycle endurance - provides robust nonvolatile parameter storage without external components |
| ADC | 10-bit ±1 LSB ADC with up to 5 multiplexed inputs, scan mode, and analog watchdog - suitable for precision sensor interfacing in closed-loop systems |
| Timers | TIM1 (16-bit advanced, dead-time insertion, 3 complementary outputs), TIM2 (16-bit general purpose), TIM4 (8-bit basic) - enables motor gate drive control and precise timing without external ICs |
| Communication | UART (LIN/SmartCard/IrDA), SPI (8 Mbit/s), I²C (400 kbit/s) - supports mixed-protocol connectivity in multi-sensor nodes and HMI backplanes |
| Supply Range | 2.95 to 5.5 V operating voltage - allows direct integration with 3.3 V or 5 V legacy systems without level-shifting |
Pinout & Package
TSSOP20 package (4.4 mm body width, 0.65 mm pitch), 7.2 mm × 4.4 mm footprint, lead-free and RoHS-compliant.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Power supply | Main 2.95–5.5 V supply input; decoupling required at pin for stable core/peripheral operation |
| VSS | Ground reference | Digital ground return path; separate analog ground not provided - shared VSS used for mixed-signal integrity |
| NRST | Active-low reset input | Asynchronous reset with internal pull-up; accepts external push-button or supervisor IC assertion |
| SWIM | Single-wire interface module | Debug and programming interface using one GPIO pin - eliminates need for JTAG header in production PCBs |
| PA0–PA7 | Programmable I/O port A | 8-bit bidirectional port with high sink capability (20 mA per pin); supports alternate functions including UART TX/RX, SPI, I²C |
| PD0–PD3 | Programmable I/O port D | 4-bit bidirectional port; PD0/PD1 serve as UART1 TX/RX; PD2/PD3 support TIM1 CH1/CH2 and ADC channel inputs |
Key Features
| Feature | Design Value |
|---|---|
| Low-power clock management | Four selectable clock sources with individual peripheral clock gating - reduces active current to 230 µA/MHz at 3.3 V in run mode |
| Robust I/O structure | 21 high-sink outputs (20 mA), immunity to current injection - tolerates >50 mA transient injection without latch-up in noisy industrial environments |
| Integrated debug interface | SWIM single-wire debug over PA1 - enables in-system programming and real-time variable inspection without dedicated debug header |
| Memory reliability | Flash retention ≥20 years at 55 °C, EEPROM endurance ≥300 kcycles - meets automotive-grade data logging requirements without external FRAM |
| Peripheral flexibility | Alternate function remapping for UART, SPI, I²C, and timer signals on multiple pins - simplifies PCB layout and avoids routing congestion |
Applications
| Industrial Sensor Node | Smart Appliance Subsystem |
|---|---|
|
Use Scenario: Temperature/humidity monitoring node with local display and wireless uplink. IC Role / Device Role / Timing Role: Main controller managing ADC sampling, UART-based sensor fusion, SPI-driven OLED display, and low-power wake-up scheduling. Use Value: Integrated 10-bit ADC and 300 kcycle EEPROM eliminate external signal conditioning and nonvolatile storage, reducing BOM count by two components. |
Use Scenario: Washing machine door lock and water valve sequencer with fault detection. IC Role / Device Role / Timing Role: Dedicated safety-critical subsystem controller executing timed actuator sequences and monitoring current sense feedback via ADC. Use Value: TIM1's dead-time insertion and complementary outputs directly drive half-bridge gate drivers, removing discrete logic and gate driver ICs. |
| Motor Drive Supervision | Legacy System Upgrade Module |
|
Use Scenario: Fan speed controller with tachometer feedback and thermal shutdown. IC Role / Device Role / Timing Role: Real-time PWM generation (TIM2), RPM measurement (input capture), and overtemperature response (ADC + interrupt). Use Value: Nested interrupt controller handles simultaneous tachometer edge interrupts and ADC conversion complete events with <1 µs latency. |
Use Scenario: Retrofit board replacing obsolete 8051-based power supply monitor. IC Role / Device Role / Timing Role: Drop-in replacement providing identical UART command set, same 20-pin footprint, and enhanced EEPROM logging. Use Value: Pin-compatible TSSOP20 package and identical VDD/VSS/NRST/SWIM pin locations enable zero-layout-change upgrade with firmware recompile only. |
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 core and peripherals, but only 4 Kbyte Flash and 128 byte EEPROM - no TIM1 advanced timer or complementary outputs | Lacks dead-time insertion and 3-phase motor control capability; limited to basic PWM and sensor readout | Select when cost sensitivity outweighs advanced timer needs and firmware size stays under 4 KB |
| EFM8BB10F8G-A-QSOP24 | Silicon Labs 8051-based MCU; 8 KB Flash, 512 byte RAM, no integrated EEPROM; USB interface instead of SWIM | Requires external EEPROM for parameter storage; USB debug replaces SWIM but increases PCB complexity | Choose if USB host connectivity or higher analog performance (12-bit ADC) is prioritized over EEPROM integration and SWIM simplicity |
Compared with STM8S003F3P6, the STM8S103F2P6 adds critical motor control features and double the EEPROM; versus EFM8BB10F8G-A-QSOP24, it trades USB for proven SWIM debug and built-in EEPROM - making it optimal for cost-sensitive, self-contained embedded controllers where firmware update resilience and analog logging are essential.
Availability
STM8S103F2P6 is available at Aetrix Electronics and suitable for industrial sensor nodes, smart appliance subsystems, and motor drive supervision requiring stable component supply across multi-year production cycles.
Supply support for STM8S103F2P6 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 delivers cost-optimized 8-bit MCUs targeting resource-constrained embedded applications requiring high reliability, low power, and integrated peripherals - especially where Flash/E²PROM co-location and SWIM debug simplify development and maintenance.
FAQ
Does STM8S103F2P6 support hardware debugging during runtime?
Yes. The device integrates a Single-Wire Interface Module (SWIM) that enables full in-circuit debugging - including breakpoints, register inspection, and real-time variable monitoring - using only the SWIM pin and VDD/VSS. No external debugger hardware is required beyond a standard SWIM programmer such as ST-LINK/V2.
What is the maximum ADC sampling rate achievable with STM8S103F2P6?
The ADC supports up to 1 MSPS conversion rate when configured with minimal acquisition time and using the internal 16 MHz clock source. At 10-bit resolution, typical throughput is 170 kSPS in continuous scan mode with 5 channels, limited by CPU overhead and prescaler settings documented in Section 10.3.10 of DS6120 Rev 15.
Can STM8S103F2P6 operate reliably at 5.5 V supply with all peripherals enabled?
Yes. Electrical characteristics in DS6120 Rev 15 confirm full functionality across the entire 2.95–5.5 V range, including all timers, UART, SPI, I²C, and ADC. At 5.5 V, maximum fCPU remains 16 MHz, and total current consumption in run mode is 6.2 mA (typical) with all clocks active - within absolute maximum ratings.
Is there a migration path from STM8S103F2P6 to a pin-compatible 32-pin variant?
No direct pin-compatible 32-pin variant exists for the F2P6 (TSSOP20). The STM8S103K3 uses LQFP32/UFQFPN32 packages but has different pin mapping - e.g., NRST moves from pin 15 to pin 1, and SWIM shifts from PA1 to PA13. Migration requires PCB redesign and signal remapping, though firmware compatibility is maintained across the STM8S103 family.
STM8S103F2P6 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:
- 4KB (4K 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:
STM8S103F2P6 FAQ
1.How can I place an order for STM8S103F2P6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM8S103F2P6 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 STM8S103F2P6 reliable?
The price and inventory of STM8S103F2P6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM8S103F2P6 is usually 5 days.
3.What payment methods are accepted for STM8S103F2P6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM8S103F2P6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM8S103F2P6?
STM8S103F2P6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM8S103F2P6 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 STM8S103F2P6?
For technical support, including STM8S103F2P6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM8S103F2P6 requirements.
6.How does Aetrix verify that STM8S103F2P6 is sourced from the original manufacturer or authorized distributors?
All STM8S103F2P6 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 STM8S103F2P6 meets industry standards.
7.What is the process for return or replacement of STM8S103F2P6?
All STM8S103F2P6 units undergo pre-shipment inspection (PSI). If there is an issue with STM8S103F2P6, 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 STM8S103F2P6 part is unused and in its original packaging.
Return procedure for STM8S103F2P6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM8S103F2P6 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…

