June 2009 Doc ID 14320 Rev 3 5/23
UM0501
User manual
STM8/128-EVAL demonstration firmware
Introduction
This document describes the demonstration firmware running on the STM8/128-EVAL
evaluation board. You can use it to evaluate the capabilities of the microcontroller and the
on-board peripherals.
The evaluation board is delivered with the demonstration firmware stored in the Flash
program memory of the microcontroller.
The firmware is based on the STM8S firmware library, and provides an example of how to
use this library. It is divided into various smaller demonstration applications (demos).
In case the STM8/128-EVAL evaluation board is not factory-programmed or the
demonstration application has been erased, you can reprogram the demonstration firmware
into the STM8S2xx Flash memory by following the instructions provided in Section 3.
For more information about the evaluation board itself, please read the evaluation board
user manual.
Note: To run some of the demonstration applications, the option byte must be configured
accordingly. Refer to Section 2.10: BEEPER demo.
www.st.com
Contents UM0501
6/23 Doc ID 14320 Rev 3
Contents
1 User interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.1 Menu structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.2 Documentation conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.3 Navigating menus and sub-menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2 Demonstration applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.1 Menu overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.2 Welcome screen and main menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.3 Help mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.4 ADC demo 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.5 ADC demo 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.6 ADC demo 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.7 TIMER demo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.8 PWM demo 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.9 PWM demo 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.10 BEEPER demo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.11 MICROSD demo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.12 GAME demo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.13 SYSTEM demo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.14 About menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3 Upgrading the demonstration firmware . . . . . . . . . . . . . . . . . . . . . . . . 19
4 STM8S peripherals used . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
5 Demo firmware architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
6 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22