STMicroelectronics NUCLEO-8S208RB User Manual
Реклама
Реклама
UM2364
User manual
STM8S208RBT6 Nucleo-64 board
Introduction
The STM8S208RBT6 Nucleo-64 board (NUCLEO-8S208RB) provides an affordable and flexible way for users to try out new concepts and build prototypes with STM8S Series microcontrollers in the LQFP64 package, which provide various combinations of performance, power consumption and features. The Arduino ™ Uno V3 connectivity support and the ST morpho headers allow easy expansion of the functionality of the Nucleo open development platform with a wide choice of specialized shields. The STM8S208RBT6
Nucleo-64 board does not require any separate probe, as it integrates the ST-LINK/V2-1 debugger and programmer.
Figure 1. STM8S208RBT6 Nucleo-64 board
May 2018
Picture is not contractual.
UM2364 Rev 1
www.st.com
1
Contents
Contents
UM2364
Hardware configuration variants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Hardware layout and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Embedded ST-LINK/V2-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
ST-LINK/V2-1 firmware upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Power supply and power selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Power supply input from the USB connector . . . . . . . . . . . . . . . . . . . . . 15
External power supply inputs: VIN and E5V . . . . . . . . . . . . . . . . . . . . . 16
External power supply input: 3V3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
External power supply output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
JP1 (T_NRST) and JP3 (IDD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
USART communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
UM2364 Rev 1
UM2364 Contents
Product history and limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
CE Compliance Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Electromagnetic compatibility and immunity . . . . . . . . . . . . . . . . . . . . . . 27
9 FCC Compliance Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
UM2364 Rev 1
3
List of tables
List of tables
UM2364
UM2364 Rev 1
UM2364
List of figures
List of figures
UM2364 Rev 1
5
Features
1 Features
UM2364
The STM8S208RBT6 Nucleo-64 board offers the following features:
• STM8S208RBT6 microcontroller in LQFP64 package
• Flash memory size: 128 Kbytes
• Four LEDs:
– USB communication (LD4), 5 V ST-LINK (LD3), user LED (LD2), power LED (LD1)
• Two push-buttons: USER and RESET
• Two types of extension resources
– Arduino ™ Uno V3 connectivity
– ST morpho extension pin headers for full access to all STM8S I/Os
• Flexible board power supply:
– USB VBUS or external source (3.3 V, 5 V, 7 - 12 V)
– Power management access point
• On-board ST-LINK/V2-1 debugger and programmer with SWIM connector
• USB re-enumeration capability. Three different interfaces supported on USB:
– Virtual COM port
– Mass storage
– Debug port
• Comprehensive free software STM8 standard library including a variety of software examples
Evaluation tools marked as "ES" or "E" are not yet qualified and therefore they are not ready to be used as reference design or in production. Any consequences deriving from such usage will not be at ST charge. In no event, ST will be liable for any customer usage of these engineering sample tools as reference design or in production.
"E" or "ES" marking examples of location:
• On the targeted STM8S that is soldered on the board (for illustration of STM8S marking, refer to the section “Package information” of the STM8S208xx datasheet available at www.st.com
).
• Next to the evaluation tool ordering part number, that is stuck or silk-screen printed on the board.
This board features a specific STM8S Series device version which allows the operation of any library. This STM8S Series device shows a “U” marking option at the end of the standard part number and is not available for sales.
UM2364 Rev 1
UM2364 Ordering information
Table 1 lists the order codes and the respective targeted STM8S.
Order code
NUCLEO-8S208RB
Table 1. Ordering information
Targeted STM8S
STM8S208RBT6
The meaning of the NUCLEO-TXXXRY codification is explained in Table 2 with an example:
TXXXX
R
NUCLEO-TXXXRY
Y
Table 2. Codification explanation
Description Example: NUCLEO-8S208RB
STM8 product line
STM8 package pin count
STM8 Flash memory size
(3 for 256 bytes, 4 or 6 for
32 Kbytes, 8 for 64 Kbytes,
B for 128 Kbytes)
8S208
64 pins
128 Kbytes
The order code is printed on a sticker placed at the top or bottom side of the board.
4 Conventions
Table 3 provides the conventions used for the ON and OFF settings in the present
document.
Table 3. ON/OFF conventions
Convention Definition
Jumper JP1 ON
Jumper JP1 OFF
Solder bridge SBx ON
Solder bridge SBx OFF
Jumper fitted
Jumper not fitted
SBx connections closed by solder or 0 ohm resistor
SBx connections left open
UM2364 Rev 1
36
Quick start UM2364
The STM8S208RBT6 Nucleo-64 board (NUCLEO-8S208RB) is a low-cost and easy-to-use development platform used to quickly evaluate and start a development with an STM8S
Series microcontroller in LQFP64 package.
Before installing and using the product, accept the Evaluation Product License Agreement from the www.st.com/epla webpage.
Follow the sequence below to configure the STM8S Nucleo board and launch the demo software:
1.
Check the jumper position on the board: JP3 (IDD) on position (1-2) or (2-3), and JP2 on position (1-2)
2. Connect the STM8S Nucleo board to a PC with a USB cable ‘Type-A to Micro-B’ through USB connector CN6 to power the board. As a result, LEDs LD4 (COM) and
LD1 (PWR) light up, and the green LED LD2 blinks.
3. The demo software and several software examples that allow to use the STM8S
Nucleo board features are available at the www.st.com/stm8nucleo webpage.
4. Develop an application using the available examples.
• Windows ® OS (7, 8 and 10)
• USB Type-A to Micro-B cable
• STMicroelectronics: free STVD-STM8 (using Cosmic toolchain)
• IAR
™
: IAR-EWSTM8
• Cosmic: free IDEA
The board can be delivered with different configurations of the oscillator of the STM8S. For all the details concerning the high-speed configurations of the oscillator, refer to
.
UM2364 Rev 1
UM2364
6
Hardware layout and configuration
Hardware layout and configuration
The STM8S Nucleo board is designed around the STM8S Series microcontrollers in a 64pin LQFP package.
Figure 2 shows the connections between the STM8S and its peripherals (ST-LINK/V2-1,
push-button, LED, Arduino™ connectors and ST morpho connector).
show the location of these features on the STM8S Nucleo board.
Figure 5 shows the mechanical dimension of the STM8S Nucleo board.
Figure 2. Hardware block diagram
67/,1.SDUW
0LFUR%
86%
(PEHGGHG
67/,1.9
0&8SDUW
%
86(5
,2
67065%
PLFURFRQWUROOHU
,2
,2 5(6(7
%
5(6(7
,2
/('
/'
069
UM2364 Rev 1
36
Hardware layout and configuration
Figure 3. STM8S Nucleo board top layout
&1
67/,1.0LFUR%86%FRQQHFWRU
%5(6(7EXWWRQ
%86(5EXWWRQ
/'&20
UHGJUHHQ/('
UM2364
&1
5HVHUYHG
/'SRZHU
JUHHQ/('
&1
$UGXLQRFRQQHFWRU
&1
67PRUSKRFRQQHFWRU
&1
$UGXLQRFRQQHFWRU
-3
,''PHDVXUHPHQW
&1
$UGXLQRFRQQHFWRU
8
6706PLFURFRQWUROOHU
&1
67PRUSKRFRQQHFWRU
/'
8VHU/('
&1
$UGXLQRFRQQHFWRU
06Y9
UM2364 Rev 1
UM2364 Hardware layout and configuration
Figure 4. STM8S Nucleo board bottom layout
6%
8VHU/('
6%
9
6%
7B0&2
6%6%
;FU\VWDO
06Y9
UM2364 Rev 1
36
Hardware layout and configuration
Figure 5. STM8S Nucleo board mechanical dimensions
UM2364
All dimensions in millimeters.
The STM8S Nucleo board is divided into two parts: ST-LINK part and target STM8S part.
The ST-LINK part of the PCB can be cut out to reduce the board size. In this case the remaining target STM8S part can only be powered by VIN, E5V and 3V3 on ST morpho connector CN1 or VIN and 3V3 on Arduino™ connector CN5.
UM2364 Rev 1
UM2364 Hardware layout and configuration
The ST-LINK/V2-1 programming and debugging tool is integrated in the STM8S Nucleo board.
The embedded ST-LINK/V2-1 supports only SWIM for STM8S devices. For information about debugging and programming features refer to the ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32 user manual (UM1075), which describes in details all the ST-LINK/V2 features.
The changes versus ST-LINK/V2 version are listed below.
• New features supported on ST-LINK/V2-1:
– USB software re-enumeration
– Virtual COM port interface on USB
– Mass storage interface on USB
– USB power management request for more than 100 mA power on USB
• Features not supported on ST-LINK/V2-1:
– SWIM interface
– Minimum supported application voltage limited to 3 V
• Known limitation:
– Activating the readout protection on ST-LINK/V2-1 target prevents the target application from running afterwards. The target readout protection must be kept disabled on ST-LINK/V2-1 boards.
A typical hardware setup for using the embedded ST-LINK/V2-1 is shown in
Figure 6. Typical configuration
,ĂƌĚǁĂƌĞƌĞƋƵŝƌĞŵĞŶƚƐ͗
ͲŽŵƉƵƚĞƌǁŝƚŚtŝŶĚŽǁƐΠϳ͕ϴŽƌϭϬ
Ͳh^ĐĂďůĞdLJƉĞͲƚŽDŝĐƌŽͲ
ĞǀĞůŽƉŵĞŶƚƚŽŽůĐŚĂŝŶ͗
Ͳ/ZΡ͗/ZͲt^dDϴ
Ͳ^dDŝĐƌŽĞůĞĐƚƌŽŶŝĐƐ͗ĨƌĞĞ^dsͲ^dDϴ
;ƵƐŝŶŐK^D/ƚŽŽůĐŚĂŝŶͿ
ͲK^D/͗ĨƌĞĞ/
06Y9
6.2.1 Driver
Before connecting the Nucleo-64 board to a Windows ® 7, Windows ® 8, or Windows ® 10 PC via USB, a driver for ST-LINK/V2-1 must be installed. It can be downloaded from the www.st.com
website.
In case the STM8S Nucleo-64 board is connected to the PC before installing the driver, the
PC device manager may report some Nucleo interfaces as “Unknown”.
UM2364 Rev 1
36
Hardware layout and configuration
Note:
UM2364
To recover from this situation, after installing the dedicated driver, the association of
“Unknown” USB devices found on the STM8S Nucleo-64 board with this dedicated driver, must be updated in the device manager manually.
It is recommended to proceed using USB Composite Device, as shown in
Figure 7. Updating the list of drivers in Device Manager
6.2.2 ST-LINK/V2-1 firmware upgrade
The ST-LINK/V2-1 embeds a firmware upgrade mechanism for in-situ upgrade through the
USB port. As the firmware may evolve during the life time of the ST-LINK/V2-1 product (for example new functionality, bug fixes, support for new microcontroller families), it is recommended to periodically visit www.st.com
website before starting to use the STM8S
Nucleo board in order to stay up-to-date with the latest firmware version.
UM2364 Rev 1
UM2364
6.3
6.3.1
Hardware layout and configuration
Power supply and power selection
The power supply is provided either by the host PC through the USB cable, or by an external source: VIN (7 V - 12 V), E5V (5 V) or 3V3 power supply pins on CN5 or CN1. In case VIN, E5V or 3V3 is used to power the STM8S Nucleo board, using an external power supply unit or an auxiliary equipment, this power source must comply with the standard
EN-60950-1: 2006+A11/2009, and must be Safety Extra Low Voltage (SELV) with limited power capability.
Power supply input from the USB connector
The ST-LINK/V2-1 supports USB power management allowing to request more than
100 mA current to the host PC.
All parts of the STM8S Nucleo board and shield can be powered from the ST-LINK USB connector CN6 (5V_STLINK or 5V_USB_CHG). Note that only the ST-LINK part is powersupplied before the USB enumeration as the host PC only provides 100 mA to the board at that time. During the USB enumeration, the STM8S Nucleo board requires 300 mA of current to the host PC. If the host is able to provide the required power, the STM8S microcontroller is powered and the green LED LD1 is turned ON, thus the STM8S Nucleo board and its shield can consume a maximum of 300 mA current, not more. If the host is not able to provide the required current, the STM8S microcontroller and the MCU part including the extension board are not power supplied. As a consequence the green LED LD1 remains turned OFF. In such case, it is mandatory to use an external power supply as explained in
Section 6.3.2: External power supply inputs: VIN and E5V on page 16
.
When the board is power supplied by USB (5V_STLINK_SW), a jumper must be connected
between pin 1 and pin 2 of JP2 as shown in Table 6: Power-related jumper on page 16
.
SB6 is configured according to the maximum current consumption of the board when powered by USB (5V_STLINK_SW). The SB6 solder bridge can be set in case the board is powered by USB and the maximum current consumption on 5V_STLINK_SW does not exceed 100 mA (including an eventual extension board or Arduino™ shield). In such condition, USB enumeration will always succeed since no more than 100mA is requested to the PC. Possible configurations of SB6 are summarized in
Solder bridge state
SB6 OFF
SB6 ON
Table 4. SB9 configuration table
Power supply Allowed current
USB power through CN6
300 mA max
100 mA max
Note:
Warning: If the maximum current consumption of the Nucleo and its extension boards exceeds 300 mA, it is mandatory to power the Nucleo using an external power supply connected to E5V or VIN.
In case the board is powered by an USB charger, there is no USB enumeration, so led LD1 remains set to OFF permanently and the STM8S is not powered. In this specific case SB6 needs to be set to ON, thus allowing the STM8S to be powered anyway.
UM2364 Rev 1
36
Hardware layout and configuration
6.3.2 External power supply inputs: VIN and E5V
UM2364
The external power sources VIN and E5V are summarized in the
When the board is power supplied by VIN or E5V, the jumper configuration must be the following:
• VIN: jumper on JP2 pin 3 and pin 4
• E5V: jumper on JP2 pin 5 and pin 6
• Solder bridge SB6 OFF
Input power name
Connecto r pins
VIN
E5V
CN5 pin 8
CN1 pin 24
CN1 pin 6
Table 5. External power sources
Voltage range
Max current
Limitation
7 V to
12 V
800 mA
From 7 V to 12 V only, and input current capability linked to input voltage:
– 800 mA input current when V in
= 7 V
– 450 mA input current when 7 V < V in
<= 9 V
– 250 mA input current when 9 V < V in
< 12 V
4.75 V to
5.25 V
500 mA -
Jumper
Table 6. Power-related jumper
Description
5V_STLINK_SW (ST-LINK VBUS) is used as power source when JP2 is set as shown below (Default setting).
5V_VIN is used as power source when JP2 is set as shown below.
JP2
E5V is used as power source when JP2 is set as shown below.
5V_USB_CHG is used as power source when JP2 is set as shown below.
UM2364 Rev 1
UM2364 Hardware layout and configuration
Using VIN or E5V as external power supply
VIN or E5V can be used as external power supply in case the current consumption of the
STM8S Nucleo and extensions boards exceeds the allowed current on USB. In this condition, it is still possible to use the USB for communication, for programming or debugging only, but it is mandatory to power supply the board first using VIN or E5V, and then connect the USB cable to the PC. Proceeding this way ensures that the enumeration occurs thanks to the external power source.
The following power sequence procedure must be respected:
1.
Connect the jumper between pin 3 and pin 4 (VIN), or pin 5 and pin 6 (E5V) of JP2
2. Check that SB6 is OFF
3. Connect the external power source to VIN or E5V
4. Power on the external power supply 7 V< VIN < 12 V to VIN, or 5 V for E5V
5. Check that LD1 is turned ON
6. Connect the PC to USB connector CN6
If this order is not respected, the board may be supplied by 5V_STLINK first, then by VIN or
E5V, and the following risks may be encountered:
1.
If more than 300 mA current is needed by the board, the PC may be damaged or the current supply can be limited by the PC. As a consequence the board is not powered correctly.
2. 300 mA is requested at enumeration (since SB6 must be OFF) so a risk exists that the request is rejected and the enumeration does not succeed if the PC cannot provide such current. Consequently the board is not power supplied (LED LD1 remains OFF).
Input power name
It can be of interest to use the 3V3 (CN5 pin 4, or CN1 pin 16) directly as power input for instance in case the 3.3 V is provided by an extension board. When the STM8S Nucleo board is power supplied by 3V3, the ST-LINK is not powered, thus the programming and
debug features are unavailable. The external power source 3V3 is summarized in Table 7.
Connectors pins
Table 7. 3V3 external power source
Voltage range Limitation
3V3
CN5 pin 4
CN1 pin 16
3 V to 3.6 V
Used when the ST-LINK part of the PCB is cut off or
SB16 is OFF.
Two different configurations are possible when using 3V3 to power the board:
• ST-LINK is removed (PCB cut).
• SB16 (3.3 V regulator) is OFF.
When powered by USB, VIN or E5V, the +5 V (CN5 pin 5 and pin 1 or CN1 pin 18) can be used as output power supply for an Arduino™ shield or an extension board. In this case, the maximum current of the power source specified in
Table 5 on page 16 must be respected.
UM2364 Rev 1
36
Hardware layout and configuration UM2364
The 3V3 (CN5 pin 4 or CN1 pin 16) can be used also as power supply output. The current is limited by the maximum current capability of the regulator U2 (1.2 A max).
6.4 LEDs
COM LD4 : the tricolor LED (green, orange, red) LD4 (COM) provides information about ST-
LINK communication status. LD4 default color is red. LD4 turns to green to indicate that communication is in progress between the PC and the ST-LINK/V2-1, with the following setup:
• Slow blinking Red/OFF: at power-on before USB initialization
• Fast blinking Red/OFF: after the first correct communication between the PC and
ST-LINK/V2-1 (enumeration)
• Red LED ON: when the initialization between the PC and ST-LINK/V2-1 is complete
• Green LED ON: after a successful target communication initialization
• Blinking Red/Green: during communication with target
• Green ON: communication finished and successful
• Orange ON: Communication failure
5 V ST-LINK LD3 : the red LED indicates that the current distribution could not be performed as expected.
User LD2 : the green LED is a user LED connected to Arduino™ signal D13 corresponding to STM8S I/O PC5 (pin 11). Refer to
• the I/O is HIGH value, the LED is ON
• the I/O is LOW, the LED is OFF
PWR LD1 : the green LED indicates that the STM8S part is powered and +5 V power is available.
6.5 Push-buttons
Note:
B1 USER : the user button is connected to the I/O PE4 (pin 52) of the STM8S microcontroller.
B2 RESET : this push-button is connected to T_NRST, and is used to reset the STM8S microcontroller.
The blue and black plastic hats that are placed on the push-buttons can be removed if necessary, for example when a shield or an application board is plugged on top of the
Nucleo board. This avoids pressure on the buttons and consequently a possible permanent
STM8S reset.
6.6 JP1 (T_NRST) and JP3 (IDD)
Jumper JP1 is not fitted and there is no incidence on STM32F103CBT6 (ST-LINK MCU)
T_NRST signal. When JP1 is connected, STM32F103CBT6 (ST-LINK MCU) T_NRST signal is connected to GND. The STM32F103CBT6 is forced in reset state.
UM2364 Rev 1
UM2364 Hardware layout and configuration
Jumper JP3, labeled IDD, is used to measure the STM8S microcontroller consumption by removing the jumper and by connecting an ammeter:
• Jumper ON: STM8S microcontroller is powered (default).
• Jumper OFF: an ammeter must be connected to measure the STM8S microcontroller current. If there is no ammeter, the STM8S microcontroller is not powered.
It is possible to select VDD to allow power supply of MCU in 3V3 or 5V:
• 3V3: pin 1 and 2 of JP3
• 5V: pin 2 and 3 of JP3
6.7 OSC clock supply
There are four ways to configure the pins corresponding to the external high-speed clock
(HSE):
• MCO from ST-LINK : MCO output of ST-LINK MCU is used as input clock. This frequency cannot be changed, it is fixed at 8 MHz and connected to PA1 of the STM8S microcontroller.
The following configuration is needed:
– SB14 OFF and S13 ON
– SB15 ON
– R15 and R16 removed
• HSE oscillator on-board from X2 crystal (not provided): for typical frequencies and their capacitors and resistors, refer to the STM8S microcontroller datasheet. The X2 crystal has the following characteristics: 8 MHz, 8 pF, and 50 ppm. It is recommended to use NX3225GD-8Mhz-EXS00A-CG04874 manufactured by NDK.
The following configuration is needed:
– SB13 and SB14 OFF
– R15 and R16 soldered
– C7 and C8 soldered with 12 pF capacitors
– SB15 OFF
• Oscillator from external PA1 : from an external oscillator through pin 23 of the CN1 connector.
The following configuration is needed:
– SB14 ON
– SB15 OFF
– R15 and R16 removed
• HSE not used : PA1 and PA2 are used as GPIOs instead of clock
The following configuration is needed:
– SB13 and SB14 ON
– SB15 (MCO) OFF
– R15 and R16 removed
UM2364 Rev 1
36
Hardware layout and configuration UM2364
The USART3 interface available on PD5 and PD6 of the STM8S microcontroller is connected to ST morpho and Arduino™ connectors on D0 and D1. USART connection is
USART name
USART3_TX
USART3_RX
Table 8. USART connection
STM8S pin ST morpho pin
PD5
PD6
35
37
Arduino™ connector
D1
D0
By default, the USART communication between the STM8S and STLINK-MCU is enabled, in order to support virtual COM port (SB11, SB12 OFF and SB17, SB19 ON).
If pins PA4 and PA5 are needed for any others applications as GPIO, SB11 and SB12 must
be ON, and SB17, SB19 must be OFF. In this case, the configuration is as shown in Table 9 .
Table 9. STM8S configuration of pins PE3 and PE4
STM8S GPIO
Solder Bridge
STM8S side
Solder Bridge
STLINK side
PA4 & PA5 inactive
PA4 & PA5 active
SB11,SB12 OFF
SB11,SB12 ON
SB17, SB19 ON
SB17, SB19 OFF
Bridge
SB1
SB2 (LD2-LED)
SB3
SB4
SB5
SB6
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
Table 10. Solder bridges
State
(1)
Description
5V_USB_CHG is active.
5V_USB_CHG is not active.
Green user LED LD2 is connected to D13 of Arduino™.
Green user LED LD2 is not connected.
B1 push button is connected to PE4.
B1 push button is not connected to PE4.
PD1 is connected.
PD1 is not connected: T_SWIM is disconnected from target.
GND is connected to AGND.
GND is not connected to AGND.
USB power through CN6 allowed (100 mA max).
USB power through CN6 allowed (300 mA max).
UM2364 Rev 1
UM2364 Hardware layout and configuration
Bridge
SB7, SB9 (ADC on A4 and A5)
SB8, SB10 (I
2
C on A4 and A5)
SB11, SB12
SB13, SB14 (X2 crystal)
SB15 (T_MCO)
SB16
SB17, SB19 (ST-LINK-USART)
SB18
Table 10. Solder bridges (continued)
State (1) Description
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
PB1 (ADC in) is connected to A4 and PB0 is connected to A5 (pin 5 and pin 6) on Arduino™ connector CN4 and ST morpho connector
CN1 (pin 36 and pin 38). Thus SB8 and SB10 must be OFF.
PB1 (ADC in) is disconnected from A4 and PB0 (ADC in) is disconnected from A5 (pin 5 and pin 6) on Arduino™ connector
CN4 and ST morpho connector CN1 (pin 36 and pin 38).
PE1 (I
2
C) is connected to A5 and PE2 (I
2
C) is connected to A4 (pin
5 and pin 6) on Arduino™ connector CN4 and ST morpho connector CN1 (pin 36 and pin 38) as I
2
C signals. Thus SB7 and
SB9 must be OFF.
PE1 (I
2
C) is disconnected from A5 and PE2 (I
2
C) is disconnected from A4 (pin 5 and pin 6) on Arduino™ connector CN4 and ST morpho connector CN1 (pin 36 and pin 38).
PA4 and PA5 (pin 10 and pin 11) connected to CN1.
PA4 and PA5 (pin 10 and pin 11) disconnected from CN1.
PA1 and PA2 (pin 2 and pin 3) are connected to CN1 (pin 23 and pin 25) (R15, R16 and SB15 must not be fitted).
X2, C7, C8, R15 and R16 provide a clock as shown in Appendix A:
Electrical schematics on page 29
. PA1 and PA2 (pin 2 and pin 3) are disconnected from CN1 (pin 23 and pin 25).
MCO on STM32F103CBT6 (ST-LINK MCU) is connected to PA1 on
STM8S.
MCO on STM32F103CBT6 (ST-LINK MCU) is disconnected from
PA1 on STM8S.
Output of voltage regulator LDL112PV33R is connected to 3V3.
Output of voltage regulator LDL112PV33R is not connected.
PA2 and PA3 on STM32F103CBT6 (ST-LINK MCU) are connected respectively to PA4 and PA5 (pin 10 and pin 11) on STM8S to have
USART communication between them. Thus SB12 and SB11 must be OFF.
PA2 and PA3 on STM32F103CBT6 (ST-LINK MCU) are disconnected from respectively PA4 and PA5 (pin 10 and pin 11) on
STM8S.
Reserved.
Reserved.
1. The default SB state is shown in bold.
UM2364 Rev 1
36
Hardware layout and configuration UM2364
6.10 Extension connectors
Figure 8 shows the signals connected by default to Arduino™ Uno V3 connectors (CN4,
CN5, CN7, CN8) and to ST morpho connector (CN1 and CN9), for STM8S208RBT6 Nucleo board.
Figure 8. NUCLEO-8S208RB
UM2364 Rev 1
UM2364 Hardware layout and configuration
CN4, CN5, CN7 and CN8 are female connectors compatible with the Arduino™ standard.
Most shields designed for Arduino™ can fit the STM8S Nucleo board.
The Arduino™ connectors on STM8S Nucleo board support Arduino™ Uno V3.
For compatibility with Arduino™ Uno V1, apply the following modifications:
• SB8 and SB10 ON,
• SB7 and SB9 OFF to connect I
2
C on A4 (pin 5) and A5 (pin 6 of CN4).
Caution 1: The I/Os of the STM8S microcontroller are 3.3 V-compatible instead of 5 V for Arduino™
Uno V3.
Table 11 shows the pin assignment of the STM8S microcontroller on Arduino™ connectors.
Connector
CN5 power
CN4 analog
Pin
8
1
2
3
4
5
6
1
2
3
4
5
6
7
Table 11. Arduino™ connectors on NUCLEO-8S208RB
Pin name STM8S pin Function
VIN
A0
A1
A2
A3
A4
A5
+5V_VIN
IOREF
RESET
3V3
+5V
GND
GND
Left connectors
-
-
T_NRST
-
-
-
-
-
PB5
PB4
PB3
PB2
PE2 or PB1
(1)
PE1or PB0
(1)
5 V input
3.3 V Ref
RESET
3.3 V input/output
5 V output ground ground
Power input
Analog input 5
Analog input 4
Analog input 3
Analog input 2
I2C1_SDA (PE2) or Analog input 1 (PB1)
I2C_SCL (PE1) or Analog input 0 (PB0)
UM2364 Rev 1
36
Hardware layout and configuration
Connector
Table 11. Arduino™ connectors on NUCLEO-8S208RB (continued)
Pin Pin name STM8S pin Function
CN8 digital
CN7 digital
7
6
5
1
8
3
2
4
3
2
1
5
4
7
6
10
9
8
1. Refer to Table 10: Solder bridges for details.
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
D15
D14
AREF
GND
D13
D12
D11
Right connectors
PE1
PE2
-
-
PC5
PC7
PC6
PE5
PC4
PD3
PD1
PC3
PC2
PG0
PC1
PE0
PD5
PD6
I2C_SCL
I2C_SDA
VDDA ground
SPI1_SCK
SPI1_MISO
SPI1_MOSI
SPI1_NSS
TIM_CH4
TIM2_CH2
SWIM
TIM1_CH3
TIM1_CH2
CAN_TX
TIM1_CH1
CLK_CCO
UART3_TX
UART3_RX
UM2364
UM2364 Rev 1
UM2364 Hardware layout and configuration
6.12 ST morpho connector
The ST morpho connector consists in male pin headers (CN1 and CN9) accessible on both sides of the board. They can be used to connect the STM8S Nucleo board to an extension board or a prototype/wrapping board placed on top or on bottom side of the STM8S Nucleo board. All signals and power pins of the STM8S are available on the ST morpho connector.
This connector can also be probed by an oscilloscope, logical analyzer or voltmeter.
Table 12 shows the pin assignments of the STM8S on the ST morpho connector.
CN1 odd pins
Table 12. ST morpho connector on NUCLEO-8S208RB
CN1 even pins CN9 odd pins CN9 even pins
Pin Name Name Pin Pin Name Name
17
19
21
23
25
27
5
7
1
3
9
11
13
15
29
31
33
35
37
-
GND
-
PA1
PA2
PA3
PG4
PG5
VDD
PE7
-
-
PE6
PI0
PA4
PA5
-
PA6
-
PG7
PG6
E5V
GND
-
IOREF VDD
RESET T_NRST
3V3
+5V
GND
GND
VIN
-
PB5
PA4
PB3
PB2
PE2 or PB1
(2)
PE1 or PB0
(2)
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
37
1. 5V_STLINK is 5 V power from ST-LINK/V2-1 USB connector and it rises before +5V.
2. Refer to Table 10: Solder bridges for details.
PE5
PC4
PD3
PD1
PC3
PC2
PD7
PE1
PE2
VDDA
GND
PC5
PC7
PC6
PG0
PC1
PE0
PD5
PD6
PB7
PB6
PD4
5V_STLINK (1)
PF7
PF6
PF5
PF4
PF3
GND
PF0
PD2
PD0
PG1
PE4
AGND
PE3
PG3
PG2
Pin
18
20
22
24
26
28
6
8
2
4
10
12
14
16
30
32
34
36
38
UM2364 Rev 1
36
Product history and limitations
7 Product history and limitations
UM2364
7.1 Identification
The sticker located on the top of the PCB shows the information about the STM8S Nucleo-
64 board product identification such as board reference, revision and serial number. The format of the identification is the following:
• Bxxxx p-bb : The board reference is MB1345, p corresponds to the PCB revision and bb to the BOM revision: for example C-02 stands for PCB revision C and BOM revision 02.
• yywwnnnn : yy are the two last digits of the manufacturing year, ww identifies the manufacturing week and nnnn is the board serial number.
Revision C-02
Revision C-02 of the STM8S208RBT6-based Nucleo-64 board is the initial released version.
Revision C-02
It is recommended, when measuring the IDD current, to take into account the fact that
ST-LINK pins must be isolated. Otherwise, it is necessary to put a jumper on JP1 when performing such measurement.
UM2364 Rev 1
UM2364
8 CE Compliance Statement
8.1
CE Compliance Statement
Electromagnetic compatibility and immunity
The sample examined is in conformance with the requirements of below standards:
• EN 55032:2015
• EN 61000-3-2:2014
• EN 61000-3-3:2013
• EN 55024:2010 +A1:2015
UM2364 Rev 1
36
FCC Compliance Statement UM2364
This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) this device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation.
This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates uses and can radiate radio frequency energy and, if not installed and used in accordance with the instruction, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception which can be determined by turning the equipment off and on, the user is encouraged to try to correct interference by one or more of the following measures:
• Reorient or relocate the receiving antenna
• Increase the separation between the equipment and receiver
• Connect the equipment into an outlet on a circuit different from that to which the receiver is connected
• Consult the dealer or an experienced radio/TV technician for help
Any changes or modifications to this equipment not expressly approved by
STMicroelectronics may cause harmful interference and void the user's authority to operate this equipment.
UM2364 Rev 1
UM2364
Appendix A Electrical schematics
Electrical schematics
This appendix presents the electrical schematics of the STM8S Nucleo-64 board:
•
Figure 9: STM8S Nucleo board top schematics
•
•
•
Figure 12: Arduino™ extension connectors
•
•
UM2364 Rev 1
36
Figure 9. STM8S Nucleo board top schematics
U_Power
Power.SchDoc
U_STM8S208RBT6 microcontroller power
STM8S208RBT6 microcontroller power.SchDoc
U_ST-LinkV2_SWIM
ST-LinkV2_SWIM.SchDoc
T_VCP_TX
T_VCP_RX
T_MCO
T_SWIM
T_NRST
U_Arduino_extension_connectors
Arduino_extension_connectors.SchDoc
T_NRST
PA[1..6]
PB[0..7]
PC[1..7]
PD[0..7]
PE[0..7]
PF0
PF[3..7]
PG[0..7]
PI0
U_STM8S208RBT6 microcontroller IOs
STM8S208RBT6 microcontroller IOs.SchDoc
T_VCP_TX
T_VCP_RX
T_MCO
T_SWIM
T_NRST
PA[1..6]
PB[0..7]
PC[1..7]
PD[0..7]
PE[0..7]
PF0
PF[3..7]
PG[0..7]
PI0
Title: Top
Project: STM8S208RBT6 Nucleo
Variant: [No Variations]
Revision: -
Size: A4 Date: 11-Apr.-17
Reference:
Sheet: 2
MB1345 of 7
Figure 10. STM8S I/Os
PA[1..6]
PA[1..6]
PB[0..7]
PB[0..7]
PC[1..7]
PC[1..7]
PD[0..7]
PD[0..7]
PE[0..7]
PE[0..7]
PF0
PF0
PF[3..7]
PF[3..7]
PG[0..7]
PG[0..7]
PI0
PI0
T_VCP_RX
Fitted: NO
Fitted: NO
PA4
PA5
SB12
SB11
T_VCP_TX
D7
T_SWIM
PD1 SB4
PA3
A5
A4
A3
A2
A1
A0
D8
D1
D0
D3
D5
D6
D9
D13
D11
D12
PA6
PB0
PB1
PB2
PB3
PB4
PB5
PB6
PB7
PC1
PC2
PC3
PC4
PC5
PC6
PC7
PD0
PD2
PD3
PD4
PD5
PD6
PD7
9
10
11
12
30
29
28
27
26
25
24
23
34
35
36
37
38
41
42
61
62
63
64
57
58
59
60
U3A STM8S208RBT6
[TIM3_CH1] TIM2_CH3/PA3
UART1_RX/ (HS) PA4
UART1_TX/ (HS) PA5
UART1_CK/ (HS) PA6
[TIM1_CH1N] AIN0/PB0
[TIM1_CH2N] AIN1/PB1
[TIM1_CH3N] AIN2/PB2
[TIM1_ETR] AIN3/PB3
[I2C_SCL] AIN4/PB4
[I2C_SDA] AIN5/PB5
AIN6/PB6
AIN7/PB7
PE0 (HS)/CLK_CCO
PE1 (T)/I2C_SCL
PE2 (T)/I2C_SDA
PE3/TIM1_BKIN
PE4
PE5/SPI_NSS
AIN9/PE6
AIN8/PE7
AIN10/ PF0
AIN11/PF3
AIN12/PF4
AIN13/PF5
AIN14/PF6
AIN15/PF7 PC1 (HS)/TIM1_CH1
PC2 (HS)/TIM1_CH2
PC3 (HS)/TIM1_CH3
PC4 (HS)/TIM1_CH4
PC5 (HS)/SPI_SCK
PC6 (HS)/SPI_MOSI
PC7 (HS)/SPI_MISO
PG1/CAN_RX
PG2
PG3
PG4
PG5
PD0 (HS)/TIM3_CH2 [TIM1_BKIN] [CLK_CCO]
PD1 (HS)/SWIM
PD2 (HS)/TIM3_CH1[TIM2_CH3]
PD3 (HS)/TIM2_CH2[ADC_ETR]
PG6
PG7
PI0
PD4 (HS)/TIM2_CH1 [BEEP]
PD5/UART3_TX
PD6/UART3_RX
PD7/TLI
PG0/CAN_TX
NRST
OSCIN/PA1
OSCOUT/PA2
56
55
54
53
52
33
32
31
22
17
16
15
14
13
43
44
45
46
47
49
50
51
48
1
2
3
VDD
PG0
PG1
PG2
PG3
PG4
PG5
PG6
PG7
PI0
PF0
PF3
PF4
PF5
PF6
PF7
PE0
PE1
PE2
PE3
PE4
PE5
PE6
PE7
T_NRST
PA1
PA2
D2
D15
D14
D10
D4
SB3
B1
USER[BLUE]
R6
4K7
R5
SB15
0R
T_MCO
R16
0R
Fitted: NO
R15
0R
Fitted: NO
C8
12PF
Fitted: NO
X2
8MHZ
Fitted: NO
C7
12PF
Fitted: NO
100R
C5
100nF
B1_1 switch hat_blue
1
B2
2
T_NRST
RESET[BLACK]
3
4
C25
B2_1 switch hat_black
100nF
Title: STM8S208RBT6 microcontroller I/Os
Project: STM8S208RBT6 Nucleo
Variant: [No Variations]
Revision: Reference:
Size: A4 Date: 11-Apr.-17 Sheet: 3
MB1345 of 7
Figure 11. STM8S power
VDD L1
Bead
SB5
AGND
VDD
VDDA
7
U3B
VDD
STM8S208RBT6
VSS
40
VDDIO_2 VSSIO_2
8
VDDIO_1 VSSIO_1
19
VDDA VSSA
18
VREF+
VCAP
C23
100nF 21
VREF-
6
5
39
4
20
C15
2.2uF
AGND
AGND Ceramic capacitor (Low ESR)
VDD
C28
1uF
C14
100nF
C29
100nF
C13
100nF
VDDA
C24
1uF
C17
100nF
AGND
Title: STM8S208RBT6 microcontroller power
Project: STM8S208RBT6 Nucleo
Variant: [No Variations]
Revision: Reference:
Size: A4 Date: 11-Apr.-17 Sheet: 4
MB1345 of 7
Figure 12. Arduino™ extension connectors
PA[1..6]
PA[1..6]
PB[0..7]
PB[0..7]
PC[1..7]
PC[1..7]
PD[0..7]
PD[0..7]
PE[0..7]
PE[0..7]
PF0
PF0
PF[3..7]
PF[3..7]
PG[0..7]
PG[0..7]
PI0
PI0
T_NRST
T_NRST
PA1
PA2
VDD
PG4
PG5
PE7
PE6
PI0
SB14 Fitted: NO
SB13 Fitted: NO
PA3
PA4
PA5
PA6
Morpho connector
CN1
1
3
2
4
PG7
PG6
29
31
33
35
21
23
25
27
13
15
17
19
9
11
5
7
37
E5V
IOREF
T_NRST
30
32
34
36
22
24
26
28
14
16
18
20
6
8
10
12
38
2.54mm 2x19
5V_VIN
VDD
5V
3V3
PB5
PB4
PB3
PB2
VIN
A0
A1
A2
A3
A4
A5
R4
1K
4
5
6
1
2
3
3
4
1
2
5
6
7
8
CN5
2.54mm 1x8
CN4
PB1
PB0
SB9
SB7
SB8
SB10
MCU
2.54mm 1x6
PE1
PE2
Fitted: NO
Fitted: NO
SB8,SB10
Close only for I2C on A4/A5
Q2 2N7002 LD2
GREEN
R23
510R
R26 1M
VDD
SB2
VDDA
CN8
10
9
8
7
6
5
4
3
2
1
D15_SCL
D14_SDA
D13_SPI_SCK
D12_MISO
D11_TIM_MOSI
D10_TIM_SPI_CS
D9_TIM
D8_IO
PE1
PE2
PC5
PC7
PC6
PE5
PC4
PD3
2.54mm 1x10
CN7
8
7
6
5
4
3
2
1
D7_IO
D6_TIM
D5_TIM
D4_IO
D3_TIM
D2_IO
D1_TX
D0_RX
2.54mm 1x8
PD1
PC3
PC2
PG0
PC1
PE0
PD5
PD6
PD7
29
31
33
35
21
23
25
27
13
15
17
19
9
11
5
7
37
Morpho connector
CN9
1
3
2
4
PB7
PB6
PD4
30
32
34
36
22
24
26
28
14
16
18
20
6
8
10
12
38
PF7
PF6
PF5
PF4
PF3
PF0
PD2
PD0
PG1
PE4
PE3
PG3
PG2
2.54mm 2x19
5V_STLINK
AGND
Title: Arduino extension connectors
Project: STM8S208RBT6 Nucleo
Variant: [No Variations]
Revision: -
Size: A4 Date: 11-Apr.-17
Reference:
Sheet: 5
MB1345 of 7
Figure 13. Nucleo power
VIN
3
C30
10uF
U5
Vin
LD1117S50TR
Vout
Gnd
Tab
2
4
C31
10uF
5V_VIN
HW2
5V_STLINK_SW
5V_VIN
E5V
5V_USB_CHG
E5V from Morpho connector
5V_CHG from USB-STLINK CONNECTOR
5
7
1
3
JP2
6
8
2
4
2.54mm 2x4
5V
R10
510R
LD1
GREEN
C12
1uF
6
U2
VIN
LDL112PV33R
ADJ
1
EN VOUT
NC
C11
100nF
3
4
5
IDD Measurement
HW3
SB16
3V3 VDD 5V
C10
1uF
C9
100nF
JP3
2.54mm 1x3
VDD select to allow power supply of MCU in 3V3 or 5V
Title: Power
Project: STM8S208RBT6 Nucleo
Variant: [No Variations]
Revision: -
Size: A4 Date: 11-Apr.-17
Reference:
Sheet: 6
MB1345 of 7
3V3_STLINK
HW1
Fitted: NO
JP1
Fitted: NO
5V
C16
100nF
C18
100nF
C6
100nF
C2
100nF
3V3_STLINK
Board Ident: PC13=0
R7 10K
R3 10K
Fitted: NO
3V3_STLINK
C1
100nF
C3
12PF
X1
8MHZ
3V3_STLINK
VDD
R2
R1
C4
12PF
STLK_OSC_IN
STLK_OSC_OUT
STLK_RST
4K7
4K7
AIN_1
5
6
7
3
4
1
2
10
11
8
9
12
VBAT
PC13
PC14
PC15
OSCIN
OSCOUT
NRST
VSSA
VDDA
PA0
PA1
PA2
Figure 14. ST-LINK/V2 SWIM
D1
R18
BAT60JFILM
SB6
Fitted: NO
R11 100K
2K7 R17 4K7
CN2
3V3_STLINK
3
4
1
2 STLINK_SWCLK
STLINK_SWDIO
Fitted: NO
3V3_STLINK
VDD_2
VSS_2
JTMS/SWDIO
PA12
PA11
PA10
PA9
PA8
PB15
PB14
PB13
PB12
36
35
34
33
32
31
30
29
28
27
26
25
STLINK_SWDIO
STLINK_USB_D_P
STLINK_USB_D_N
LED_STLINK
R19 100R
PWR_ENn
Must be located the closest to the MCU
T_MCO
C22
20pF
Fitted: NO
SWIM_IN
R8
220R
SWIM_RST_IN
R13
220R
T_VCP_RX
T_VCP_TX
SB19
SB17
STLINK_TX
STLINK_RX
SB18
U1
STM32F103CBT6TR
3V3_STLINK
Wired on Solder Side
1
CN3
2
1
2.54mm 1X2
CN10
2
2.54mm 1X2
VDD
SWIM
SWIM_RST
R12
680R
R9
47R
R14
47R
T_SWIM
T_NRST
3V3_STLINK
LD4
Green
R29
330R
R30
330R
3
2
4
1
Red
COM LED
5V_STLINK
C33
1uF
R28
10K
Ilim = 625mA
1.2Ilim = 750mA < Isc
1.5Ilim = 938mA > Isc
R32
1K
5 Volts ST-LINK
R31
100K
FAULT 8
1
2
U7
IN
IN
ST890
OUT
OUT
FAULT
SET
6
7
5 SET
PWR_ENn
LD3
3
ON GND
4
5V_STLINK_SW
R27
2K2 C32
100nF
CN6 UBAF-011A
VBUS
DM
DP
ID
GND
Shield
Shield
Shield
Shield
EXP
EXP
6
7
8
9
10
11
3
4
1
2
5
SB1
R25
100K
5V_STLINK
5V_USB_CHG
Diff pair 90Ohm i i
Diff pair 90Ohm
1
2
3
U6
IO1
GND
IO2
USBLC6-2P6
IO_1
VBUS
IO_2
6
5
4
STLINK_USB_D_N
STLINK_USB_D_P
R24 1K5
Q1
MMBT9013
3V3_STLINK
5V_STLINK
R21 36K
R22
R20
10K
100R
5V_STLINK
USB_RENUMn
5V_STLINK
5V_VIN
E5V
BAT60JFILM
D4
BAT60JFILM
D3
BAT60JFILM
D2
3V3_STLINK
C26
1uF
1
U4
Vin
LD3985M33R
Vout
5
3
INH
GND BYPASS
C27
100nF
C21
10nF
C20
1uF
C19
100nF
Title: ST-Link/V2 SWIM mode
Project: STM8S208RBT6 Nucleo
Variant: [No Variations]
Revision: -
Size: A4 Date: 11-Apr.-17
Reference:
Sheet: 7
MB1345 of 7
Revision history
Revision history
Date
3-May-2018
Table 13. Document revision history
Revision Changes
1 Initial release.
UM2364
UM2364 Rev 1
UM2364
IMPORTANT NOTICE – PLEASE READ CAREFULLY
STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on
ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement.
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of Purchasers’ products.
No license, express or implied, to any intellectual property right is granted by ST herein.
Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.
ST and the ST logo are trademarks of ST. All other product or service names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.
© 2018 STMicroelectronics – All rights reserved
UM2364 Rev 1 37/37
37
Изтегляне
Реклама