STM8S-DISCOVERY STMicroelectronics, STM8S-DISCOVERY Datasheet - Page 16
![EVAL KIT STM8S DISCOVERY](/photos/9/20/92053/stm8s-discovery_sml.jpg)
STM8S-DISCOVERY
Manufacturer Part Number
STM8S-DISCOVERY
Description
EVAL KIT STM8S DISCOVERY
Manufacturer
STMicroelectronics
Series
STM8Sr
Type
MCUr
Datasheets
1.STM8S-DISCOVERY.pdf
(42 pages)
2.STM8S-DISCOVERY.pdf
(3 pages)
3.STM8S-DISCOVERY.pdf
(17 pages)
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
Company:
Part Number:
STM8S-DISCOVERY
Manufacturer:
STMicroelectronics
Quantity:
42
Description of firmware libraries
3.1.1
16/42
Figure 11. STM8S standard firmware library architecture
Description of the STM8S standard firmware library
The stm8s.h header file contains the definitions of constants and register structures for all
peripherals. Uncomment #define USE_STDPERIPH_DRIVER when using the STM8S
standard firmware library.
In addition, stm8s.h must be included in your main() routine.
The stm8s_conf.h file of the STM8S standard firmware library is used to configure the
library by enabling the peripheral functions that are only used by your application (see
Figure
supported devices. For example:
#if defined(STM8S208) || defined(STM8S207) || defined(STM8S105)
#define _TIM3 (1)
#endif
In stm8s_conf.h, the HSE value define statement may be adjusted to the oscillator
frequency or to the external clock generator frequency. It is also conditioned by supported
devices. Make sure you have the correct value for the STM8S-DISCOVERY external
oscillator (expressed in Hz). For example:
#define HSE_VALUE ((u32)16000000)
The peripheral interrupt function file, stm8s_it.c, must be modified to include the code to
handle the interrupts used by your application. The stm8s_type.h file includes common
12). In stm8s_conf.h, some peripheral define statements are conditioned by
stm8s_adc1
stm8s_flash
stm8s_iwdg
stm8s_tim3
stm8s_type.h
stm8s_awu stm8s_beep
stm8s_tim4
stm8s_opt
stm8s_rst
Doc ID 16499 Rev 3
stm8s_conf.h
stm8s_uart2
stm8s_gpio
STM8S105
resources
stm8s_spi
stm8s.h
main.c
registers definition
memory mapping
stm8s_wwdg
configures the library
stm8s_tim1
stm8s_clk
stm8s_i2c
Standard Peripheral drivers
Application layer
stm8s_tim2
stm8s_exti
stm8s_itc
ai17223
UM0834