Skip to main content

STM8S103F3P6 8-bit STM8 Microcontroller

[Click the image to enlarge it]

STM8S series microcontrollers are access line 8-bit microcontroller units with 8 kilobytes Flash, 16 MHz CPU, and an integrated EEPROM. This STM8S family offers performance, robustness, and reduced system cost. It has an integrated true data EEPROM that supports up to 100000 writes/erase cycles and provides performance and robustness at the same time. It has advanced core and peripherals support made with state-of-the-art technology.

 

The 16 MHz clock frequency, robust I/Os, independent watchdog timer with separate clock source, and a clock security system are also available in this series of microcontroller units. The system cost is highly reduced by high system integration level with internal clock oscillators, watchdog, and brown - out reset.

 

STM8S103F3P6 microcontroller unit has 640 Bit ROM, 10-Bit 5-Channels ADC, 1kB RAM and with a program memory size of 8kB. Other than these features, it provides I2C, SPI, and UART communication support with 7 timers.

 

STM8S103F3P6 Pinout Configuration

STM8S103F3P6 Pin Description

Pin no.

Pin name

Type

The main function (after reset)

TSSOP20

1

PD4/ BEEP/ TIM2_ CH1/ UART1 _CK

I/O

Port D4

2

PD5/ AIN5/ UART1 _TX

I/O

Port D5

3

PD6/ AIN6/ UART1 _RX

I/O

Port D6

4

NRST

I/O

Reset

5

PA1/ OSCIN

I/O

Port A1

6

PA2/ OSCOUT

I/O

Port A2

7

VSS

S

Digital ground

8

VCAP

S

1.8 V regulator capacitor

9

VDD

S

Digital power supply

10

PA3/ TIM2_ CH3 [SPI_ NSS]

I/O

Port A3

11

PB5/ I2C_ SDA [TIM1_ BKIN]

I/O

Port B5

12

PB4/ I2C_ SCL

I/O

Port B4

13

PC3/ TIM1_CH3 [TLI]

[TIM1_ CH1N]

I/O

Port C3

14

PC4/ CLK_CCO/ TIM1_ CH4/AIN2/ [TIM1_ CH2N]

I/O

Port C4

15

PC5/ SPI_SCK [TIM2_ CH1]

I/O

Port C5

16

PC6/ SPI_MOSI [TIM1_ CH1]

I/O

Port C6

17

PC7/ SPI_MISO [TIM1_ CH2]

I/O

Port C7

18

PD1/ SWIM

I/O

Port D1

19

PD2/AIN3/ [TIM2_ CH3]

I/O

Port D2

20

PD3/ AIN4/ TIM2_ CH2/ ADC_ ETR

I/O

Port D3

 

Features and Specification of STM8S103F3P6 Microcontroller

  • Core: STM8 Core with Harvard architecture and 3-Stage pipeline
  • Data Bus width: 8bit
  • Maximum Clock Frequency: 16 MHz
  • Program Memory size: 8kB
  • Data RAM size: 1kB
  • ADC Resolution: 10 bit
  • Operating supply: 2.95V to 5.5 V
  • Minimum operating Temperature: - 40C
  • Maximum Operating Temperature: + 85C
  • Program Memory Type: Flash
  • Data RAM Type: RAM
  • Data ROM size: 128B
  • Data ROM Type: EEPROM
  • Interface Type: 12C, SPI, UART
  • Number of ADCs: 1 (5 channels)
  • Number of Times/counters: 7 Timers
  • Processor Series: STM8S
  • Product Type: 8-bit Microcontrollers MCU


Note: Complete technical details can be found in the STM8S103F3P6 Datasheet linked at the bottom of this page.

 

Alternative product of STM8S103F3P6

Alternative products for STM8S103F3P6 microcontroller are listed in the below-

  1. PIC16LF18444T
  2. MSP430G2353
  3. MSP430G2553

 

STM8S103F3P6 - Overview

The 8-bit microcontroller STM8S103F3P6 is a robust, high-performance microcontroller unit from ST Microelectronics that has UART, I2C, SPI, and a 5 Channels 10-Bit ADC.

 

It also has powerful timer features with Advanced 16-bit control timer, 16-bit general purpose timer that can be used for PWM as well, 8-bit basic timer with 8-bit prescaler, Auto wake-up timer and window watchdog and independent watchdog timers inbuilt. Thus, this microcontroller can be used for various types of applications where different types of timers are required.

 

The microcontroller also has an EEPROM that could retain data for 20 years and with 100 k write and erase cycles.

 

It features 1 Kbyte of RAM with 8 Kbyte of Flash memory. 2.95V to 5.5V operating voltage makes it a suitable choice for 3.3V as well as 5.0V logic level operations on both operating voltages.

 

Perfect for low space applications with 20 I/Os. The input-output pins are highly robust and immune against current injections.

 

Additionally, the Embedded single-wire interface module (SWIM) for fast on-chip programming and non-intrusive debugging support makes it a production-ready microcontroller for multiple applications.

 

How to Select your STM Microcontroller

STMicroelectronics provides a vast variety of Microcontrollers from the STM8 family. Each MCU has its own advantage and disadvantage. There are many parameters that one has to consider before selecting an MCU for his project. The below points are just suggestions that might help one to select an MCU.

 

If you are a beginner who is learning STM8 series microcontroller, then selecting an MCU that has good online community support and wide applications will be a good choice. STM8S103F3P6 is a good choice in that case. STMicroelectronics has a good online support forum for the STM8 series.

 

Consider the operating voltage of your system. If they are 5V, then select a 5V MCU. Some sensors or devices work and communicate on 3.3V in such cases, a 3.3V MCU can be selected.

 

If size and price are a limitation, then you can choose small 8-pin MCUs like STM8S001J3. These are also comparatively cheaper.

 

Based on the sensors and actuators used in your project, verify which modules you might need for MCU. For example, if you are reading many Analog voltages, then make sure the selected STM8S103F3P6 series microcontroller has enough ADC channels and supportive resolution.

 

If your project involves communication protocols like UART, SPI, I2C, CAN, etc. make sure your STM8 microcontroller can support them all. Some MCU can support more than one module of the same protocol

 

Programming STM8 Microcontroller

STM8 microcontrollers can be programmed with different software that is available in the market. The below details is for the most advanced and common software and compiler that has been developed by STMicroelectronics itself.

 

In order to program the STM8 microcontroller, we will need an IDE (Integrated Development Environment), where the programming takes place. A compiler, where our program gets converted into MCU readable form called HEX files.

IDE: ST Visual Develop

Compiler: COSMIC C Compiler

STMicroelectronics has given all these software for free. They can be downloaded directly from their official page. I have also provided the link for your convenience. Once downloaded, install them on your computer. If you have any problem doing so, you can post them on the comment below.

 

The interfacing of sensors or other devices with the STM8S103F3P6 microcontroller is quite easy. It has UART, SPI, I2C, and ADC peripheral supports for interfacing related operations. One can choose any available interfaces for connectivity and integration-related operations.

 

In the below image, basic programming connection is shown-

STM8 Microcontroller Connection

 

Applications of STM8S103F3P6 Microcontroller

  • Data Acquisition
  • Low-cost Sensor integration
  • Low power Embedded devices.
  • Small data retention related purposes

 

2D and 3D Model

The dimensions of the STM8S103F3P6 is shown below-

STM8S103F3P6 Dimensions

STM8S103F3P6 Dimensions

Component Datasheet

Get Our Weekly Newsletter!

Subscribe to stay updated with industry's latest Electronics components and news

* indicates required