UM0629
User Manual
STM8L101-EVAL
evaluation board
Introduction
The STM8L101-EVAL is composed of two boards:
■
An STM8L1/L2 motherboard called MB709 which includes all peripherals which are
connected to the MCU on the daughterboard. The motherboard connects to the
daughterboard via two 36-pin connectors.
■
An STM8L1 daughterboard called MB710 which has an STM8L101 MCU and a STice
connector.
The motherboard and daughterboard are a complete development platform for
STMicroelectronic's STM8L101 microcontroller with comparator, I2C, SPI, USART and
SWIM debugging support.
The full range of hardware features on the motherboard helps you to evaluate all peripherals
(MicroSD cardTM, USART, IrDA®, EEPROM, LCD, for example) and develop your own
applications.
Figure 1.
February 2009
STM8L101-EVAL board
Rev 1
1/27
www.st.com
Contents
UM0629
Contents
1
2
3
4
2/27
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.2
Hardware layout and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
STM8L1/L2 motherboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.1
Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.2
Reset source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.3
Audio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.4
I2C EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.5
RS-232 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.6
MicroSD card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.7
Analog input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.8
Development and debug support CN5 and CN6 . . . . . . . . . . . . . . . . . . . 10
2.9
Display and input devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.10
Bi-color LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.11
Economic measurement and potentiometer RV1 . . . . . . . . . . . . . . . . . . . 11
2.12
MicroSD connector CN1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.13
Daughterboard extension connectors CN3 and CN4 . . . . . . . . . . . . . . . . 13
2.14
SWIM connectors CN5 and CN6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.15
RS-232 connector CN8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.16
Audio jack CN9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.17
Power connector CN10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
STM8L1 daughterboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.1
Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2
Extension connector CN1 and CN2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.3
STice connector CN3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.1
STM8L1/L2 motherboard schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.2
STM8L1-DB daughterboard schematic . . . . . . . . . . . . . . . . . . . . . . . . . . 24
UM0629
Contents
Appendix A STM8L101-EVAL I/O assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
5
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
3/27
Overview
UM0629
1
Overview
1.1
Features
4/27
■
5 V power jack supply
■
Audio play and record
■
64 or 128 Mbyte MicroSD cardTM
■
64 Kbit I2C EEPROM
■
One channel of RS-232 communication
■
Bi-color LED
■
Economic analog voltage measurement based on comparator
■
SWIM and STice debug support
■
122x32 dot-matrix serial interface LCD module
■
Joystick with 4-direction control and selector
■
Reset and User button
■
4 LEDs
■
Extension connector for daughterboard
■
One 10 K potentiometer
UM0629
1.2
Overview
Hardware layout and configuration
The STM8L101-EVAL evaluation board is designed around the STM8L101K3T6 in an
LQFP32 package.
Figure 2 illustrates the connections between the daughterboard and the peripherals on the
motherboard (LCD, I2C EEPROM, USART, audio and MicroSD card).
Figure 3 and Figure 4 help you to locate these features on the actual evaluation board.
Figure 2.
Hardware block diagram
I2C EEPROM
I2C
SWIM connector
SWIM
ADC
PWM
Audio circuit
BEEP
Bi-color LED
Joystick
GPIO’s
LED’s
USART
STM8L1/L2-MB
SPI
RS232
transceiver
Level
translator
RS232
connector
MicroSD card
LCD
Push button
Compa
rator
BNC connector
Economic
Measurement
5V power
jack
ADC
Potentiometer
1.8 to 3.3V
regulator
STice connector
3.3V
regulator
GPIO’s
Extension connector
STM8L1/L2-MB (MB709)
STM8L101
STM8L1-DB
MCU
STM8L1-DB (MB710)
5/27
Overview
Figure 3.
UM0629
STM8L1/L2 motherboard layout
CN3, CN4 daughterboard connectors
CN6
SWIM
(ERNI cable
alternative)
CN5
SWIM
RV1
Potentiometer
CN8
USART
U2
Dot-matrix LCD
CN1
Micro
SD card™
CN9
Audio jack
CN10
5V power
RV4
MCU_VDD
adjustment
6/27
U11
MIC
B1
RESET
U7
Joystick
B2
KEY
UM0629
Overview
Figure 4.
STM8L1 daughterboard layout
CN1, CN2 motherboard connector
CN3 STice connector for STM8L101 emulation
STM8L101 MCU in LQFP32 package
soldered directly onto the board or socket
7/27
STM8L1/L2 motherboard
2
UM0629
STM8L1/L2 motherboard
This motherboard is designed to work with an STM8L1 daughterboard.
2.1
Power supply
The motherboard is designed to be powered by a 5 V DC power supply and to be protected
from a wrong power plug-in event by PolyZen Inc. (auto rearmable fuse) U13. It is possible
to configure the evaluation board to provide 5 V power to the daughterboard through the
daughterboard connector.
●
The motherboard is powered by a 5 V DC power adapter connected to CN10, the
power jack on the board (PSU on silk screen for power supply unit).
●
5 V DC power is provided to the daughterboard through an extension connector and
can be set by jumper JP12 (DTB for daughterboard on silk-screen).
●
MCU_VDD can be selected by setting jumper JP11 and is connected to the
daughterboard directly through the daughterboard connector.
The power supply is configured by setting the jumpers JP11 and JP12 as described in
Table 1.
The LED LD6 is lit when the motherboard is powered correctly. JP3 is no longer used.
Table 1.
Jumper
Power related jumpers
Description
Setting
PSU
DTB
5 V power from power supply jack (CN10) is connected to the motherboard
when JP12 is set as shown to the right:
(default setting).
JP12
MCU_VDD is powered by a fixed 3.3 V power supply when JP11 is set as
shown to the right:
(default setting).
PSU
DTB
5 V power from power supply jack (CN10) is connected to the daughterboard
when JP12 is set as shown to the right:
In this case the motherboard and daughterboard are powered by a 5 V power
supply.
1
JP11
MCU_VDD is powered by a variable power supply from 1.8 V to 3.3 V,
adjusted by potentiometer RV4 (bottom left of the board), when JP11 is set as
shown to the right:
8/27
1
UM0629
2.2
STM8L1/L2 motherboard
Reset source
The reset signal of the motherboard is low active. Reset sources include:
●
Reset button B1.
●
Debugging tools from connectors CN5, CN6 and CN2.
The reset pin PA1 of the STM8L101 is either connected to the reset button B1 or to GND by
the setting of jumper JP1:
Table 2.
Jumper
JP1
Reset related jumpers
Description
PA1 is connected to GND when JP1 is set as shown to the right:
This jumper position is used when the STice is connected to the board
in order to configure all IO ports of the MCU in high impedance state.
This jumper position is called STice on the silk-screen.
PA1 is connected to Reset button when JP1 is set as shown to the right:
(default setting). This jumper position is used when the board is alone
(not connected to STice).
This jumper position is called Alone on the silk-screen.
2.3
Setting
1 2 3
1 2 3
Audio
The motherboard supports both audio recording and playback, but audio recording
components (U11 microphone and U12 amplifier) cannot be used with the STM8L101.
The speaker can be disabled or enabled by the setting of jumper JP10.
Audio volume can be adjusted using the potentiometer RV2.
Table 3.
Jumper
JP10
JP11
Audio related jumpers
Description
Setting
Audio power amplifier TS4871 is forced on standby mode when JP10 is
not fitted.
Default setting: fitted.
Either beeper or PWM output can be selected as a source of speaker
by setting jumper JP11.
The beeper is connected to speaker when JP11 is set as shown to the
right: (Beep position on the silk-screen)
The PWM output is connected to speaker when JP11 is set as shown to
the right: (PSW position on the silk-screen)
(default setting).
1 2 3
1 2 3
9/27
STM8L1/L2 motherboard
2.4
UM0629
I2C EEPROM
A 64 Kbit I2C EEPROM is connected to the I2C port of the STM8L101.
Write protection can be enabled by the setting of jumper JP8.
Table 4.
I2C EEPROM related jumpers
Jumper
JP8
2.5
Description
I2C EEPROM U6 is protected from write operation when JP8 is not fitted.
Default setting: Fitted
RS-232
One D-type 9-pin RS-232 connector CN8 is available on the motherboard.
RS-232 interface behavior is not guaranteed when the MCU is powered by an adjustable
voltage lower than 3 V.
2.6
MicroSD card
The 64 Mbyte MicroSD card SMS064FF (or 128 Mbyte SMS128FF) connected to the SPI of
the STM8L101 through a voltage level translator U1 (shared with LCD) is available on the
board. MicroSD card chip select is managed by standard IO port PB4.
2.7
Analog input
The BNC connector footprint present on the board (CN7) cannot be used as it is not
connected to the MCU.
2.8
Development and debug support CN5 and CN6
The two debug connectors are available on the motherboard.
10/27
●
CN5, ERNI 4-pin connector (reference 284697 or 214017) for SWIM debugging. It fits
with ERNI connectors provided with standard tools.
●
CN6, 2.54 mm pitch low-cost 4-pin connector for SWIM debugging.
UM0629
2.9
STM8L1/L2 motherboard
Display and input devices
The 122x32 dot-matrix serial interface LCD (U2) and 4 general purpose LED's (LD2,3,4,5)
are available as display devices. A 4-direction joystick, selection key and a general purpose
button (B2) are available as input devices.
Table 5.
2.10
122x32 dot matrix LCD U13
Pin on U2
Description
Pin connection
1
Vss
GND
2
Vcc
+3V3
3
VO
-
4
CLK
PB5
5
SID
PB6
6
CS
PD1
7
A
+5V
8
K
GND
Bi-color LED
A bi-color LED is connected to PB0 through a voltage translator which guarantees that the
bi-color LED works when the STM8L101 is powered by an adjustable voltage from 1.8 to
3.3 V.
2.11
Economic measurement and potentiometer RV1
The economic measurement solution is demonstrated based on the internal comparator
inside the STM8L101 and potentiometer RV1.
As shown in Figure 5, the voltage divided by resister bridge R10 and R11 can be measured
by using an internal comparator of the STM8L1, with Vref connected to channel 2 of the
comparator and an RC charge circuit connected to the COM channel of the comparator.
To measure the voltage Vin from the potentiometer:
1.
Compare Vref with the voltage on C8 which is charged by a series of pulses generated
by PC4.
2.
Record pulse number PN_Vref when the voltage on C8 reaches voltage reference Vref.
3.
Another charge pulse PN_Vin can be obtained with voltage connected to CH1 also like
PN_Vref.
4.
The voltage Vin can be calculated based on both numbers PN_Vref and PN_Vin.
11/27
STM8L1/L2 motherboard
UM0629
Figure 5.
Voltage measurement using internal comparator
Table 6.
Potentiometer RV1 related jumpers
Jumper
Description
Setting
RV1 is connected to PD2 as one input of the internal comparator when JP2
is set as shown to the right:
JP2 position is called Comp_PD2 on the silk-screen.
1 2 3
RV1 is connected to PE0 as the analog input for the ADC when JP2 is set
as shown to the right:
(default setting). JP2 position is called ADC_PE0 on the silk-screen.
1 2 3
JP2
2.12
MicroSD connector CN1
Figure 6.
12/27
MicroSD connector CN1 viewed from front
UM0629
STM8L1/L2 motherboard
Table 7.
2.13
MicroSD connector CN1
Pin number
Description
Pin number
Description
1
Reserved
5
SCLK/PB5
2
CS/PB4
6
Vss/GND
3
DI/PB6
7
DO/PB7
4
VDD
8
Reserved
9
GND
10
Not used
Daughterboard extension connectors CN3 and CN4
Two 36-pin male headers CN3 and CN4 can be used to connect the daughterboard to the
motherboard. All GPI/Os are available on it. Please refer to Table 8 and Table 9 for pin-out
definition.
Table 8.
Daughterboard extension connector CN3
Pin number
Description
Pin number
Description
1
GND
2
PC4
3
PC5
4
PC6
5
Reserved
6
Reserved
7
Reserved
8
Reserved
9
PA0
10
GND
11
PA1
12
PA2
13
Reserved
14
PA3
15
Reserved
16
Reserved
17
PA4
18
Reserved
19
GND
20
PA5
21
Reserved
22
PA6
23
Reserved
24
Reserved
25
PD0
26
Reserved
27
PD2
28
PD1
29
PD3
30
GND
31
NC
32
NC
33
PB0
34
PB1
35
PB2
36
PB3
13/27
STM8L1/L2 motherboard
Table 9.
2.14
UM0629
Daughterboard extension connector CN4
Pin number
Description
Pin number
Description
1
GND
2
PC3
3
PC2
4
PC1
5
PC0
6
Reserved
7
Reserved
8
Reserved
9
Reserved
10
GND
11
RESET#
12
Reserved
13
Reserved
14
Reserved
15
PD7
16
Reserved
17
PD5
18
PD6
19
D5V
20
PD4
21
NC
22
PB7
23
NC
24
MCU_VDD
25
PB6
26
PB5
27
PB4
28
Reserved
29
Reserved
30
GND
31
Reserved
32
Reserved
33
Reserved
34
Reserved
35
Reserved
36
Reserved
SWIM connectors CN5 and CN6
CN6 is a low cost 2.54 mm pitch connector to be used by customers who do not have the
ERNI cable.
14/27
Figure 7.
SWIM debugging connector CN5 viewed from above PCB
Table 10.
SWIM debugging connectors CN5 and CN6
Pin number
Description
Pin number
Description
1
VDD
2
PA0
3
GND
4
RESET#
UM0629
2.15
STM8L1/L2 motherboard
RS-232 connector CN8
Figure 8.
RS-232 connector CN8 viewed from front
Table 11.
RS-232 connector CN8
Pin number
2.16
Description
Pin number
Description
1
NC
6
Connect to Pin 4
2
USART_RXD/PC2
7
Connect to Pin 8
3
USART_TXD/PC3
8
Connect to Pin 7
4
Connect to Pin 6
9
NC
5
GND
Audio jack CN9
A 3.5 mm mono audio jack CN9 is available on the motherboard. The speaker U9 is
bypassed when an earphone is plugged into CN9 (CN9 is compatible with audio plug
NYS231 from NEUTRIK).
2.17
Power connector CN10
The motherboard can be powered from a DC 5 V power supply via the external power
supply jack CN10 shown in Figure 9. The central pin of CN10 must be positive.
Figure 9.
Power supply connector CN10 viewed from front
15/27
STM8L1 daughterboard
UM0629
3
STM8L1 daughterboard
3.1
Power
The STM8L101 MCU is powered by MCU_VDD from the motherboard through an extension
connector on the board. It is enabled by setting the jumper JP1 as described in Table 12.
Table 12.
Power related jumper*
Jumper
JP1
3.2
Description
Enables consumption measurement of both VDD and VDDA when the jumper is removed
and replaced by an ammeter.
Default setting: Fitted.
Extension connector CN1 and CN2
The 36-pin connectors CN1 and CN2 are designed to be connected to the motherboard.
The pin-out definition is the same as CN3 and CN4 on the motherboard which is described
in Section 2.13.
Warning:
3.3
On MB710 PCB rev B, CN2 (pin 26) silk-screen PB5 is
missing.
STice connector CN3
STice must be connected to connector CN3 to emulate STM8L101 (not on CN2 of the
motherboard).
When STice is connected on CN3, jumper JP1 on the motherboard must be set to connect
pins 2 and 3 in order to keep STM8L101 MCU on reset as explained in Section 2.2.
Figure 10. STice debugging connector CN3
16/27
UM0629
STM8L1 daughterboard
Table 13.
Trace debugging connector CN3
Pin number
Description
Pin number
Description
1
RESET#
2
PA2
3
PA3
4
PA4
5
PA5
6
PA6
7
GND
8
VDD
9
PD0
10
PD1
11
PD2
12
PD3
13
PB0
14
PB1
15
PB2
16
PB3
17
PB4
18
PB5
19
PB6
20
PB7
21
PD4
22
PD5
23
PD6
24
PD7
25
PC0
26
PC1
27
PC3
28
PC3
29
PC4
30
PC5
31
PC6
32
PA0
33-60
NC
17/27
18/27
MIC_OUT
Audio_PWM
BEEP
U_Power
Power.SchDoc
SPI_MISO
SPI_MOSI
SPI_SCK
MicroSD_CS
LCD_CS
SDcard_detect
U_LCD_MicroSD
LCD_MicroSD.SchDoc
U_Audio
Audio.SchDoc
SPI_MISO
SPI_MOSI
SPI_SCK
MicroSD_CS
LCD_CS
SDcard_detect
MIC_OUT
Audio_PWM
BEEP
U_MCU
MCU.SchDoc
I2C_SLK
I2C_SDA
LED4
LED3
LED2
LED1
BiD_LED
USART_RX
USART_TX
User_Button
JOY_UP
JOY_RIGHT
JOY_LEFT
JOY_DOWN
JOY_SEL
Potentiometer
BNC
I2C_SLK
I2C_SDA
LED4
LED3
LED2
LED1
BiD_LED
USART_RX
USART_TX
User_Button
JOY_UP
JOY_RIGHT
JOY_LEFT
JOY_DOWN
JOY_SEL
Potentiometer
BNC
U_Peripherals
Peripherals.SchDoc
Figure 11. STM8L1 motherboard schematic
Date: 1/21/
STM8L1/L2 motherboard schematic
Rev: A.1(PCB.SCH)
4.1
Number:MB709
Schematics
STM8L1/L2-MB
4
Title:
STMicroelectronics
Schematics
UM0629
R17
BiD_LED
JOY_LEFT
JOY_RIGHT
JOY_UP
BNC
MIC_OUT
Audio_PWM
LCD_CS
VDD
VDDA
JOY_DOWN
User_Button
Not Fitted
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
SWIM connector
609-1306-ND(2. 54mm)
SWIM connector
1
2
3
4
214017
SWIM connector
CN6
1
2
3
4
MCU_VDD CN5
Not Fitted
0
MCU_VDD
JP3
Not Fitted
BEAD
L1
VDD
C11
10uF
R13
4K
R12
29K
+3V3
PC4
PD3
10K
R14
Potentiometer
PA1/NRESET
PA0/SWIM/BEEP
PA2/HSE_IN
PH2/QST_X11
PA3/HSE_OUT
PH1/QST_X10
PG4
PH0/QST_X9
PG5
PC7/QST_X8
PG6
PC6/LSE_OUT
PG7
PC5/LSE_IN
PA4/ADC_IN15/TIM1_BKIN
PC4/USART_CK/I2C_SMB/CCO
PA5/ADC_IN14/TIM2_BKIN
PC3/USART_TX
PA6/ADC_IN13/CMP_VREF
PC2/USART_RX
VSSA
PC1/I2C_SCL
VSS
PC0/I2C_SDA
VDD
PF7/QST_SNSK7
VDDA
PF6/QST_SNS7
PG0/REF+
PF5/QST_SNSK6
PG1/REFPF4/QST_SNS6
PG2/ADC_IN12
PF3/QST_SNSK5
PG3/ADC_IN11/QST_RSMP
PF2/QST_SNS5
PD0/ADC_IN10/TIM2_CH2/TIM_IR/CMP1_CH3
PF1/QST_SNSK4
PD1/ADC_IN9/TIM2_TRIG/CMP1_CH4/QST_Y2
PF0/QST_SNS4
PD2/ADC_IN8/TIM3_CH1/CMP2_CH3/QST_Y3S
PD7/QST_X15
PD3/ADC_IN7/TIM3_TRIG/CMP2_CH4/QST_Y3
PD6/QST_X14
PB0/ADC_IN6/ADC_TRIG1/TIM1_CH1/CMP1_CH1/QST_Y0S
PD5/PVD_IN/QST_X13
PB1/ADC_IN5/ADC_TRIG2/TIM2_CH1/CMP1_CH2/CMP1_OUT/QST_Y0 PD4/TIM3_CH2
PB2/ADC_IN4/TIM1_CH2/CMP2_CH1/QST_Y1
VDD
PB3/ADC_IN3/TIM1_TRIG/CMP2_CH2/CMP2_OUT/QST_Y1
VSS
PE0/ADC_IN2/QST_X0/QST_SNS0
PB7/SPI_MISO
PE1/ADC_IN1/QST_X1/QST_SNSK0
PB6/SPI_MOSI
PE2/ADC_IN0/QST_X2/QST_SNS1
PB5/SPI_SCK
PE3/QST_X3/QST_SNSK1
PB4/SPI_NSS
PE4/QST_X4/QST_SNS2
PE7/QST_X7/QST_SNSK3
PE5/QST_X5/QST_SNSK2
PE6/QST_X6/QST_SNS3
U4
C5
100nF
R15
JP1
10K
RESET# 1
2
3
MCU_VDD
B1
RESET
RESET# R9
PA0
PG0
PG1
PG2
PG3
PD0
PD1
PD2
PD3
PB0
PB1
PB2
PB3
PE0
PE1
PE2
PE3
PE4
PE5
PA1
PA2
60 PA3
PG4
PG5
PG6
PG7
PA4
PA5
PA6
2
1
X1
C10
20pF
3
4
C9
20pF
3
JP2
3
1
PB7
PB6
PB5
PB4
PE7
PE6
PA0
PH2
PH1
PH0
PC7
PC6
PC5
PC4
PC3
PC2
PC1
PC0
PF7
PF6
PF5
PF4
PF3
PF2
PF1
PF0
PD7
PD6
PD5
PD4
8K
R11
2
C8
100nF
PA6
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
C12
10nF
VDDA
R10
25K
PD2
PE0
C7
100nF
2
2
3
3
X2
Not Fitted
1
solder bridge
JP6
JP7
solder bridge
1
EX_PC6
EX_PC5
5
MCU
10pF
C14
10pF
C13
Economic measurement
Comparator
Comparator input should be in the range
of 00.8V, so may be a divider is needed
by CMP_REF pin?
SPI_MISO
SPI_MOSI
SPI_SCK
MicroSD_CS
SDcard_detect
LED4
JOY_SEL
LED3
LED2
LED1
VDD
USART_TX
USART_RX
I2C_SLK
I2C_SDA
BEEP
C6
100nF
VDD
4
2
3
2
1
4
1
RESET#
R18
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
PE5
PE3
PE1
PB5
PE7
PF3
PF2
PF0
PD6
PD4
PB7
PC3
PC1
PF7
PF5
Header 18X2 on the right
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
CN4
PB1
PB3
PG5
PG7
PA5
PA6
PG1
PG3
PD1
PC4
EX_PC6
PH0
PH2
Header 18X2 on the left
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
CN3
Exension connector
PB6
PB4
PE6
PE4
PE2
PE0
D5V
820 PF1
PD7
PD5
PC2
PC0
PF6
PF4
PB0
PB2
PG0
PG2
PD0
PD2
PD3
EX_PC5
PC7
PH1
PA0
PA1
PG4
PG6
PA4
6
JP4
PA2
PA3
VDD
Not Fitted
G4
G4
G3
G3
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
50
52
54
56
58
60
62
64
66
68
70
72
74
76
78
80
82
84
86
88
90
92
94
96
98
100
102
104
106
108
110
112
114
116
118
120
Rev: A.1(PCB.SCH) Date: 1/21/2009
STM8L1/L2-MB MCU
Number:MB709
Title:
G1
G1
G2
G2
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
41
43
45
47
49
51
53
55
57
59
61
63
65
67
69
71
73
75
77
79
81
83
85
87
89
91
93
95
97
99
101
103
105
107
109
111
113
115
117
119
CN2
8
EX_PC5
PC7
PH1
PA0
PD5
PD7
PF1
PF3
PF5
PF7
PC1
PC3
PG1
PG3
PD1
PD3
PB1
PB3
PE1
PE3
PE5
PE7
PB5
PB7
PA2
PG4
PG6
PA4
PA6
Sheet 2
STice connector
EX_PC6
PH0
PH2
PD4
PD6
PF0
PF2
PF4
PF6
PC0
PC2
PC4
PG0
PG2
PD0
PD2
PB0
PB2
PE0
PE2
PE4
PE6
PB4
PB6
RESET#
PA3
PG5
PG7
PA5
STMicroelectronics
MCU_VDD
JP5
7
of
6
VDD
VDDA
UM0629
Schematics
Figure 12. STM8L1 motherboard MCU schematic
19/27
LCD_CS
SPI_MISO
MicroSD_CS
R3
R5
2
0
0
R6
do not fit
MCU_VDD
1K
R54
T1
9013
R7
4K7
SPI_SCK
SPI_MOSI
1
20/27
3
+3V3
1
2
3
4
5
6
7
MAX3378EEUD
VL
VCC
IOVL_1
IOVCC_1
IOVL_2
IOVCC_2
IOVL_3
IOVCC_3
IOVL_4
IOVCC_4
NC
NC
GND THREE_STATE
U1
MCU_VDD C1
100nF
R69
0
do not fit
R55
MCU_VDD
14
13
12
11
10
9
8
C2 +3V3
100nF
R1
R2
do not fit do not fit
+3V3
+3V3
SW1
SW2
10
9
+5V
1
2
3
4
5
6
7
8
LCD
HXM122032-GB1
Vss
Vcc
VO
CLK
SID
CS
A
K
U2
SDcard_detect
Rev: A.1(PCB.SCH)
Date: 1/21/200
STM8L1/L2-MB LCD&SD
Figure 13. STM8L1 motherboard LCD and SD schematic
Number:MB709
Title:
STMicroelectronics
R4
0
C3 +3V3
100nF
MicroSD card
PJS008-2000 (SMS064FF or SMS128FF)
8
7
6
5
4
3
2
1
CN1
Schematics
UM0629
USART_RX
USART_TX
1
6
9
10K 10
R8
12
11
3
1
2
0
C26
0.1uF
2
RV1
10K
GND
R2in
T2out
R1in
T1out
C2+
C2-
VCC
ST3232ECTR
V-
R2out
T2in
R1out
T1in
C1-
C1+
V+
U8
15
8
7
13
14
4
5
16
Potentiometer
0
R21
R29
C25
0.1uF
C23
0.1uF
Potentiometer
MCU_VDD
BNC connector
VB334 (do not fit)
C24
0.1uF
MCU_VDD
User_Button
C17
100nF
R20
0
C15
100nF
2
do not fit
R46
1
6
2
7
3
8
4
9
5
User Button
100
R44
B2
USER
R41
4K7
MCU_VDD
2
BNC
3
1
3
1
1
2
3
4
5
2
LD5
Blue
1
RS232
2
LD4
Orange
1
2
LD3
Green
1
2
LD2
Red
1
CN8
DB9-male USART1
+3V3
600
R40
600
R39
600
R38
600
R37
JOY_SEL
JOY_DOWN
JOY_LEFT
JOY_RIGHT
JOY_UP
LEDs
LED4
LED3
LED2
LED1
3
R24
R25
R26
R27
R28
1
2
3
4
VCC
WC
SCL
SDA
0
0
0
0
0
M24C64-RMN6
E0
E1
E2
VSS
U6
MCU_VDD
R19
10K
6
5
4
MCU_VDD
100nF
8
7
6
5
C16
R35
10K
+5V
3
1
4
6
2
5
R22
R23
MT008-A
DWON
LEFT
RIGHT
UP
Selection
COMMON
U7
R42 R43
4K7 4K7
Rev: A.1(PCB.SCH)
4
Date: 1/21/2009
2
R16
300
R36
300
+5V
0
0
Sheet 4 of
6
Joystick
EEPROM
I2C_SLK
I2C_SDA
Bi-color LED
L-317EGW-SS
LD1
4
STM8L1/L2-MB Peripherals
Number:MB709
Title:
1
MCU_VDD
MCU_VDD
STMicroelectronics
100
R45
JP8
SN74LVC1T45DCKT
100nF
C18
4
MCU_VDD U3
1
VCCA VCCB
2
GND
DIR
3
BiD_LED
A
B
100nF
C19
CN7
3
100nF
C20
2
100nF
C21
R30
10K
R31
10K
R32
10K
R33
10K
R34
10K
100nF
C22
1
UM0629
Schematics
Figure 14. STM8L1 motherboard peripherals schematic
21/27
U11
KECG2740TBL
2
1
BEEP
1.2K
100
R51
10uF
C29
100nF
C28
R47
0
C40
4.7uF
15K
R61
100K
R60
100K
R64
MCU_VDD
C37
47pF
R59
2.2K
R56
1K
MCU_VDD
C31
33nF
2
C42
2.2uF
R62
18K
TP3
MIC+
TP1
Audio
3
RV2
50K
JP9
2
1
1
3
R53
C41
4.7uF
R63
680
2
RV3
do not fit
R58
0(don't solder)
1
Audio_PWM
33K
R57
R50
10K
U12
TS461CLT
1
180pF
R65
82K
C39
1
4
3
2
C35
2.2uF
Microphone
4
3
MCU_VDD
Speaker
2.2uF
C34
JP10
5
2
22/27
3
+3V3
47K
R48
TS4871IST
Standby
VinVin+
Bypass
U10
470pF
R52
C30
0
C38
do not fit
R49
TP2
MIC_OUT
Uout1
Vout2
VCC
GND
5
8
6
7
MIC_OUT
C36
100uF
1
10
2
2
1
Rev: A.1(PCB.SCH)
U9
KDMG15008-03
Date: 1/21/2009
STM8L1/L2-MB Audio
Number:MB709
Title:
STMicroelectronics
0
C27
100nF
+3V3
ST-613
Speaker+
CN9
Speaker-
Sheet 5
Schematics
UM0629
Figure 15. STM8L1/L2 motherboard audio schematic
DC-10B
CN10
E5V
1
2
3
2
4
Header 2X2
1
3
JP12
3
+5V
TP6
5V
Z1
SMAJ5.0A-TR
1K
R66
C43
100nF
LD6
red
1
2
1
1
CV
2
2
BNX002-01
SG CG1
CG2
CG3
SV
U15
Jumper for choice between power connector and daughter board
D5V
1
U13
ZEN056V130A24LS
2
2
TP7
Ground
4
5
6
3
C44
10uF
E5V
+5V
+5V
C47
470uF
3
Vin
3
2
Vin
U16
LD1086D2M
3
RV4
3314J-201
R68
75
Vout
Vout
U14
LD1086D2M33
3
GND
1
ADJ
1
3
1
1
R67
165
C48
100nF
+3V3
C46
10uF
TP5
VCC_ADJ
C49
100nF
C45
10uF
JP11
2
Rev: A.1(PCB.SCH)
4
Date: 1/21/2009
STM8L1/L2-MB Power
Number:MB709
Title:
Sheet 6 of
1. Power Supply [1.8V to 3.3V]
MCU_VDD
VCC_ADJ
3
1
STMicroelectronics
2
2
TP4
+3V3
4
6
UM0629
Schematics
Figure 16. STM8L1 motherboard power schematic
23/27
24/27
MCU_VDD
JP1
VDD
1
C3
100nF
PB0
PB2
PD0
PD2
PD3
PA4
PA0
PA1
PC5
PD0
PD1
PD2
PD3
PB0
PB1
PB2
PB3
PA1
PA2
PA3
PA4
PA5
PA6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
SSQ-118-03-G-D
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
CN1
Left
PB1
PB3
PD1
PA5
PA6
PA2
PA3
PC4
PC6
RESET#
R2
2
Exension connector
STM8L103
QFP32 and OTQ-32-0.8-02 double footprint
820
PB6
PB4
D5V
PD7
PD5
PC2
PC0
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
SSQ-118-03-G-D
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
CN2
Right
PA1/NRESET
PA0/SWIM/BEEP/QST_X7
PA2/HSE_IN
PC6
PA3/HSE_OUT
PC5/QST_X11/QST_SNSK6
PA4/TIM1_BKIN/QST_X9 /QST_SNS7
PC4/USART_CK/I2C_SMB/CCO/QST_X6/QST_SNS6
PA5/TIM2_BKIN/QST_X10/QST_SNSK7
PC3/USART_TX/QST_XT5
PA6/CMP_VREF
PC2/USART_RX/QST_XT4
VSS
PC1/I2C_SCL
VDD
PC0/I2C_SDA
PD0/TIM2_CH2/TIM_IR/CMP1_CH3/QST_SNS4
PD7/QST_X15/QST_SNSK3
PD1/TIM2_TRIG/CMP1_CH4/QST_Y2/QST_SNSK4
PD6/QST_X14/QST_SNS3
PD2/CMP2_CH3/QST_Y3S/QST_SNS5
PD5/QST_X13/QST_SNSK2
PD3/CMP2_CH4/QST_Y3/QST_SNSK5
PD4/QST_X12/QST_SNS2
PB0/TIM1_CH1/CMP1_CH1/QST_Y0S/QST_SNS0
PB7/SPI_MISO/QST_X3
PB1/TIM2_CH1/CMP1_CH2/CMP1_OUT/QST_Y0/QST_SNSK0
PB6/SPI_MOSI/QST_X2
PB2/ADC_IN11/TIM1_CH2/CMP2_CH1/QST_Y1/QST_SNS1
PB5/SPI_SCK/QST_X1
PB3/TIM1_TRIG/CMP2_CH2/CMP2_OUT/QST_Y1/QST_SNSK1
PB4/SPI_NSS/QST_X0
U1
2
PB5
PD6
PD4
PB7
PC3
PC1
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
3
MCU_VDD
PA0
PC6
PC5
PC4
PC3
PC2
PC1
PC0
PD7
PD6
PD5
PD4
PB7
PB6
PB5
PB4
3
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
41
43
45
47
49
51
53
55
57
59
CN3
QTH-030-01-L-D-A
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
50
52
54
56
58
60
Rev: B.1(PCB.SCH)
4
4
Date: 2008-05-21
STM8L1 daughter board
Number:MB710
Title:
STMicroelectronics
60-pins Connector for STICE
PD0
PD2
PB0
PB2
PB4
PB6
PD4
PD6
PC0
PC2
PC4
PC6
RESET#
PA3
PA5
GND
GND
GND
GND
PD1
PD3
PB1
PB3
PB5
PB7
PD5
PD7
PC1
PC3
PC5
PA0
PA2
PA4
PA6
Sheet 1 of
VDD
4.2
61
62
63
64
1
Schematics
UM0629
STM8L1-DB daughterboard schematic
Figure 17. Daughterboard schematic
UM0629
STM8L101-EVAL I/O assignment
Appendix A
Table 14.
STM8L101
pin number
STM8L101-EVAL I/O assignment
STM8L101-EVAL input and output assignment
Pin name
STM8L101-EVAL pin
assignment
STM8L101
pin number
Pin name
STM8L101-EVAL pin
assignment
1
PA1 - NRESET RESET
-
PE6
?
2
PA2
HSE IN
-
PE7
?
3
PA3
HSE OUT
17
PB4
SD_card_CS
-
PG4
?
18
PB5
SPI_SCK
-
PG5
?
19
PB6
SPI_MOSI
-
PG6
?
20
PB7
SPI_MISO
-
PG7
?
-
VSS
?
4
PA4
Joystick down
-
VDD
?
5
PA5
User button
21
PD4
LED 1
6
PA6
CMP_VERF
22
PD5
LED 2
-
VSSA
?
23
PD6
LED 3
7
VSS
?
24
PD7
Joystick select
8
VDD
?
-
PF0
?
-
VDDA
?
-
PF1
?
-
PG0
?
-
PF2
?
-
PG1
?
-
PF3
?
-
PG2
?
-
PF4
?
-
PG3
?
-
PF5
?
9
PD0
Audio PWM_out
-
PF6
?
10
PD1
LCD_CS
-
PF7
?
11
PD2
CMP2_Potentiometer
25
PC0
I²C_SDA_E2P
12
PD3
CMP2_VREF
26
PC1
I²C_SCL_E2P
13
PB0
Bi-color LED
27
PC2
USART_RX
14
PB1
Joystick left
28
PC3
USART_TX
15
PB2
Joystick right
29
PC4
VREF_CTRL
16
PB3
Joystick up
30
PC5
?
-
PE0
?
31
PC6
?
-
PE1
?
-
PC7
?
-
PE2
?
-
PH0
?
-
PE3
?
-
PH1
?
-
PE4
?
-
PH2
?
-
PE5
?
32
PA0
SWIM / Beep
25/27
Revision history
5
UM0629
Revision history
Table 15.
Document revision history
Date
06-Feb-2009
26/27
Revision
1
Changes
Initial release.
UM0629
Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) 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. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE 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 (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT
RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, 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 WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE
GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
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.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.
© 2009 STMicroelectronics - All rights reserved
STMicroelectronics group of companies
Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America
www.st.com
27/27