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.
Introduction <ul><li>Purpose </li></ul><ul><ul><li>To introduce STM8S microcontrollers, their key features and their implementation in capacitive sensing technology. </li></ul></ul><ul><li>Outline </li></ul><ul><ul><li>Features and Application </li></ul></ul><ul><ul><li>Product introduction and portfolio </li></ul></ul><ul><ul><li>STM8S Block Diagram </li></ul></ul><ul><ul><li>Capacitive sensing technology </li></ul></ul><ul><ul><li>Hardware and software development tools </li></ul></ul><ul><li>Content </li></ul><ul><ul><li>15 pages </li></ul></ul>
STM8S Overview <ul><li>Robust and reliable </li></ul><ul><li>Performance up to 20MIPs @ 24Mhz </li></ul><ul><li>Excellent code density </li></ul><ul><li>Leading edge embedded Flash technology with true embedded E²Data </li></ul><ul><li>Embedded debug function with low-cost development tools </li></ul>
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
STM8S Product Lines <ul><li>Performance line </li></ul><ul><ul><li>– Up to 24MHz </li></ul></ul><ul><ul><li>– More peripherals </li></ul></ul><ul><ul><li>– Motor Ctrl, Math, Data Management, extended connectivity </li></ul></ul><ul><li>Access line </li></ul><ul><ul><li>– Up to 16MHZ </li></ul></ul><ul><ul><li>– Cost effective </li></ul></ul><ul><ul><li>– General Purpose and Processing </li></ul></ul>
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
Touch-sensing user interface with STM8S <ul><li>Complete C source code library with firmware examples </li></ul><ul><li>Acquisition, filtering and calibration functions </li></ul><ul><li>Up to 24 keys and 2 wheels/sliders supported </li></ul><ul><li>From 2 Kbytes to 4 Kbytes of memory footprint </li></ul><ul><li>MCU features and touch-sensing function in a single device </li></ul><ul><li>Processing filters for better sensitivity and immunity </li></ul><ul><li>Low-cost solution with only 1 resistor per touch channel required </li></ul>
STM8 Touch-Sensing Evaluation Board STM8S/128-EV/TS <ul><li>5 keys + 1 slider </li></ul><ul><li>Two-sided PCB with ground active shield for better noise immunity </li></ul><ul><li>1 Plexiglas isolation panel (1.5mm thickness dielectric) </li></ul><ul><li>1 LCD display for Touch Sensing parameters visualization and modification </li></ul><ul><li>1 SWIM connector for MCU programming </li></ul><ul><li>1 STM8S pre-programmed device </li></ul><ul><li>Debug mode capability using a RLink dongle (to order separately) </li></ul><ul><li>1 buzzer for touch feedback </li></ul>
Additional Resource <ul><li>For ordering the STM8S MCUs, please click the part list or </li></ul><ul><li>Call our sales hotline </li></ul><ul><li>For additional inquires contact our technical service hotline </li></ul><ul><li>For more product information go to </li></ul><ul><ul><li>http://www.st.com/mcu/inchtml-pages-stm8s.html </li></ul></ul>