STM8S 8-bit Microcontrollers

Uploaded on

To introduce STM8S microcontrollers, their key features and their implementation in capacitive sensing technology

To introduce STM8S microcontrollers, their key features and their implementation in capacitive sensing technology

More in: Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads


Total Views
On Slideshare
From Embeds
Number of Embeds



Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

    No notes for slide
  • This training module describes the STMicroElectronics STM8S 8-bit Microcontrollers
  • Welcome to the training module on STM8S 8-bit Microcontrollers. This training module introduces STM8S microcontrollers, their key features and their implementation in capacitive sensing technology.
  • The STM8S family of general-purpose 8-bit Flash microcontrollers offers ideal solutions for industrial and appliance market requirements. An advanced core version combined with a 3- stage pipeline ranks the STM8S microcontroller in the top position for performance. The true embedded EEPROM and the calibrated RC oscillator bring a significant cost effectiveness to the majority of applications. An easy-to-use and intuitive development environment contributes to improving time to market. In addition to high performance, comprehensive design specifications and specific peripheral features make the STM8S robust and reliable.
  • This table shows the applications of STM8S. It can be implemented in various fields like Home appliance, HVAC, Motor control, sensors, lighting etc.
  • The STM8S family is available in two lines: the Performance line and Access line. With FCPU specified up to 24 MHz, the Performance line is ideal when processing power is needed. The Access line is an affordable solution when cost efficiency is the main concern. Both lines share the same architecture and peripheral set making navigation possible across the portfolio.
  • A large product family allows platform validation and simplifies migration from one product to another. This is a great advantage to speed up development with a maximum reuse of the work already invested. It improves time to market , It reduces risk, It optimizes resources. STM8 delivers high performance with excellent code compactness.
  • The 8-bit STM8 core has a 32-bit memory interface and three-stage pipeline, achieving 20 MIPS peak processing performance at 24MHz. Alongside the advantages of the STM8 core, the STM8S family includes large on-chip Flash memory with variants from 4 Kbytes to 128 Kbytes. The integrated EEPROM delivers performance comparable to external EEPROM, with real-time read-while-write capability and minimum 300,000 write-cycle durability. It also provides access to a large catalog of functions including 16-bit advanced control timers with configurable modes, capture/compare functions, PWM controllers, and interfaces including U(S)ARTs, SPI, I2C and CAN 2.0B. In addition to specific features for reliability and robustness, such as dual independent watchdogs, a clock security system, complementary copy of configuration option bytes, and EMS reset, the STM8S family also includes in-application programming and in-circuit programming, as well as single-wire debug using the industry’s most advanced in-circuit-debugging module.
  • The 8-bit STM8 core is designed for code efficiency and performance. It contains 6 internal registers which are directly addressable in each execution context, 20 addressing modes including indexed indirect , relative addressing , 80 instructions, a High performance core Advanced Harvard CISC architecture, New arithmetic instructions, 20MIPs peak @ 24Mhz FCPU, Innovative architecture, 128 kB linear address space, no paging, 16-bit index registers, Internal 32-bit memory interface and 3-stage pipeline, Advanced clock controller for better power consumption and noise control.
  • In addition to performance, comprehensive design specifications and specific peripheral features make the STM8S robust and reliable: it has 2 internal RC oscillators with dual independent watchdogs Clock security system (CSS) to monitor the failure of external clock source Complementary copy of configuration option bytes and EMS reset. Low emission in accordance with the IEC 61967 standards Outstanding robustness performance according to IEC 1000-4-2 and IEC 1000-4-4 standards High current injection immunity (1 μA leakage current when 4 mA current is injected in adjacent pin) Dedicated firmware library compliant to Class B of IEC 60335.
  • Development tools for the STM8 microcontrollers include the full-featured STice emulation system supported by a complete software tool package including C compiler, assembler and integrated development environment with high-level language debugger. In addition, the STM8 is to be supported by a complete range of tools including starter kits, evaluation boards and a low-cost in-circuit debugger/programmer.
  • Here we introduce a capsense Technology which is human touch sensing technology implemented for buttons, slider, wheel. Capacitive sensing interfaces are used in many applications, simple or more complex. These interfaces consist of sensing elements made from conductive elements, such as copper, connected to the touch sensing controller device.
  • Here we have shown the block diagram of the STM8S implementing touch sensing. It involves hardware and software portions residing inside the MCU GPIO, Timer and some of the hardware blocks. Touch sensing software involves predefined API, Filtering environment change system, and RC Acquisition layer. This design can implement up to 24 keys, 2 wheels or sliders.
  • Using a patent-free method, the human touch is detected by controlling the charge/discharge timing cycle of an RC network formed by a resistor and the electrode capacitance (Cx). STMicroelectronics’ touch-sensing software library is a complete, free of charge source-code solution to transform any 8-bit STM8S microcontroller into a capacitive touch-key controller. Designers can combine the touch-sensing function with multiple configurations (touch keys, wheels, sliders) and the traditional MCU features (communication, LED control, beeper, LCD control). The touch-sensing software library is part of the application firmware
  • The software suite includes a touch-sensing evaluation board using an STM8S device. It comes pre-programmed with a demonstration firmware that manages 5 touch- keys and 1 slider. The user can easily evaluate the touch-sensing software features and performances and display or change parameters.
  • Thank you for taking the time to view this presentation on STM8S. If you would like to learn more or go on to purchase some of these devices, you may either click on the part list link, or simple call our sales hotline. For more technical information you may either visit the STMicroelectronics site - link shown, or if you would prefer to speak to someone live, please call our hotline number, or even use our ‘live chat’ online facility.


  • 1. STM8S 8-bit Microcontrollers
    • Source: STMicroelectronics
  • 2. Introduction
    • Purpose
      • To introduce STM8S microcontrollers, their key features and their implementation in capacitive sensing technology.
    • Outline
      • Features and Application
      • Product introduction and portfolio
      • STM8S Block Diagram
      • Capacitive sensing technology
      • Hardware and software development tools
    • Content
      • 15 pages
  • 3. STM8S Overview
    • Robust and reliable
    • Performance up to 20MIPs @ 24Mhz
    • Excellent code density
    • Leading edge embedded Flash technology with true embedded E²Data
    • Embedded debug function with low-cost development tools
  • 4. Target Applications Applications Benefits Home Appliances Robust, -40/125°C, platform HVAC Cost effective User interfaces Capacitive Sensing Library Factory automation I/O Link, CAN Motor control High end 16bit timer, Multiply Sensors Small packages, Analog Lighting Robust, -40/125°C E-bikes Analog & Motor Control Circuit breakers Analog, Fast, Robust Personal Care Cost effective Rechargeable battery operated devices 2.95V up to 5V Toys and game accessories Low pin count, Int. RC, E²Data, cost effective Power supplies and power management Low power modes, E²Data Power tools Robust, cost effective
  • 5. STM8S Product Lines
    • Performance line
      • – Up to 24MHz
      • – More peripherals
      • – Motor Ctrl, Math, Data Management, extended connectivity
    • Access line
      • – Up to 16MHZ
      • – Cost effective
      • – General Purpose and Processing
  • 6. STM8S Portfolio
  • 7. STM8S block diagram ● Harvard architecture ● 3-stage pipeline ● 32-bit wide program memory bus -single cycle fetching for most instructions ● X and Y 16-bit index registers - enabling indexed addressing modes with or without offset and read-modify-write type data manipulations ● 8-bit accumulator ● 24-bit program counter - 16-Mbyte linear memory space ● 16-bit stack pointer - access to a 64 K-level stack ● 8-bit condition code register - 7 condition flags for the result of the last instruction
  • 8. STM8 Core
    • 1.6 CPI average
    • 20 MIPs peak @ 24 MHz
    • 32-bit memory interface
    • 3-stage pipeline
    • 16-bit index registers
    • 20 addressing modes
  • 9. STM8S – Robust, Reliable and Cost Effective
  • 10. Hardware and software development tools
  • 11. Capacitive Sensing Technology
  • 12. Block Diagram
  • 13. Touch-sensing user interface with STM8S
    • Complete C source code library with firmware examples
    • Acquisition, filtering and calibration functions
    • Up to 24 keys and 2 wheels/sliders supported
    • From 2 Kbytes to 4 Kbytes of memory footprint
    • MCU features and touch-sensing function in a single device
    • Processing filters for better sensitivity and immunity
    • Low-cost solution with only 1 resistor per touch channel required
  • 14. STM8 Touch-Sensing Evaluation Board STM8S/128-EV/TS
    • 5 keys + 1 slider
    • Two-sided PCB with ground active shield for better noise immunity
    • 1 Plexiglas isolation panel (1.5mm thickness dielectric)
    • 1 LCD display for Touch Sensing parameters visualization and modification
    • 1 SWIM connector for MCU programming
    • 1 STM8S pre-programmed device
    • Debug mode capability using a RLink dongle (to order separately)
    • 1 buzzer for touch feedback
  • 15. Additional Resource
    • For ordering the STM8S MCUs, please click the part list or
    • Call our sales hotline
    • For additional inquires contact our technical service hotline
    • For more product information go to