STM8S-DISCOVERY STMicroelectronics, STM8S-DISCOVERY Datasheet - Page 20
![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
Table 1.
3.2.3
20/42
Single channel key
Acquisition timer
Multichannel key
Time-base timer
Electrode mask
MCU selection
Function
Load I/O
Touch sensing library configuration for STM8S-DISCOVERY using TS1 touchkey
Developing your application with the STM8S touch sensing library
Figure 16
touch sensing library with the STM8S-DISCOVERY. The application code must call some
API functions to initialize the library and manage the acquisition state machines.
The function TSL_Init() must be called once during the initialization of the complete system.
It is usually done in the main routine.
The ExtraCode_Init() performs the initialization of all the touchkeys implemented and
enabled in the STM8_TSL_RC_Configuration.h.
The function TSL_Action() must be called periodically during system execution. It is the
main state machine which sequences all the actions concerning all the touchkeys.
The application user code must be developed inside the function
ExtraCode_StateMachine(). As an example, download the Discover application
demonstration available at http://www.st.com/stm8s-discovery.
To read the data set by the library (for example to check flags), ensure that the touch
sensing main state machine is in idle state to avoid spurious values to be retrieved.
SCKEY_P1_KEY_COUNT
SCKEY_P1_PORT_ADDR
SCKEY_P1_A
SCKEY_P1_DRIVEN_SHIELD_MASK
SCKEY_P2_COUNT
SCKEY_P3_COUNT
NUMBER_OF_MULTI_CHANNEL_KEYS
GPIOA_ELECTRODES_MASK
GPIOB_ELECTRODES_MASK
GPIOC_ELECTRODES_MASK
GPIOD_ELECTRODES_MASK
GPIOE_ELECTRODES_MASK
GPIOF_ELECTRODES_MASK
GPIOG_ELECTRODES_MASK
GPIOH_ELECTRODES_MASK
GPIOI_ELECTRODES_MASK
shows the main flowchart that is to be followed to develop an application using the
LOADREF_PORT_ADDR
TIMACQ_CNTR_ADD
#define statement
LOADREF_BIT
TIMTICK
TIMACQ
STM8S
Doc ID 16499 Rev 3
GPIOC_BaseAddress
GPIOC_BaseAdress
0x5328
Value
TIM4
TIM3
0x0A
0x04
0x02
0x08
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x00
1
1
0
0
0
Number of keys = 1
Port PC selected
Pin 1 selected as
acquisition input
Pin 3 for active shield
Key port P2 not used
Key port P3 not used
Multichannel key feature
disabled
Defines the electrode
mask for each GPIO
used.
Mask must be set to 0x00
for unused GPIOs.
TIM3 base address
Port PC4 selected
Comment
-
-
UM0834