STM8S103F3
8-bit MicrocontrollerThe STM8S103F3 is a 8-bit microcontroller from STMicroelectronics. View the full STM8S103F3 datasheet below including key specifications, electrical characteristics, absolute maximum ratings.
STM8S103F3 shares its datasheet with STM8S103F3P6, whose page lists every part number it covers.
Official STM8S103F3 datasheet (PDF) — the source this page was extracted from.
Manufacturer
STMicroelectronicsCategory
Microcontrollers (MCU)STM8S103F3 Key Specifications
| Parameter | Value |
|---|---|
| ADC | 10-bit, up to 5 multiplexed channels |
| I2C | up to 400 kbit/s |
| RAM | 1 Kbyte |
| SPI | up to 8 Mbit/s |
| Core | 16 MHz STM8, Harvard architecture, 3-stage pipeline |
| UART | 1x with clock output, SmartCard, IrDA, LIN master mode |
| Timers | 16-bit advanced control timer (TIM1), 16-bit general purpose timer (TIM2), 8-bit basic timer (TIM4) |
| I/O Pins | up to 28 I/Os on 32-pin package, 21 high sink outputs |
| Unique ID | 96-bit |
| Data EEPROM | 640 byte |
| Supply Voltage | 2.95V to 5.5V |
| Flash Program Memory | 8 Kbyte |
STM8S103F3 Overview
Part: STM8S103F3P6 (STM8S103F2/F3/K3 family) — STMicroelectronics
Type: 8-bit Microcontroller (STM8 core)
Description: 16 MHz STM8S 8-bit MCU with up to 8 Kbyte Flash, 640 byte data EEPROM, 1 Kbyte RAM, 10-bit ADC, 3 timers, UART, SPI and I²C, operating from 2.95 to 5.5 V.
Operating Conditions:
- Supply voltage: 2.95–5.5 V
- Max CPU clock: 16 MHz
Absolute Maximum Ratings:
- Max supply voltage (VDDx − VSS): 6.5 V
- Input voltage on true open drain pins: VSS − 0.3 to 6.5 V
- Input voltage on any other pin: VSS − 0.3 to VDD + 0.3 V
- Total current into VDD power lines (source): 100 mA
- Total current out of VSS ground lines (sink): 80 mA
- Output current sunk/sourced by any I/O or control pin: 20 mA / −20 mA
- Injected current per pin: ±4 mA; total injected current: ±20 mA
- Storage temperature: −65 to 150 °C
- Max junction temperature: 150 °C
Key Specs:
- Core: 16 MHz advanced STM8, Harvard architecture, 3-stage pipeline
- Memory: 8 Kbyte Flash (20 years retention at 55 °C after 10 kcycle), 640 byte data EEPROM (300 kcycle endurance), 1 Kbyte RAM
- ADC: 10-bit, ±1 LSB, up to 5 multiplexed channels
- I/Os: up to 28 on the 32-pin package, including 21 high-sink outputs
- SPI: up to 8 Mbit/s
- I²C: up to 400 kbit/s
- Timers: 16-bit advanced control timer (4 CAPCOM channels, 3 complementary outputs), 16-bit general purpose timer (3 CAPCOM channels), 8-bit basic timer
- Interrupts: 32 interrupts, up to 27 external interrupts on 6 vectors
Features:
- 4 master clock sources: crystal oscillator, external clock input, internal 16 MHz RC, internal 128 kHz RC
- Clock security system with clock monitor
- Low-power modes: wait, active-halt, halt
- Individual peripheral clock gating
- Permanently active low-consumption power-on and power-down reset
- Auto wake-up timer, window watchdog and independent watchdog
- UART with synchronous clock output, SmartCard, IrDA and LIN master mode
- 96-bit unique ID
- Highly robust I/O design, immune against current injection
Applications:
- General-purpose embedded control
Package:
- TSSOP20
- SO20
- UFQFPN20 (3x3 mm)
- LQFP32 (7x7 mm)
- UFQFPN32 (5x5 mm)
- SDIP32
STM8S103F3 Features
- Clock prescaler: to get the best compromise between speed and current consumption the clock frequency to the CPU and peripherals can be adjusted by a programmable prescaler.
- Safe clock switching: clock sources can be changed safely on the fly in run mode through a configuration register. The clock signal is not switched until the new clock source is ready. The design guarantees glitch-free switching.
- Clock management: to reduce power consumption, the clock controller can stop the clock to the core, individual peripherals or memory.
- Master clock sources: four different clock sources can be used to drive the master clock:
- -1-16 MHz high-speed external crystal (HSE)
- -Up to 16 MHz high-speed user-external clock (HSE user-ext)
- -16 MHz high-speed internal RC oscillator (HSI)
- -128 kHz low-speed internal RC (LSI)
- Startup clock: After reset, the microcontroller restarts by default with an internal 2 MHz clock (HSI/8). The prescaler ratio and clock source can be changed by the application program as soon as the code execution starts.
- Clock security system (CSS): This feature can be enabled by software. If an HSE clock failure occurs, the internal RC (16 MHz/8) is automatically selected by the CSS and an interrupt can optionally be generated.
- Configurable main clock output (CCO): This outputs an external clock for use by the application.
Table 2. Peripheral clock gating bit assignments in CLK_PCKENR1/2 registers
| Bit | Peripheral clock | Bit | Peripheral clock | Bit | Peripheral clock | Bit | Peripheral clock |
|---|---|---|---|---|---|---|---|
| PCKEN17 | TIM1 | PCKEN13 | UART1 | PCKEN27 | Reserved | PCKEN23 | ADC |
| PCKEN16 | Reserved | PCKEN12 | Reserved | PCKEN26 | Reserved | PCKEN22 | AWU |
| PCKEN15 | TIM2 | PCKEN11 | SPI | PCKEN25 | Reserved | PCKEN21 | Reserved |
| PCKEN14 | TIM4 | PCKEN10 | I2C | PCKEN24 | Reserved | PCKEN20 | Reserved |
Table 2. Peripheral clock gating bit assignments in CLK_PCKENR1/2 registers
20
STM8S103F3 Pin Configuration
Table 4. Legend/abbreviations for pin description tables
| Type | I= Input, O = Output, S = Power supply | I= Input, O = Output, S = Power supply |
|---|---|---|
| Level | Input | CM = CMOS |
| Level | Output | HS = High sink |
| Output speed | O1 = Slow (up to 2 MHz) O2 = Fast (up to 10 MHz) O3 = Fast/slow programmability with slow as default state O4 = Fast/slow programmability with fast as default state | O1 = Slow (up to 2 MHz) O2 = Fast (up to 10 MHz) O3 = Fast/slow programmability with slow as default state O4 = Fast/slow programmability with fast as default state |
| Port and control configuration | Input | float = floating, wpu = weak pull-up |
| Port and control configuration | Output | T = True open drain, OD = Open drain, PP = Push pull |
| Reset state | Unless | state is the same during |
Table 4. Legend/abbreviations for pin description tables
30
STM8S103F3 Electrical Characteristics
Subject to general operating conditions for V DD , f MASTER , and T A unless otherwise specified.
Table 45. ADC characteristics
| Symbol | Parameter | Conditions | Min | Typ | Max | Unit |
|---|---|---|---|---|---|---|
| f ADC | ADC clock frequency | V DD = 2.95 to 5.5 V | 1 | - | 4 | MHz |
| f ADC | ADC clock frequency | V DD = 4.5 to 5.5 V | 1 | - | 6 | MHz |
| V AIN | Conversion voltage range (1) | - | V SS | - | V DD | V |
| C ADC | Internal sample and hold capacitor | - | - | 3 | - | pF |
| t S (1) | Minimum sampling time | f ADC = 4 MHz | - | 0.75 | - | μs |
| t S (1) | Minimum sampling time | f ADC = 6 MHz | - | 0.5 | - | μs |
| t STAB | Wakeup time from standby | - | - | 7.0 | - | μs |
| t CONV | Minimum total conversion time (including sampling time, 10- bit resolution) | f ADC = 4 MHz | 3.5 | 3.5 | 3.5 | μs |
| t CONV | Minimum total conversion time (including sampling time, 10- bit resolution) | f ADC = 6 MHz | 2.33 | 2.33 | 2.33 | μs |
| t CONV | Minimum total conversion time (including sampling time, 10- bit resolution) | - | 14 | 14 | 14 | 1/f ADC |
Table 45. ADC characteristics
Table 46. ADC accuracy with R AIN < 10 k Ω , V DD = 5 V
| Symbol | Parameter | Conditions | Typ | Max (1) | Unit |
|---|---|---|---|---|---|
| |E T | | Total unadjusted error (2) | f ADC = 2 MHz | 1.6 | 3.5 | LSB |
| |E T | | Total unadjusted error (2) | f ADC = 4 MHz | 2.2 | 4 | LSB |
| |E T | | Total unadjusted error (2) | f ADC = 6 MHz | 2.4 | 4.5 | LSB |
| |E O | | Offset error (2) | f ADC = 2 MHz | 1.1 | 2.5 | LSB |
| |E O | | Offset error (2) | f ADC = 4 MHz | 1.5 | 3 | LSB |
| |E O | | Offset error (2) | f ADC = 6 MHz | 1.8 | 3 | LSB |
| |E G | | Gain error (2) | f ADC = 2 MHz | 1.5 | 3 | LSB |
| |E G | | Gain error (2) | f ADC = 4 MHz | 2.1 | 3 | LSB |
| |E G | | Gain error (2) | f ADC = 6 MHz | 2.2 | 4 | LSB |
| |E D | | Differential linearity error (2) | f ADC = 2 MHz | 0.7 | 1.5 | LSB |
| |E D | | Differential linearity error (2) | f ADC = 4 MHz | 0.7 | 1.5 | LSB |
| |E D | | Differential linearity error (2) | f ADC = 6 MHz | 0.7 | 1.5 | LSB |
| |E L | | Integral linearity error (2) | f ADC = 2 MHz | 0.6 | 1.5 | |
| |E L | | Integral linearity error (2) | f ADC = 4 MHz | 0.8 | 2 | |
| |E L | | Integral linearity error (2) | f ADC = 6 MHz | 0.8 | 2 |
88
Table 47. ADC accuracy with R AIN < 10 k Ω , V DD = 3.3 V
| Symbol | Parameter | Conditions | Typ | Max (1) | Unit |
|---|---|---|---|---|---|
| |E T | | Total unadjusted error (2) | f ADC = 2 MHz | 1.6 | 3.5 | LSB |
| |E T | | Total unadjusted error (2) | f ADC = 4 MHz | 1.9 | 4 | LSB |
| |E O | | Offset error (2) | f ADC = 2 MHz | 1 | 2.5 | LSB |
| |E O | | Offset error (2) | f ADC = 4 MHz | 1.5 | 2.5 | LSB |
| |E G | | Gain error (2) | f ADC = 2 MHz | 1.3 | 3 | LSB |
| |E G | | Gain error (2) | f ADC = 4 MHz | 2 | 3 | LSB |
| |E D | | Differential linearity error (2) | f ADC = 2 MHz | 0.7 | 1.0 | LSB |
| |E D | | Differential linearity error (2) | f ADC = 4 MHz | 0.7 | 1.5 | LSB |
| |E L | | Integral linearity error (2) | f ADC = 2 MHz | 0.6 | 1.5 | LSB |
| |E L | | Integral linearity error (2) | f ADC = 4 MHz | 0.8 | 2 | LSB |
- ADC accuracy vs. negative injection current: Injecting negative current on any of the analog input pins should be avoided as this significantly reduces the accuracy of the conversion being performed on another analog input. It is recommended to add a Schottky diode (pin to ground) to standard analog pins which may potentially inject negative current. Any positive injection current within the limits specified for I INJ(PIN) and Σ I INJ(PIN) in Section 10.3.6 does not affect the ADC accuracy.
- Example of an actual transfer curve
- The ideal transfer curve
- End point correlation line
- EO = Offset error: deviation between the first actual transition and the first ideal one.
- ET = Total unadjusted error: maximum deviation between the actual and the ideal transfer curves.
- EG = Gain error: deviation between the last ideal transition and the last actual one.
- EL = Integral linearity error: maximum deviation between any actual transition and the end point correlation line.
- ED = Differential linearity error: maximum deviation between actual steps and the ideal one.
Figure 43. ADC accuracy characteristics
Figure 44. Typical application with ADC
- Legend: R AIN = external resistance, C AIN = capacitors, C samp = internal sample and hold capacitor.
88
STM8S103F3 Absolute Maximum Ratings
Stresses above the absolute maximum ratings listed in Table 16: Voltage characteristics , Table 17: Current characteristics and Table 18: Thermal characteristics may cause permanent damage to the device. These are stress ratings only and a functional operation of the device at these conditions is not implied. Exposure to maximum rating conditions for extended periods may affect the device's reliability.
The device's mission profile (application conditions) is compliant with the JEDEC JESD47 Qualification Standard, the extended mission profiles are available on demand.
Table 16. Voltage characteristics
| Symbol | Ratings | Min | Max | Unit |
|---|---|---|---|---|
| V DDx - V SS | Supply voltage (1) | -0.3 | 6.5 | V |
| V IN | Input voltage on true open drain pins (2) | V SS - 0.3 | 6.5 | V |
| V IN | Input voltage on any other pin (2) | V SS - 0.3 | V DD + 0.3 | V |
| |V DDx - V DD | | Variations between different power pins | - | 50 | mV |
| |V SSx - V SS | | Variations between all the different ground pins | - | 50 | mV |
| V ESD | Electrostatic discharge voltage | see Absolute maximum ratings (electrical sensitivity) on page 87 | see Absolute maximum ratings (electrical sensitivity) on page 87 | see Absolute maximum ratings (electrical sensitivity) on page 87 |
Table 17. Current characteristics
| Symbol | Ratings | Max. (1) | Unit |
|---|---|---|---|
| I VDD | Total current into V DD power lines (source) (2) | 100 | mA |
| I VSS | Total current out of V SS ground lines (sink) (1) | 80 | mA |
| I IO | Output current sunk by any I/O and control pin | 20 | mA |
| I IO | Output current source by any I/Os and control pin | -20 | mA |
88
Table 17. Current characteristics (continued)
| Symbol | Ratings | Max. (1) | Unit |
|---|---|---|---|
| I INJ(PIN) (3) (4) | Injected current on NRST pin | ±4 | mA |
| I INJ(PIN) (3) (4) | Injected current on OSCIN pin | ±4 | mA |
| I INJ(PIN) (3) (4) | Injected current on any other pin (5) | ±4 | mA |
| Σ I INJ (3) | Total injected current (sum of all I/O and control pins) (5) | ±20 | mA |
- Guaranteed by characterization results.
- All power (V DD ) and ground (V SS ) pins must always be connected to the external supply.
- I INJ must never be exceeded. This condition is implicitly insured if V IN maximum is respected. If V IN maximum cannot be respected, the injection current must be limited externally to the I INJ(PIN) value. A positive injection is induced by V IN > V DD while a negative injection is induced by V IN < V SS . For true opendrain pads, there is no positive injection current allowed and the corresponding V IN maximum must always be respected.
- ADC accuracy vs. negative injection current: Injecting negative current on any of the analog input pins should be avoided as this significantly reduces the accuracy of the conversion being performed on another analog input. It is recommended to add a Schottky diode (pin to ground) to standard analog pins which may potentially inject negative current. Any positive injection current within the limits specified for IINJ(PIN) and Σ I INJ(PIN) in the I/O port pin characteristics section does not affect the ADC accuracy.
- When several inputs are submitted to a current injection, the maximum Σ I INJ(PIN) is the absolute sum of the positive and negative injected currents (instantaneous values). These results are based on characterization with Σ I INJ(PIN) maximum current injection on four I/O port pins of the device.
Table 18. Thermal characteristics
| Symbol | Ratings | Value | Unit |
|---|---|---|---|
| T STG | Storage temperature range | - 65 to 150 | °C |
| T J | Maximum junction temperature | 150 | °C |
STM8S103F3 Thermal Information
The maximum junction temperature (T Jmax ) of the device must never exceed the values specified in Table 19: General operating conditions , otherwise the functionality of the device cannot be guaranteed.
The maximum junction temperature T Jmax , in degrees Celsius, may be calculated using the following equation:
$$T_{Jmax} = T_{Amax} + (P_{Dmax} \times \Theta_{JA})$$
STM8S103F3 Package Information
In order to meet environmental requirements, ST offers these devices in different grades of ECOPACK ® packages, depending on their level of environmental compliance. ECOPACK ® specifications, grade definitions and product status are available at: www.st.com . ECOPACK ® is an ST trademark.
Variants on the same datasheet
These parts have exact links to the same datasheet. They are candidates to compare, not verified drop-in replacements; check package, pinout and electrical limits.
| Part Number | Manufacturer | Package |
|---|---|---|
| STM8S103 | STMicroelectronics | — |
| STM8S103F2 | STMicroelectronics | — |
| STM8S103F3P6 | STMicroelectronics | UFQFPN |
| STM8S103K3 | STMicroelectronics | — |
Other Microcontrollers (MCU)
- STM32F407VET6 – STMicroelectronics, ARM Cortex-M4 MCU
- STM32H563ZIT6 – STMicroelectronics, Arm Cortex-M33 32-bit MCU
- STM32H743VIT6 – STMicroelectronics, Microcontroller Unit (MCU)
- RP2040 – Raspberry Pi, Microcontroller
- NRF52840-QIAA-R7 – Nordic Semiconductor, Wireless Microcontroller
- STM32L011F4U6 – STMicroelectronics, Ultra-low-power Arm Cortex-M0+ MCU
- STM32U575RIT6 – STMicroelectronics, Ultra-low-power Arm Cortex-M33 32-bit MCU
- GD32F103C8T6 – GigaDevice, Arm Cortex-M3 32-bit MCU
All Microcontrollers (MCU) datasheetsAll STMicroelectronics datasheets (808)
Ask your AI agent about the STM8S103F3
Connect SheetsData to Claude, Cursor, Codex or any MCP client and your agent reads this datasheet for you: pinout, limits, register maps and design checks, with the numbers taken from the PDF.
claude mcp add --transport http sheetsdata https://mcp.sheetsdata.com/mcp
Then ask: "Can the STM8S103F3 run from my 12 V rail? Check it against the datasheet limits."
Create a free account $2 of usage every month, no card needed.