STM8S-DISCOVERY STMicroelectronics, STM8S-DISCOVERY Datasheet - Page 26

EVAL KIT STM8S DISCOVERY

STM8S-DISCOVERY

Manufacturer Part Number
STM8S-DISCOVERY
Description
EVAL KIT STM8S DISCOVERY
Manufacturer
STMicroelectronics
Series
STM8Sr
Type
MCUr

Specifications of STM8S-DISCOVERY

Contents
Board
Processor To Be Evaluated
STM8S
Processor Series
STM8
Interface Type
USB, I2C, SPI, UART
Operating Supply Voltage
5 V
Silicon Manufacturer
ST Micro
Core Architecture
STM8
Core Sub-architecture
STM8
Silicon Core Number
STM8
Silicon Family Name
STM8L1xx
Kit Contents
Brd, Cable, Doc
Rohs Compliant
No
For Use With/related Products
STM8S
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
497-10040

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
STM8S-DISCOVERY
Manufacturer:
STMicroelectronics
Quantity:
42
Part Number:
STM8S-DISCOVERY
Manufacturer:
ST
0
Building and running your STVD project
5.1.2
5.1.3
26/42
Application code examples
The application code examples are located in the Project directory:
Project structure
Each project is structured as follows:
Discover
The Discover demonstration firmware comes preprogrammed in the STM8S-
DISCOVERY. It makes LD1 LED blink at different speeds when the touch sensing key is
pressed. This example uses the STM8S standard firmware library and the STM8 touch
sensing library. For more details on the Discover application code implementation and
library configuration, refer to user manual “Adjustable LED blinking speed using
STM8S-DISCOVERY touch sensing key” (UM0833).
The Discover application project is proposed only with the Cosmic compiler because
the STM8 touch sensing library V1.3.0 included in the STM8S-Discovery_dev package
is not yet compatible with the Raisonance compiler.
PWM
The PWM application code example is only based on the STM8S standard library. It
explains how to use a timer to generate PWM signals. Refer to user manual
“Generating PWM signals using STM8S-DISCOVERY” (UM0856) for details on the
PWM application software code implementation and library configuration.
The PWM project is compatible both with Cosmic and Raisonance compilers.
ADC
The ADC application code example explains how to use the ADC to convert the analog
voltage delivered by a variable resistor. It does not use any library. Refer to user manual
“Read UM0848 “Displaying variable voltage on a LED bar” (UM0848) for details on the
ADC application software code implementation and project configuration.
This example requires additional components to be mounted on the board.
The ADC project is compatible both with Cosmic and Raisonance compiler.
Project_template
This directory contains a standard project template that should be used to start any
application software development.
inc
This directory contains all the header files for your application, including the
configuration files for the touch sensing library (STM8_TSL_RC_Configuration.h), and
for the standard firmware library (stm8s_conf.h). These files are used to tailor the
libraries for your application.
src
This directory contains all the source files dedicated to your application code, such as
main.c, stm8s_it.c, and stm8_interrupt_vector.c (interrupt mapping file used only for
Cosmic compiler).
STVD\Cosmic (or \Raisonance)
This directory is used to store STVD workspace files (for example pwm.stw). It includes
the project and workspace for the Cosmic or Raisonance compiler, depending on the
compiler you have selected.
Doc ID 16499 Rev 3
UM0834

Related parts for STM8S-DISCOVERY