UM1482 User Manual
STM8SVLDISCOVERY
STM8S value line discovery
Introduction
The STM8SVLDISCOVERY is a quick start evaluation kit designed to help users discover the STM8S value line features and develop their own applications. It is based on the STM8S003 microcontroller and includes an embedded debugger (ST-LINK) and a user button. Numerous applications are available from www.st.com/stm8svldiscovery.
Features
- STM8S003K3T6 microcontroller: 8 KB Flash, 1 KB RAM, 128 bytes EEPROM
- Powered by USB cable connected between a PC and the STM8SVLDISCOVERY
- Selectable power output: 5 V or 3.3 V
- Push button, B1
- User LED, LD1
- Extension header for all I/Os
- Wrapping area for users' own application development
- Embedded ST-LINK for STM8S
- USB interface for programming and debugging
- SWIM debug support
Figure 1: A photograph of the STM8SVLDISCOVERY evaluation board, showing its main components including the STM8S microcontroller, ST-LINK debugger, USB connector, LEDs (LD1, LD2), user button (B1), and various headers and connectors.
Contents
This document is structured as follows:
- Quick start
- Hardware and layout
- 2.1 STM8S003K3T6 microcontroller
- 2.2 ST-LINK
- 2.2.1 Using the ST-LINK
- 2.2.2 Using the ST-LINK on other STM8S applications
- 2.3 Power supply and power selection
- 2.4 LEDs
- 2.5 Push button
- Daughterboard connection
- Mechanical drawing
- Electrical schematics
- Revision history
Hardware and layout
The STM8SVLDISCOVERY is designed around the STM8S003K3T6 microcontroller, housed in an LQFP32 package. The board is divided into two distinct sections that can be separated: the STM8S003K3T6 module and the ST-LINK module.
Figure 2: A hardware block diagram illustrating the main functional blocks of the STM8SVLDISCOVERY. It shows a USB interface connecting to an ST-LINK module, which in turn interfaces with the STM8S003K3 microcontroller. Peripherals like GPIOs, LED (LD1), and Button (B1) are connected to the microcontroller. A 'Wrapping area' is also indicated.
Figure 3: A detailed layout diagram of the top side of the STM8SVLDISCOVERY PCB. It labels the USB connector, LEDs (LD2, LD1), ST-LINK core components, SWIM connector (CN7), the possible separation point between the ST-LINK and MCU modules, the power supply jumper (JP1), the external oscillator footprint, the STM8S003K3T6 microcontroller, and the user button (B1). It also shows the pinout headers (CN1, CN2, CN3, CN4) and the wrapping area.
2.1 STM8S003K3T6 microcontroller
Figure 4: An image of the STM8S003K3T6 microcontroller chip, presented in an LQFP32 (32-pin quad flat package) with dimensions of 7x7 mm.
The STM8S003K3T6 8-bit microcontroller offers:
- 8 Kbytes of Flash program memory
- 128 bytes data EEPROM
- 1 Kbyte RAM
Key features of this device include:
- High-performance proprietary 8-bit core with excellent code density.
- Innovative design architecture, featuring 16-bit index registers, a 32-bit memory interface, and a 3-stage pipeline.
- Leading-edge embedded Flash memory technology.
- Advanced clock controller for optimized power consumption and noise control.
- A comprehensive set of embedded peripherals: UART, I²C, SPI, timers, analog, and debugging functions.
These features provide the following benefits:
- Cost efficiency derived from an optimized product manufacturing flow.
- Lower system cost due to integrated peripherals.
- Full compatibility with the existing STM8S product portfolio.
- Efficient power management capabilities.
- An easy-to-use, non-intrusive, and low-cost development environment.
The device is particularly suitable for applications such as:
- Consumer electronics
- Large-volume industrial equipment
- PC peripherals
- All mass market electronics
2.2 ST-LINK
The ST-LINK provides a USB interface for programming and debugging, utilizing a single wire interface module (SWIM). The ST-LINK module on the STM8SVLDISCOVERY also supplies 5 V and 3.3 V to the STM8S003K3T6 module.
2.2.1 Using the ST-LINK
Figure 6: A diagram showing the typical configuration for using the STM8SVLDISCOVERY. It depicts a personal computer connected via a USB cable to the STM8SVLDISCOVERY board. Hardware requirements include a USB cable (Type A to B) and a PC running Windows XP, Vista, or 7. Optional software environments like IAR Embedded Workbench for STM8, or the ST Toolset (ST Visual Develop and ST Visual Program) which support ST-LINK SWIM, are also mentioned.
Note: The driver for ST-LINK is installed automatically when the USB is connected. For detailed information on debugging and programming features, refer to resources on ST-LINK, STVD, STVP, and SWIM available on www.st.com.
2.2.2 Using the ST-LINK on other STM8S applications
The ST-LINK can be connected to other STM8S applications in two ways:
- By removing the solder bridges: This method utilizes the ST-LINK without physically breaking the PCB. It involves unsolderingsolder bridges SB1 and SB2 located under the SWIM connector (see Figure 7). These bridges can be re-soldered later to restore the STM8SVLDISCOVERY's full functionality.
- By breaking the board and removing the ST-LINK: This approach offers an alternative for programming STM8S devices in other applications (see Figure 8).
Note: This ST-LINK is exclusively for the STM8S family. It should not be used with other STM8 families.
Figure 7: A close-up view of the STM8SVLDISCOVERY board highlighting the SWIM connector (CN7) and the solder bridges SB1 and SB2. The description indicates that removing these bridges allows the ST-LINK to be used independently without physically separating the board.
Figure 8: An illustration showing the STM8SVLDISCOVERY board with the ST-LINK module physically detached from the STM8S003K3T6 evaluation board. It indicates that the ST-LINK module can be used separately, but requires an external SWIM cable and power supply for the STM8S003K3T6 board.
Warning: Removing the ST-LINK module will disable power supply to the STM8S003K3T6 evaluation board. Consequently, a SWIM cable and an external power supply will be necessary to program and operate the STM8S003K3T6 board. To reconnect the STM8S003K3T6, use connector CN7 as detailed in Table 1.
Pin | CN2 | Designation |
---|---|---|
1 | VDD_TARGET | VDD from application |
2 | SWIM | SWIM data input/output |
3 | GND | Ground |
4 | SWIM_RST | SWIM reset |
2.3 Power supply and power selection
The power supply is provided via a USB connector. Jumper JP1 is used to select the VDD value (5 V or regulated 3.3 V), as shown in Figure 9.
Figure 9: A diagram showing the JP1 jumper on the STM8SVLDISCOVERY board. It illustrates the two possible positions for JP1, one connecting to '3V3 VDD' and the other to '5V VDD', indicating the selection of either 3.3 V or 5 V power supply.
2.4 LEDs
The ST-LINK provides two LEDs:
- LD1: A green LED connected to the I/O PD0 of the STM8S003K3.
- LD2: A red LED that indicates communication between the PC and the ST-LINK.
2.5 Push button
Push button B1 is connected to the I/O PB7 of the STM8S003K3.
Daughterboard connection
Four 12-pin male headers (CN1, CN2, CN3, and CN4) are connected to the STM8S003K3T6 microcontroller. The following tables provide pin assignments:
CN1 Pin | Pin (chip) | Pin name | Type | Main function | Alternate function |
---|---|---|---|---|---|
1 | 1 | NRST | I/O | Reset | |
2 | 2 | OSCIN/PA1 | I/O | Port A1 | |
3 | 3 | OSCOUT/PA2 | I/O | Port A2 | |
4 | 4 | GND | S | Digital ground | |
5 | 4 | GND | S | Digital ground | |
6 | 5 | VCAP | S | 1.8 V regulator capacitor | |
7 | NC | VDD | S | Digital power supply | |
8 | 7 | PA3 | I/O | Port A3 | Timer 2 - channel 3 / SPI master slave |
8 | PF4 | I/O | Port F4 |
CN2 Pin | Pin (chip) | Pin name | Type | Main function | Alternate function |
---|---|---|---|---|---|
1 | 17 | PE5 | I/O | Port E5 | SPI master slave |
2 | 18 | PC1 | I/O | Port C1 | Timer 1 - channel 1 / UART2 synchronous clock |
3 | 19 | PC2 | I/O | Port C2 | Timer 1 - channel 2 |
4 | 20 | PC3 | I/O | Port C3 | Timer 1 - channel 3 |
5 | 21 | PC4 | I/O | Port C4 | Timer 1 - channel 4 |
6 | 22 | PC5 | I/O | Port C5 | SPI clock |
7 | 23 | PC6 | I/O | Port C6 | SPI master out / slave in |
8 | 24 | PC7 | I/O | Port C7 | SPI master in / slave out |
CN3 Pin | Pin (chip) | Pin name | Type | Main function | Alternate function |
---|---|---|---|---|---|
1 | 9 | PB7/B1 | IO | Port B7 | |
2 | 10 | PB6 | IO | Port B6 | |
3 | 11 | PB5 | I/O | Port B5 | I2C data |
4 | 12 | PB4 | I/O | Port B4 | I2C clock |
5 | 13 | PB3 | I/O | Port B3 | Analog input 3 / Timer 1 external trigger |
6 | 14 | PB2 | I/O | Port B2 | Analog input 2 / Timer 1 inverted channel 3 |
7 | 15 | PB1 | I/O | Port B1 | Analog input 1 / Timer 1 inverted channel 2 |
8 | 16 | PB0 | I/O | Port B0 | Analog input 0 / Timer 1 inverted channel 1 |
CN4 Pin | Pin (chip) | Pin name | Type | Main function | Alternate function |
---|---|---|---|---|---|
1 | 25 | PD0/LD1 | I/O | Port D0 | Timer 1 - break input / configurable clock output |
2 | 26 | PD1/SWIM | I/O | Port D1 | SWIM data interface |
3 | 27 | PD2 | I/O | Port D2 | Timer 2 - channel 3 |
4 | 28 | PD3 | I/O | Port D3 | Timer 2 - channel 2 / ADC external trigger |
5 | 29 | PD4 | I/O | Port D4 | Timer 2 - channel 1 / BEEP output |
6 | 30 | PD5 | I/O | Port D5 | UART1 data transmit |
7 | 31 | PD6 | I/O | Port D6 | UART1 data receive |
8 | 32 | PD7 | I/O | Port D7 | Top level interrupt / Timer 1 - channel 4 |
Mechanical drawing
Figure 10: A technical drawing of the STM8SVLDISCOVERY board with precise dimensions indicated for length, width, and component placement areas.
Electrical schematics
Figure 11: A high-level electrical schematic showing the connection between the ST-LINK module and the MCU module via the SWIM interface.
Figure 12: A detailed schematic of the STM8S003K3T6 microcontroller's connections to various components on the board, including the USB connector, LEDs, push button, and the header connectors (CN1, CN2, CN3, CN4). It shows pin assignments and associated components like capacitors and resistors.
Figure 13: A detailed schematic of the ST-LINK circuitry, showing its connection to the USB interface and the SWIM pins. It includes components like the STM32F103C8T6 microcontroller (used for the ST-LINK functionality), crystal oscillator, voltage regulator, LEDs, and connectors.
Revision history
Date | Revision | Changes |
---|---|---|
18-Nov-2011 | 1 | Initial release. |
Important Information
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries reserve the right to make changes, corrections, modifications, or improvements to this document and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST's terms and conditions of sale. Purchasers are solely responsible for the choice, selection, and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection, or use of the ST products and services described herein. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. ST disclaims any express or implied warranty with respect to the use and/or sale of ST products, including without limitation implied warranties of merchantability, fitness for a particular purpose, or infringement of any patent, copyright, or other intellectual property right. ST products are not recommended, authorized, or warranted for use in military, aircraft, space, life-saving, or life-sustaining applications, nor in products or systems where failure or malfunction may result in personal injury, death, or severe property or environmental damage. ST products not specified as "Automotive Grade" may only be used in automotive applications at the user's own risk. ST and the ST logo are trademarks or registered trademarks of ST in various countries. Information in this document supersedes and replaces all information previously supplied. © 2011 STMicroelectronics. All rights reserved.