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

- Shipping:

Inventory:7,390
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM8S103F2P3TR from STMicroelectronics is an 8-bit access-line microcontroller featuring a 16 MHz STM8 core, 8 KB Flash, 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 industrial control, sensor interface, and appliance motor management applications.
For engineers reviewing the STM8S103F2P3TR datasheet, STM8S103F2P3TR pinout, STM8S103F2P3TR application, or STM8S103F2P3TR equivalent, key selection criteria include its TSSOP20 package, 2.95–5.5 V supply range, 300 kcycle EEPROM endurance, nested 32-interrupt controller, and SWIM single-wire debug interface for space-constrained embedded designs.
Technical Context
The STM8S103F2P3TR 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 sources: user-trimmable 16 MHz RC, low-power 128 kHz RC, crystal resonator, and external clock input-managed by a clock security system with monitor.
Peripheral integration includes UART with SmartCard/IrDA/LIN master support, SPI up to 8 Mbit/s, I²C up to 400 kbit/s, and a 10-bit ADC with analog watchdog and scan mode. Power management supports wait, active-halt, and halt modes with individual peripheral clock gating for fine-grained energy control.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | 16 MHz STM8 8-bit Harvard core with 3-stage pipeline and extended instruction set for deterministic real-time control |
| Flash Memory | 8 Kbyte Flash with 20-year data retention at 55 °C after 10,000 write/erase cycles |
| Data EEPROM | 640 byte true data EEPROM, rated for 300,000 write/erase cycles-enables robust parameter storage without external memory |
| ADC | 10-bit ±1 LSB ADC with up to 5 multiplexed inputs, scan mode, and analog watchdog for reliable sensor monitoring |
| Timers | Three independent timers: TIM1 (16-bit advanced, 4 CAPCOM, dead-time), TIM2 (16-bit general purpose), TIM4 (8-bit basic) |
| Communication | UART (with synchronous clock output, SmartCard, IrDA, LIN master), SPI (≤8 Mbit/s), I²C (≤400 kbit/s) |
| Supply Range | 2.95 V to 5.5 V operation-supports direct connection to 3.3 V or 5 V rails without level-shifting |
Pinout & Package
TSSOP20 package (4.4 mm body width, 0.65 mm pitch), thermally enhanced for compact industrial PCB layouts; pin count and I/O mapping optimized for minimal external components in 20-pin footprint.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Power supply | Main 2.95–5.5 V supply rail; decoupled via VCAP capacitor for stable core voltage |
| VSS | Ground | Digital ground reference; separate analog ground not required due to integrated design |
| NRST | Reset input | Active-low reset with internal pull-up; accepts standard push-button or microcontroller-driven reset signals |
| PA0–PA7 | Programmable I/O port A | 8-bit bidirectional port with high-sink capability (20 mA) on selected pins-suited for LED drive or relay control |
| PB0–PB5 | Programmable I/O port B | 6-bit bidirectional port supporting alternate functions including UART TX/RX, SPI SCK/MOSI/MISO, and I²C SCL/SDA |
| SWIM | Single-wire interface module | Dedicated debug pin for programming and real-time debugging using ST-LINK or compatible tools-no JTAG overhead |
Key Features
| Feature | Design Value |
|---|---|
| SWIM debug interface | Single-pin, non-intrusive in-circuit programming and real-time debugging-reduces debug footprint vs. multi-pin JTAG |
| User-trimmable 16 MHz RC oscillator | ±1% accuracy after trimming-eliminates external crystal for cost-sensitive timing where precision <1% is acceptable |
| High-sink I/O capability | Up to 20 mA sink per pin on PA0–PA7-directly drives LEDs, small relays, or optocouplers without external drivers |
| Low-power modes | Wait, active-halt, and halt modes with sub-μA current draw in halt-extends battery life in intermittent-sensing applications |
| 96-bit unique ID | Factory-programmed serial number per device-enables secure device authentication and firmware binding |
Applications
| Industrial Sensor Node | Smart Appliance Control |
|---|---|
|
Use Scenario: Standalone temperature/humidity sensor node with local display and wireless reporting. IC Role / Device Role / Timing Role: Main system controller managing ADC sampling, UART communication to BLE module, and LED status indication. Use Value: Integrated 10-bit ADC with analog watchdog ensures accurate sensor readings; SWIM enables field firmware updates without redesigning debug headers. |
Use Scenario: Washing machine main control board handling motor sequencing, water valve actuation, and user interface. IC Role / Device Role / Timing Role: Central MCU coordinating PWM motor control via TIM1, reading front-panel buttons, and driving segment LCD via GPIO. Use Value: High-sink I/Os directly drive solenoid valves and indicator LEDs; 640-byte EEPROM stores cycle counters and fault logs across power cycles. |
| Energy Meter Interface | POS Peripheral Controller |
|
Use Scenario: Sub-metering module interfacing with shunt-based current sensors and RS-485 communication. IC Role / Device Role / Timing Role: Signal conditioner and protocol translator converting ADC measurements into Modbus RTU frames over UART. Use Value: UART with clock output supports synchronous RS-485 transceiver timing; 8 KB Flash accommodates dual-bank firmware for safe OTA updates. |
Use Scenario: Point-of-sale terminal add-on board managing barcode scanner, receipt printer, and cash drawer solenoid. IC Role / Device Role / Timing Role: Dedicated peripheral coordinator offloading host CPU-handling USB-to-UART bridge, GPIO-triggered drawer release, and error signaling. Use Value: Nested interrupt controller prioritizes real-time events (e.g., scanner trigger); 300 kcycle EEPROM retains calibration data across 10+ years of daily retail use. |
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, but only 4 KB Flash and 128-byte EEPROM; no advanced TIM1 timer | Limited to simpler control tasks without complex PWM or dead-time requirements | Select when cost is critical and full 8 KB Flash or advanced timer features are unnecessary |
| EFM8BB10F8G-A-QFN20 | Silicon Labs 8051 core, 8 KB Flash, 512-byte RAM, no built-in EEPROM; requires external NV memory for parameter storage | Higher code density but lacks integrated EEPROM endurance and analog watchdog functionality | Prefer when leveraging existing 8051 toolchains and external EEPROM is already part of BOM |
Compared with STM8S003F3P6, the STM8S103F2P3TR delivers double Flash and EEPROM capacity plus advanced timer hardware-justifying its use in applications requiring field-updatable parameters and motor control. Versus EFM8BB10F8G-A-QFN20, it offers superior analog integration and guaranteed EEPROM reliability without external components.
Availability
STM8S103F2P3TR is available at Aetrix Electronics and suitable for industrial sensor nodes, smart appliance control, and energy meter interface applications requiring stable component supply, long-term lifecycle support, and consistent parametric performance across temperature ranges.
Supply support for STM8S103F2P3TR 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, designing and manufacturing microcontrollers, power ICs, sensors, and analog devices for industrial, automotive, and consumer markets.
The STM8S series targets cost-optimized, robust 8-bit control in space- and power-constrained environments-emphasizing ease of use, integrated peripherals, and long-term availability for industrial equipment lifecycles.
FAQ
Does STM8S103F2P3TR support in-system programming via SWIM?
Yes. The STM8S103F2P3TR uses the Single-Wire Interface Module (SWIM) for in-system programming and debugging. A single dedicated pin (SWIM) enables full flash programming, RAM inspection, and real-time breakpoint debugging using ST-LINK/V2 or compatible programmers-no additional pins or bootloaders required.
What is the maximum operating frequency at 3.3 V supply?
At VDD = 3.3 V, the STM8S103F2P3TR supports a maximum CPU frequency of 16 MHz when using the internal 16 MHz RC oscillator (after user trimming) or an external clock source. Electrical characteristics confirm fCPUmax remains 16 MHz across the full 2.95–5.5 V operating range.
Can the 10-bit ADC measure negative voltages or accept bipolar inputs?
No. The ADC input range is strictly 0 V to VDD (unipolar). Inputs below 0 V or above VDD risk damage or invalid conversion results. External signal conditioning-such as level-shifting or clamping-is required for bipolar or out-of-range analog signals before connection to ADC channels.
Is the data EEPROM accessible during program execution?
Yes. The 640-byte data EEPROM supports read-while-write (RWW) operation: reads can occur concurrently with Flash or EEPROM writes. This allows real-time parameter logging (e.g., fault counters or calibration offsets) without halting application code execution.
STM8S103F2P3TR 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:
- 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 ~ 125°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM8S103F2P3TR FAQ
1.How can I place an order for STM8S103F2P3TR through Aetrix?
Please submit a Request for Quotation (RFQ) for STM8S103F2P3TR 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 STM8S103F2P3TR reliable?
The price and inventory of STM8S103F2P3TR are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM8S103F2P3TR is usually 5 days.
3.What payment methods are accepted for STM8S103F2P3TR?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM8S103F2P3TR transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM8S103F2P3TR?
STM8S103F2P3TR orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM8S103F2P3TR 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 STM8S103F2P3TR?
For technical support, including STM8S103F2P3TR datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM8S103F2P3TR requirements.
6.How does Aetrix verify that STM8S103F2P3TR is sourced from the original manufacturer or authorized distributors?
All STM8S103F2P3TR 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 STM8S103F2P3TR meets industry standards.
7.What is the process for return or replacement of STM8S103F2P3TR?
All STM8S103F2P3TR units undergo pre-shipment inspection (PSI). If there is an issue with STM8S103F2P3TR, 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 STM8S103F2P3TR part is unused and in its original packaging.
Return procedure for STM8S103F2P3TR:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM8S103F2P3TR 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…

