STM8S-DISCOVERY is a quick start evaluation board which helps you to discover the
STM8 features , and to develop and share your own appl ication. It is based on an
STM8S105C6T6 and includes an embedded debugger, ST-LINK, and a touch sensing
button. Numerous applications are available.
Features
■ STM8S105C microcontroller
■ Powered by USB cable between PC and STM8S-DISCOVERY
It is very simple to get started using the STM8S-DISCOVERY evaluation board, just follow
these four steps:
1.Connect the STM8S-DISCOVERY board to a PC with a USB cable.
2. Press the TS1 button, Observe LED LD1 blinking.
3. Press the TS1 button to change b linking speed.
4. Connect to www.st.com/stm8s-discovery and follow the tutorial.
The STM8S-DISCOVERY evaluation board helps yo u to develop and share your own
application. You can discover more of the STM8S features by downloading and executing
the proposed programs in the project list.
Doc ID 16361 Rev 13/17
Hardware and layoutUM0817
2 Hardware and layout
The STM8S-DISCOVERY evaluation board is designed around the STM8S105C6
microcontroller in an LQFP48 package. It has two distinct sections that may be separated,
the STM8S105C6 module and the ST-Link module.
Figure 2 illustrates the connections between the STM8S105C6 and its peripherals (ST-
LINK, touch-sensing button, LED and connectors).
Figure 3 helps you to locate these features on the STM8S-DISCOVERY board, as well as
the potential point of separat ion (f or more details ref er to Section 2.2.2: Using the ST-Link on
other applications).
Figure 2.Hardware block diagram
4/17Doc ID 16361 Rev 1
UM0817Hardware and layout
Figure 3.Top layout
USB connector
ST-Link JTAG
USB data transfer LED
ST-LINK core
ST-LINK module
SWIM connector
STM8S105C6 module
LED (LD1)
Possible separation point
Power supply jumper
External Osc. (16 MHz)
STM8S105C6
Touch sensing button (TS1)
Wrapping area
SO16 footprint
Doc ID 16361 Rev 15/17
Hardware and layoutUM0817
2.1 STM8S105C6 microcontroller
Figure 4.STM8S105C6 package
The STM8S105C6 8-bit microcontroller offers:
32 Kbytes of Flash program memory, and
1 Kbyte true data EEPROM.
This device provides the following benefits:
●Reduced system cost
–Integrated true data EEPROM for up to 300 K write/erase cycles
–High system integration le vel; internal clock oscillators, brown- out reset, watchdog.
●Performance and robustness
–1 6 MHz CPU clock frequency
–Up to 38 I/Os on a 48-pin package including 16 high sink outputs
–Robust I/O immune against current injection
–Independent watchdogs with separate clock source
–Flexible clock control, 4 master clocks (HSI, LSI, HSE and external HSE)
–Clock security system
–A family of products for applications with 2.95 V to 5.5 V operating supply
●Short development cycles
–Applications scalability across common family product architecture with
compatible pinout, memory map and modular peripher als.
–Full documentation and a wide choice of development tools
–S tandard S/W library for firmware development quick start
–Numerous application notes and firmware examples available
●Product longevity
–Advanced core and peripherals made in state-of-the-art technology
–Low power modes (wait, active-halt, halt)
–Auto wake-up timer for active halt
–Permanently active, low consumption
●Other features
–Nested interrupt controller with 32 interrupts
–Up to 37 e xternal interrupts on 6 vectors
–2 x 16-bit general purpose timers; with 2+3 CAPCOM channels (IC, OC or PWM)
–A dvanced control timer: 16-bit, 4 CAPCOM channels, 3 complementary outputs,
dead- time insertion and flexible synchronization
–8-bit basic timer with 8-bit prescaler
–UART with clock output for synchronous operation, Smartcard, IrDA, LIN
–SPI interface up to 8 Mbit/s
–I2C interface up to 400 Kbit/s
–Analog-to-digital con v erter 10-bit, ±1 LSB ADC with up to 10 multiple x ed channels
6/17Doc ID 16361 Rev 1
UM0817Hardware and layout
Figure 5.STM8S105C6 block diagram
For more information see the complete STM8S documentation.
Doc ID 16361 Rev 17/17
Hardware and layoutUM0817
2.2 ST-Link
The ST-Link provides a USB interface for programming and debugging using a sin gle wire
interface module (SWIM) . The ST-Link module of the STM8S-DISCO VER Y e v aluation b oard
also supplies 5 V and 3.3 V to the STM8S105C6 module.
Note:The driver for ST-Link is installed automatically when the USB is connected.
For more information about ST-Link debugging and programming features refer to the
software and debug documentation.
For information about the SWIM protocol, refer t o UM0470.
2.2.2 Using the ST-Link on other applications
You can connect your ST-Link to other applications in 2 ways.
●By removing the solder bridges: This way uses the ST-Link withou t br eakin g th e PCB:
Unsolder the two solder bridges SB1 and SB2 under the SWIM connector. See
Figure 7. You can re-solder the two bridges at a later date thus keeping the STM8S-
DISCOVERY usable.
●By removing it from your board: This way constitutes a good alternative to programming
the STM8 devices in other applications. See Figure 8.
Figure 7.ST-Link alternative
Remove SB1 and SB2 solder bridges
8/17Doc ID 16361 Rev 1
UM0817Hardware and layout
Figure 8.Separated ST-Link module
STM8S105C6
eval board
STLink
SWI M
Warning:By removing this module you will lose power supply on the
STM8S105C6 evaluation board. In consequence, you will not
be able to program and use the STM8 S105C6 evaluation
board without a SWIM cable and an external power supply.
To reconnect your STM8S105C6 use connector CNn see
Section 3: Daughter board connection.
2.3 Power supply and power selection
The power supply is provided by a USB connector. Jumper JP1 selects the VDD value (5 V
or regulated 3.3 V) see Figure 9.
Figure 9.Power selection
VDD = 5 V
VDD = 3.3 V
Doc ID 16361 Rev 19/17
Hardware and layoutUM0817
2.4 Single touch sensing
A touch sensing button TS1 is available on the STM8S-DISCOVERY evaluation board (see
Figure 10).
Figure 10. Touch sensing schematic
To disable the touch sensing interface and to use PC1, PC2 and PC3 as standard I/O, you
need to unsolder the 2-1 connection and solder 2-3 connection on SB4 and SB3, you also
need to unsolder the R2 resistor.
RC acquisition principle
The RC acquisition method detects a human touch on k ey to uch sensor (TS1) by measuring
the small variation of the touch electrode capacitance (C2). Electrode capacitance C2 is
periodically charged and discharged through a fixed resistor (R2).
The capacitance value depends o n the following parameters: electrode area (A), relative
dielectric constant of the insulator (eR), the relative permittivity of air (e0) and the distance
between the two electrodes.
For more information about touch sensing please refer to AN2927.
10/17Doc ID 16361 Rev 1
UM0817Daughter board connection
3 Daughter board connection
Four 12-pin male headers CN1, CN2, CN3 and CN4 are connected to the STM8S105C6
microcontroller. See the following tables for pin assignments.
Table 1.CN1 pinout
Pin number
(Cn1)
11NRSTIOReset
22OSCIN/PA1IOPort A1
33OSCOUT/PA2 IOPort A2
44Vssio_1SI/O ground
55VssSDigital ground
66VCAPS1.8V regulator capacito r
77VddSDigital power supply
88Vddio_1SI/O power supply
nformation in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve th
ight to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at an
ime, without notice.
ll ST products are sold pursuant to ST’s terms and conditions of sale.
urchasers are solely respon sibl e fo r the c hoic e, sele cti on an d use o f the S T prod ucts and s ervi ces d escrib ed he rein , and ST as sumes n
iability whatsoever relati ng to the choice, selection or use of the ST products and services described herein.
o license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of th
ocument refers to any third pa rty p ro duc ts or se rv ices it sh all n ot be deem ed a lice ns e gr ant by ST fo r t he use of su ch thi r d p arty produc
r services, or any intellectua l property c ontained the rein or consi dered as a warr anty coverin g the use in any manner whats oever of suc
hird party products or servi ces or any intellectual property contained therein.
NLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIE
ARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIE
ARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICUL AR PURPOSE (AND T HEIR EQUIVALE NTS UNDER THE LAW
F ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
NLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NO
ECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAININ
PPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJ UR
EATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIV
RADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
esale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately vo
ny warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, an
iability of ST.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document su persedes and replaces all information previously supplied.