The STM8S-DISCOVERY is a quick start evaluation board which helps you to discover the
STM8 features , and to de velop and shar e your o wn application. It is based on an STM8 S105
and includes an embedded debugger, ST-LINK, and a touch sensing button. Numerous
applications are available from the STM8S-Discovery web page.
It is very simple to get started using the STM8S-DISCOVERY, just follow these four steps:
1.Connect the STM8S-DISCOVERY to a PC with a USB cable.
2. Press the TS1 button, and observe LED LD1 bl inking.
3. Press the TS1 button to change b linking speed.
4. Visit www.st.com/stm8s-discovery and follow the tutorial, then discover other
applications.
The STM8S-DISCOVERY helps you develop and share your own application. You can
discover more of the STM8S f eatures b y down loading and e xe cuting the proposed pr ograms
in the project list.
Note:The software code corresponding to this application is availabl e under the name Discover
in the project list of the STM8S-Discovery web page.
Doc ID 16361 Rev 13/17
Page 4
Hardware and layoutUM0817
2 Hardware and layout
The STM8S-DISCOVERY is designed around the STM8S105C6T6 microcontroller in an
LQFP48 package. It has two distinct sections that may be separated, the STM8S105C6T6
module and the ST-LINK module.
Figure 2 illustrates the connections between the STM8S105C6T6 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 separation (for more details refer to Section 2.2.2: Using the ST-LINK
on other STM8S applications).
Figure 2.Hardware block diagram
STM8S105C6T6
4/17Doc ID 16361 Rev 1
Page 5
UM0817Hardware and layout
Figure 3.Top layout
USB connector
ST-LINK JTAG
USB data transfer LED
ST-LINK core
ST-LINK module
SWIM connector
LED (LD1)
Power supply jumper
External Osc. (16 MHz)
STM8S105C6T6
Touch sensing button (TS1)
Wrapping area
STM8S105C6T6 module
SO16 footprint
Possible separation point
Doc ID 16361 Rev 15/17
Page 6
Hardware and layoutUM0817
2.1 STM8S105C6T6 microcontroller
Figure 4.STM8S105C6T6 package
The STM8S105C6T6 8-bit microcontroller offers:
32 Kbytes of Flash program memory
1 Kbyte true data EEPROM
2 Kbytes RAM
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
–Standard S/W library for firmware and touch sensing 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
Page 7
UM0817Hardware and layout
Figure 5.STM8S105 block diagram
For more information see the STM8S105xx datasheet (Doc ID 14771) on the ST website.
Doc ID 16361 Rev 17/17
Page 8
Hardware and layoutUM0817
2.2 ST-LINK
The ST-LINK provides a USB interface for programming and debugging using a single wire
interface module (SWIM). The ST-LINK module of the STM8S-DISCOVERY also supplies
5 V and 3.3 V to the STM8S105C6T6 module.
2.2.1 Using the ST-LINK
Figure 6.Typical configuration
Hardware requirements:
- USB cable type A to B
- Computer with Windows 2000, XP or Vista OS
Software requirement:
ST Toolset (ST Visual Develop and ST Visual Program)
which support ST -LINK SWIM
Note:The driver for ST-LINK is installed automatically when the USB is connected.
For information about debugging and programming features refer to ST-LINK UM0627,
UM0036 STVD and RN0011 STVP. For information about SWIM refer to UM0470.
2.2.2 Using the ST-LINK on other STM8S applications
You can connect your ST-LINK to other STM8S applications in 2 ways.
●By removing the solder bridges: This wa y uses th e ST-LINK without breaking the 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 STM8S devices in other applications. See Figure 8.
Note:This ST-LINK only supports the STM8S family. Do not use it with other STM8 families.
Figure 7.ST-LINK without breaking the PCB
Remove SB1 and SB2 solder bridges
8/17Doc ID 16361 Rev 1
Page 9
UM0817Hardware and layout
Figure 8.Separated ST-LINK module
STM8S105C6T6
STM8S105C6
eval board
STLink
SWI M
Warning:By removing this module you will lose power supply on the
STM8S105C6T6 evaluation board. In consequence, you will
not be able to program and use the STM8S105C6T6 board
without a SWIM cable and an external power supply.
To reconnect your STM8S105C6T6 use connector CNn see
Section 3: Daughterboard 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
Page 10
Hardware and layoutUM0817
2.4 Single touch sensing
A touch sensing button TS1 is available on the STM8S-DISCOVERY (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
Page 11
UM0817Daughterboard connection
3 Daughterboard connection
Four 12-pin male headers CN1, CN2, CN3 and CN4 are connected to the STM8S105C6T6
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.