stm8l101-eval evaluation board - st.com · november 2009 doc id 15312 rev 2 1/26 um0629 user manual...
TRANSCRIPT
November 2009 Doc ID 15312 Rev 2 1/26
UM0629User ManualSTM8L101-EVALevaluation board
IntroductionThe 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.
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 STM8L101-EVAL helps you to evaluate all peripherals (MicroSD cardTM, USART, EEPROM, LCD, for example) and develop your own applications.
Figure 1. STM8L101-EVAL board
www.st.com
Contents UM0629
2/26 Doc ID 15312 Rev 2
Contents
1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.2 Demonstration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.3 Order code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4 Hardware layout and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2 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
3 STM8L1 daughterboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.1 Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2 Extension connector CN1 and CN2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4 Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.1 STM8L1/L2 motherboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.2 STM8L1-DB daughterboard schematic . . . . . . . . . . . . . . . . . . . . . . . . . . 23
UM0629 Contents
Doc ID 15312 Rev 2 3/26
Appendix A STM8L101-EVAL I/O assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Overview UM0629
4/26 Doc ID 15312 Rev 2
1 Overview
1.1 Features■ 5 V power jack supply
■ Audio play
■ MicroSD cardTM
■ 64 Kbit I2C EEPROM
■ One channel of RS-232 communication
■ Bi-color LED
■ Economic analog voltage measurement based on comparator
■ SWIM debug support
■ 122 x 32 dot-matrix serial interface LCD module
■ Joystick with 4-direction control and selector
■ Reset and User button
■ 3 LEDs
■ Extension connector for daughterboard
■ One 10 K potentiometer
■ RoHS compliant
1.2 Demonstration softwareDemonstration software is preloaded in the board’s Flash memory for easy demonstration of device peripherals in stand-alone mode. For more information and to download the latest version available, refer to STM8L101-EVAL demonstration firmware available on web: www.st.com/mcu.
1.3 Order codeTo order the STM8L101K3 evaluation board, use the order code STM8L101-EVAL.
UM0629 Overview
Doc ID 15312 Rev 2 5/26
1.4 Hardware layout and configurationThe 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
STM8L1/L2-MB
RS232 transceiver
5V power jack
3.3V regulator
LCD
MicroSD cardLevel translator
Audio circuit
BNC connector
I2C EEPROM
SWIM connector
STice connector
Push button
Joystick
LED’s
Potentiometer
RS232 connector
SWIM
GPIO
’s
ADC
ADC
PWM
USART
Comparator
SPI
I2C
Economic Measurement
BEEP
1.8 to 3.3V regulator
Bi-color LED
GPIO’s
Extension connector
STM8L1-DB
STM8L1/L2-MB (MB709)
STM8L101 MCU
STM8L1-DB (MB710)
CMP
Overview UM0629
6/26 Doc ID 15312 Rev 2
Figure 3. STM8L1/L2 motherboard layout
RV4 MCU_VDD
CN9
Audio jack
CN1
Micro
RV1
Potentiometer
B1
RESET
U7
Joystick
B2
KEY
U2
Dot-matrix LCD
CN5
SWIM
adjustment
CN8USART
CN105V power
CN3, CN4 daughterboard connectors
SD card™
CN6
SWIM
alternative)(ERNI cable
UM0629 Overview
Doc ID 15312 Rev 2 7/26
Figure 4. STM8L1 daughterboard layout
CN1, CN2 motherboard connector
STM8L101 MCU in LQFP32 package
soldered directly onto the boardand footprint for socket (ref ENPLAS OTQ-32-0.8-02) is present on the board
STM8L1/L2 motherboard UM0629
8/26 Doc ID 15312 Rev 2
2 STM8L1/L2 motherboard
This motherboard is designed to work with an STM8L1 daughterboard.
2.1 Power supplyThe 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. Power related jumpers
Jumper Description Setting
JP12
5 V power from power supply jack (CN10) is connected to the motherboard when JP12 is set as shown to the right:
(default setting).
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.
JP11
MCU_VDD is powered by a fixed 3.3 V power supply when JP11 is set as shown to the right:
(default setting).
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:
PSU
DTB
PSU
D
TB
1
1
UM0629 STM8L1/L2 motherboard
Doc ID 15312 Rev 2 9/26
2.2 Reset sourceThe reset signal of the motherboard is low active. Reset sources include:
● Reset button B1.
● Debugging tools from connectors CN5, CN6.
The reset pin PA1 of the STM8L101 is either connected to the reset button B1 or to GND by the setting of jumper JP1:
2.3 AudioThe 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 2. Reset related jumpers
Jumper Description Setting
JP1
PA1 is connected to GND when JP1 is set as shown to the right:This configuration is reserved for internal use only.
PA1 is connected to Reset button when JP1 is set as shown to the right: (default setting). This jumper position is called Alone on the silk-screen.
1 2 3
1 2 3
Table 3. Audio related jumpers
Jumper Description Setting
JP10Audio power amplifier TS4871 is forced on standby mode when JP10 is not fitted.
Default setting: fitted.
JP9
Either beeper or PWM output can be selected as a source of speaker by setting jumper JP9.
The beeper is connected to speaker when JP9 is set as shown to the right: (Beep position on the silk-screen).
The PWM output is connected to speaker when JP9 is set as shown to the right: (PSW position on the silk-screen) (default setting).
1 2 3
1 2 3
STM8L1/L2 motherboard UM0629
10/26 Doc ID 15312 Rev 2
2.4 I2C EEPROMA 64 Kbit I2C EEPROM is connected to the I2C port of the STM8L101.
Write protection can be enabled by the setting of jumper JP8.
2.5 RS-232One 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.
Note: To communicate with an RS-232 port on a PC, a 9-pin straight RS-232 cable (direct pin to pin connection) is needed because:
● On CN8 the RX signal is connected on pin2 and the TX data on pin 3,
● On the PC side the RX signal is generally on pin 3 and the TX signal on pin 2.
This standard 9-pin straight RS-232 cable is not provided with the board. Refer to Section 2.15 for details on RS-232 connector pinout.
2.6 MicroSD cardThe 1GByte (or more) MicroSD card 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 I/O port PB4.
2.7 Analog inputThe 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 CN6The two debug connectors are available on the motherboard.
● 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.
Table 4. I2C EEPROM related jumpers
Jumper Description
JP8I2C EEPROM U6 is protected from write operation when JP8 is not fitted.Default setting: Fitted
UM0629 STM8L1/L2 motherboard
Doc ID 15312 Rev 2 11/26
2.9 Display and input devicesDisplay devices available are:
● 122x32 dot-matrix serial interface LCD (U2)
● 4 general purpose LED's (LD2,3,4,5)
Input devices available are:
● 4-direction joystick
● selection key
● general purpose button (B2)
2.10 Bi-color LEDA 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 V to 3.3 V.
2.11 Economic measurement and potentiometer RV1The 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.
Table 5. 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
STM8L1/L2 motherboard UM0629
12/26 Doc ID 15312 Rev 2
Figure 5. Voltage measurement using internal comparator
2.12 MicroSD connector CN1
Figure 6. MicroSD connector CN1 viewed from front
Table 6. Potentiometer RV1 related jumpers
Jumper Description Setting
JP2
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.
RV1 is not connected when JP2 is set as shown to the right:(default setting). JP2 position is called ADC_PE0 on the silk-screen.
1 2 3
1 2 3
UM0629 STM8L1/L2 motherboard
Doc ID 15312 Rev 2 13/26
2.13 Daughterboard extension connectors CN3 and CN4Two 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 7. 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
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
STM8L1/L2 motherboard UM0629
14/26 Doc ID 15312 Rev 2
2.14 SWIM connectors CN5 and CN6CN6 is a low cost 2.54 mm pitch connector to be used by customers who do not have the ERNI cable.
Figure 7. SWIM debugging connector CN5 viewed from above PCB
Table 9. 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
Table 10. SWIM debugging connectors CN5 and CN6
Pin number Description Pin number Description
1 VDD 2 PA0
3 GND 4 RESET#
UM0629 STM8L1/L2 motherboard
Doc ID 15312 Rev 2 15/26
2.15 RS-232 connector CN8
Figure 8. RS-232 connector CN8 viewed from front
2.16 Audio jack CN9A 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 CN10The 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
Table 11. RS-232 connector CN8
Pin number 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
STM8L1 daughterboard UM0629
16/26 Doc ID 15312 Rev 2
3 STM8L1 daughterboard
3.1 PowerThe 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.
3.2 Extension connector CN1 and CN2The 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: On MB710 PCB rev B, CN2 (pin 26) silk-screen PB5 is missing
Table 12. Power related jumper*
Jumper Description
JP1Enables consumption measurement of VDD when the jumper is removed and replaced by an ammeter.Default setting: Fitted.
UM
0629S
chem
atics
Doc ID
15312 Rev 2
17/26
4 Schematics
4.1 STM8L1/L2 motherboard
Figure 10. STM8L1 motherboard schematic
STMicroelectronicsTitle:
Number: Rev: Sheet ofA.1(PCB.SCH) Date: 1/21/2009MB709 1 6
STM8L1/L2-MB
Audio_PWMMIC_OUT
BEEP
U_AudioAudio.SchDoc
MicroSD_CSSPI_SCK
SPI_MOSI
LCD_CS
SPI_MISO
SDcard_detect
U_LCD_MicroSDLCD_MicroSD.SchDoc
MicroSD_CSSPI_SCKSPI_MOSI
LCD_CS
SPI_MISO
Audio_PWMMIC_OUT
BEEP
BNCPotentiometer
I2C_SLKI2C_SDA
LED4LED3
LED1LED2
JOY_SELJOY_DOWN
JOY_LEFTJOY_RIGHT
JOY_UPUser_ButtonUSART_TXUSART_RX
BiD_LED
SDcard_detect
U_MCUMCU.SchDoc
BNCPotentiometer
I2C_SLKI2C_SDALED4LED3
LED1LED2
JOY_SELJOY_DOWNJOY_LEFTJOY_RIGHTJOY_UPUser_Button
BiD_LEDUSART_RXUSART_TX
U_PeripheralsPeripherals.SchDoc
U_PowerPower.SchDoc
Sch
ematics
UM
0629
18/26D
oc ID 15312 R
ev 2
Figure 11. STM8L1 motherboard MCU
STMicroelectronicsTitle:
Number: Rev: Sheet ofA.1(PCB.SCH)Date:10/12/2009MB709 2 6
STM8L1/L2-MB MCU
MicroSD_CSSPI_SCKSPI_MOSI
LCD_CS
SPI_MISO
Audio_PWMMIC_OUT
BEEP
BNC
Potentiometer
I2C_SLKI2C_SDA
LED4
LED3
LED1LED2
JOY_SEL
JOY_DOWN
JOY_LEFTJOY_RIGHTJOY_UP
User_Button USART_TXUSART_RX
1 432
B1RESET
R1510K
MCU_VDD
C5100nF
RESET#
32
1JP1
C920pF
C1020pF
X1
Not Fitted
R17 60
BiD_LED
L1
BEAD C1110uF
C1210nF
JP3Not Fitted
C7100nF
VDDVDD
VDDA
C6100nF
MCU_VDD
PA1PA2
PA4PA5PA6
PG0PG1PG2PG3PD0PD1PD2PD3PB0PB1PB2PB3PE0PE1PE2PE3PE4PE5 PE6
PE7PB4PB5PB6PB7
PD4PD5PD6PD7PF0PF1PF2PF3PF4PF5PF6PF7PC0PC1PC2PC3PC4PC5PC6PC7PH0PH1PH2PA0
VDDVDDA
PG4PG5PG6PG7
VDD
PA3
PA1/NRST1
PA2/HSE_IN2
PA3/HSE_OUT3
PA4/ADC_IN15/TIM2_BKIN8
PG44
PG55
PG66
PG77
PA5/ADC_IN14/TIM3_BKIN9
PA6/ADC_IN13/COMP_REF10
VSSA11
VSS12
VDD13
VDDA14
PG0/REF+15
PG1/REF-16
PG2/ADC_IN1217
PG3/ADC_IN1118
PD0/TIM3_CH2/COMP1_CH319
PD1/TIM3_TRIG/COMP1_CH420
PD2/COMP2_CH321
PD3/COMP2_CH422
PB0/TIM2_CH1/COMP1_CH123
PB1/TIM3_CH1/COMP1_CH224
PB2/ TIM2_CH2/COMP2_CH125
PB3/TIM2_TRIG/COMP2_CH226
PE0/ADC_IN227
PE1/ADC_IN128
PE2/ADC_IN029
PE330
PE431
PE532
PE633PE7 34PB4/SPI_NSS 35PB5/SPI_SCK 36PB6/SPI_MOSI 37PB7/SPI_MISO 38VSS 39VDD 40PD4 41PD5 42PD6 43PD7 44PF0 45PF1 46PF2 47PF3 48PF4 49PF5 50PF6 51PF7 52PC0/I2C_SDA 53PC1/I2C_SCL 54PC2/USART_RX 55PC3/USART_TX 56PC4/USART_CK/CCO 57PC5/LSE_IN 58PC6/LSE_OUT 59PC7 60PH0 61PH1 62PH2 63PA0/SWIM/BEEP/IR_TIM 64
U4
Not Fitted
MCU_VDD
1234
CN6
609-1306-ND(2.54mm)
1234
CN5
214017
RESET# R9 0
PA0
SWIM connector
SWIM connector
SWIM connector
12
3
JP2
1 23 45 67 89 1011 1213 1415 1617 1819 2021 2223 2425 2627 2829 3031 3233 3435 3637 3839 4041 4243 4445 4647 4849 5051 5253 5455 5657 5859 6061 6263 6465 6667 6869 7071 7273 7475 7677 7879 8081 8283 8485 8687 8889 9091 9293 9495 9697 9899 100101 102103 104105 106107 108109 110111 112113 114115 116117 118119 120
G1 G4G1 G4G2 G3G2 G3
CN2
Not Fitted
RESET# PA2
PA4PA5 PA6
PG0 PG1PG2 PG3PD0 PD1PD2 PD3PB0 PB1PB2 PB3PE0 PE1PE2 PE3PE4 PE5
VDD VDDA
PG4PG5 PG6PG7
PA3
PE6 PE7PB4 PB5PB6 PB7
PD4 PD5PD6 PD7PF0 PF1PF2 PF3PF4 PF5PF6 PF7PC0 PC1PC2 PC3PC4
PC7PH0PH1PH2PA0
VDD
R18 820
1 23 45 67 89 1011 1213 1415 1617 1819 2021 2223 2425 2627 2829 3031 3233 3435 36
CN3
Header 18X2 on the left
1 23 45 67 89 1011 1213 1415 1617 1819 2021 2223 2425 2627 2829 3031 3233 3435 36
CN4
Header 18X2 on the right
D5V
RESET#
Exension connector
MCU_VDD
C8100nF
R14
10KPA6PC4
R11
8K
R1025K
PE0
PD2
+3V3
R1229K
R134K
PD3
ComparatorSTice connector
MCU
Economic measurement
PA1 PA2
PA4PA5PA6PG0PG1PG2PG3PD0PD1PD2
PD3
PB0 PB1PB2 PB3
PE0 PE1PE2 PE3PE4 PE5
PG4PG5PG6PG7
PA3
PE6PE7PB4PB5PB6
PB7PD4
PD5 PD6PD7 PF0PF1 PF2
PF3PF4
PF5PF6PF7PC0PC1PC2PC3
PC4
PC7 PH0PH1 PH2PA0
41
32
X2Not Fitted
C13
10pF
C14
10pF
JP4
JP5
23
1
JP6
solder bridge
21
3
JP7solder bridge
EX_PC5EX_PC6
EX_PC5 EX_PC6
EX_PC5EX_PC6SDcard_detect
UM
0629S
chem
atics
Doc ID
15312 Rev 2
19/26
Figure 12. STM8L1 motherboard LCD and SD
STMicroelectronicsTitle:
Number: Rev: A.1(PCB.SCH) Date: 1/21/2009MB709
STM8L1/L2-MB LCD&SD
Vss1
Vcc2
VO3
CLK4
SID5
CS6
A7
K8
U2
HXM122032-GB1
+3V3
R40
R2do not fit
R1do not fit
+5V
+3V3C3100nF
MicroSD_CS
SPI_SCKSPI_MOSI
LCD_CS
+3V3R74K7
+3V3
R5 0SPI_MISO
12345678
SW2 9SW1 10CN1
PJS008-2000 (SMS064FF or SMS128FF)
MCU_VDD
R6do not fit
R3 0
SDcard_detect
MicroSD card
LCD
VL1
IOVL_12
IOVL_23
IOVL_34
IOVL_45
NC6
GND7 THREE_STATE 8NC 9IOVCC_4 10IOVCC_3 11IOVCC_2 12IOVCC_1 13VCC 14U1
MAX3378EEUD
+3V3MCU_VDD
R55
do not fit
MCU_VDD
R690
C2100nF
C1100nF
2
31
T19013R54
1K
Sch
ematics
UM
0629
20/26D
oc ID 15312 R
ev 2
Figure 13. STM8L1 motherboard peripherals
1
1
2
2
3
3
4
4
STMicroelectronicsTitle:
Number: Rev: Sheet ofA.1(PCB.SCH) Date: 1/21/2009MB709 4 6
STM8L1/L2-MB Peripherals
12345
CN7
VB334 (do not fit)
13
2 RV110K
R21
0
MCU_VDD
BNC
Potentiometer
BNC connector
Potentiometer
E01
E12
E23
VSS4 SDA 5SCL 6WC7VCC 8
U6
M24C64-RMN6
R3510K JP8
MCU_VDD
R424K7
R434K7
I2C_SLKI2C_SDA
R22 0R23 0
C16
100nF
1 2
LD4Orange
1 2
LD3Green
1 2
LD5Blue
1 2
LD2Red+3V3
R37
600
R38
600
R39
600
R40
600LED4
LED3
LED1
LED2
R31
10K
R32
10K
R33
10K
R34
10K
R30
10K
MCU_VDD
C22
100n
F
C21
100n
F
C20
100n
F
C19
100n
F
C18
100n
F
R45
100COMMON5
Selection2
DWON3
LEFT1
RIGHT4
UP6
U7
MT008-A
R28 0R27 0R26 0R25 0R24 0JOY_SEL
JOY_DOWNJOY_LEFTJOY_RIGHTJOY_UP
Joystick
R414K7
1 432
B2USER C15
100nF
MCU_VDD
R44
100
R20 0User_Button
User Button
BiD_LED 1 2
LD1
L-317EGW-SS
R36300
+5V
LEDs EEPROM
Bi-color LED
VCCA1
GND2
A3 B 4DIR 5VCCB 6
U3
SN74LVC1T45DCKT R16300
+5V
MCU_VDD
MCU_VDD
R1910K
MCU_VDD
USART_TX
USART_RX R29 0
R2out9 R2in 8
T1in11
R1out12
T1out 14
R1in 13
T2in10 T2out 7
C1+1
C1-3 C2+ 4
C2- 5
V+2
V-6
VCC 16
GND 15
U8
ST3232ECTR
C17100nF
C250.1uF
C240.1uF
C230.1uF
C260.1uF
MCU_VDD
162738495
CN8DB9-male USART1
R46do not fit
R8 10K
RS232
UM
0629S
chem
atics
Doc ID
15312 Rev 2
21/26
Figure 14. STM8L1/L2 motherboard audio
STMicroelectronicsTitle:
Number: Rev: SheetA.1(PCB.SCH) Date: 1/21/2009
12
U11KECG2740TBL
21 U9
KDMG15008-03
C39
180pF
C28
100nF
R60100K
R61100K
Standby1
Bypass2 Vin+3 Vin-4 Uout1 5
VCC 6
GND 7
Vout2 8
U10
TS4871IST
R5010K
JP10
+3V3
+3V3
C27100nF
C34
2.2uF
R57
33K
R52
47K
C30
470pF
C352.2uF
C36100uF
TP1
Audio
TP2MIC_OUTTP3
MIC+
R561K
R51
100
R592.2K
C3747pF
MCU_VDD
R64
15K
R580(don't solder)
R470
13
2
RV250K
13
2
RV3do not fit
Speaker+
Speaker-
1102
CN9
ST-613
C38do not fit
R48 0 R49 0
Audio_PWM
MIC_OUT
Speaker
Microphone
4
31
25
U12TS461CLT
C29
10uF
C404.7uF
C422.2uF
R6218K
MCU_VDD
R65 82K
R63680
C414.7uF
MCU_VDD
R53
1.2K
C3133nF
MB709
STM8L1/L2-MB Audio
12
3
JP9
BEEP
Sch
ematics
UM
0629
22/26D
oc ID 15312 R
ev 2
Figure 15. STM8L1 motherboard power
STMicroelectronicsTitle:
Number: Rev: A.1(PCB.SCH) Date: 9/23/2009
Vin3
GN
D1
Vout 2
U14LD1086D2M33
SV1
SG2
CV 3
CG1 4
CG2 5
CG3 6
U15
BNX002-01
C4410uF
E5V
TP65V
+5VR66
1K1 2
LD6red
C47470uF
C4510uF
C4610uF
C48100nF
C49100nF
+5V +3V3
VCC_ADJ+5VTP7Ground
TP4+3V3
TP5VCC_ADJ
1
32
CN10
DC-10BZ1SMAJ5.0A-TR C43
100nF
1
2
3
U13ZEN056V130A24LS
R67165
13
2 RV43314J-201
12
3
JP11
MCU_VDD
R6875
Vin3
AD
J1
Vout 2
U16LD1086D2M
E5V
D5V
MB709
STM8L1/L2-MB Power
1 23 4
JP12
Header 2X2
UM
0629S
chem
atics
Doc ID
15312 Rev 2
23/26
4.2 STM8L1-DB daughterboard schematic
Figure 16. Daughterboard schematic
1 2 3 4
STMicroelectronicsTitle:
Number: Rev: Sheet ofB.1(PCB.SCH) Date: 10/12/2009
PA1/NRST1
PA22
PA33
PA4/TIM2_BKIN4
PA5/TIM3_BKIN5
PA6/COMP_REF6
VSS7
VDD8
PD0/TIM3_CH2/COMP1_CH39
PD1/TIM3_TRIG/COMP1_CH410
PD2/COMP2_CH311
PD3/COMP2_CH412
PB0/TIM2_CH1/COMP1_CH113
PB1/TIM3_CH1/COMP1_CH214
PB2/ TIM2_CH2/COMP2_CH115
PB3/TIM2_TRIG/COMP2_CH216 PB4/SPI_NSS 17PB5/SPI_SCK 18PB6/SPI_MOSI 19PB7/SPI_MISO 20PD4 21PD5 22PD6 23PD7 24PC0/I2C_SDA 25PC1/I2C_SCL 26PC2/USART_RX 27PC3/USART_TX 28PC4/USART_CK/CCO 29PC5 30PC6 31PA0/SWIM/BEEP/IR_TIM 32
U1
STM8L101K3T
MB710 1 1
STM8L1-DB
JP1
C3100nF
VDDMCU_VDD
QFP32 and OTQ-32-0.8-02 double footprint
PA1PA2PA3PA4PA5PA6
PD0PD1PD2PD3PB0PB1PB2PB3 PB4
PB5PB6PB7PD4PD5PD6PD7PC0PC1PC2PC3PC4PC5PC6PA0
R2 820
Extension connector
1 23 45 67 89 1011 1213 1415 1617 1819 2021 2223 2425 2627 2829 3031 3233 3435 3637 3839 4041 4243 4445 4647 4849 5051 5253 5455 5657 5859 60
GN
D61
GN
D62
GN
D63
GN
D64
CN3QTH-030-01-L-D-A
60-pins Connector for STICE
RESET# PA2PA3 PA4PA5 PA6
PD0 PD1PD2 PD3PB0 PB1PB2 PB3
VDD
PB4 PB5PB6 PB7PD4 PD5PD6 PD7PC0 PC1PC2 PC3PC4 PC5PC6 PA0
1 23 45 67 89 1011 1213 1415 1617 1819 2021 2223 2425 2627 2829 3031 3233 3435 36
CN1
SSQ-118-03-G-D
PA1 PA2
PA4PA5PA6
PD0PD1PD2
PD3
PB0 PB1PB2 PB3
PA3
PC4
PA0
PC5 PC6 1 23 45 67 89 1011 1213 1415 1617 1819 2021 2223 2425 2627 2829 3031 3233 3435 36
CN2
SSQ-118-03-G-D
D5V
RESET#
MCU_VDD
PB4PB5PB6
PB7PD4
PD5 PD6PD7
PC0PC1PC2PC3
Left Right
STM8L101-EVAL I/O assignment UM0629
24/26 Doc ID 15312 Rev 2
Appendix A STM8L101-EVAL I/O assignment
Table 13. STM8L101-EVAL input and output assignment
STM8L101pin number
Pin nameSTM8L101-EVAL pin
assignmentSTM8L101pin number
Pin nameSTM8L101-EVAL pin
assignment
1 PA1 - NRESET RESET 17 PB4 SD_card_CS
2 PA2 Unused 18 PB5 SPI_SCK
3 PA3 Unused 19 PB6 SPI_MOSI
4 PA4 Joystick down 20 PB7 SPI_MISO
5 PA5 User button 21 PD4 LED 1
6 PA6 COMP_REF 22 PD5 LED 2
7 VSS GND 23 PD6 LED 3
8 VDD VDD 24 PD7 Joystick select
9 PD0 Audio PWM_out 25 PC0 I²C_SDA_E2P
10 PD1 LCD_CS 26 PC1 I²C_SCL_E2P
11 PD2 CMP2_Potentiometer 27 PC2 USART_RX
12 PD3 CMP2_VREF 28 PC3 USART_TX
13 PB0 Bi-color LED 29 PC4 VREF_CTRL
14 PB1 Joystick left 30
15 PB2 Joystick right 31
16 PB3 Joystick up 32 PA0 SWIM / Beep
UM0629 Revision history
Doc ID 15312 Rev 2 25/26
5 Revision history
Table 14. Document revision history
Date Revision Changes
29-Jan-2009 1 Initial release.
06-Nov-2009 2Removed STice and IrDA functionality. Modified , Section 2.5, Section 2.6 Table 2, Table 3, Table 6, Table 12, Table 13, Figure 2, Figure 3, Figure 4 all schematics and Appendix A.
UM0629
26/26 Doc ID 15312 Rev 2
Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve theright to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at anytime, 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 noliability 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 thisdocument 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 productsor services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of suchthird 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 IMPLIEDWARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIEDWARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWSOF 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 NOTRECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAININGAPPLICATIONS, 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 "AUTOMOTIVEGRADE" 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 voidany warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, anyliability 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 - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America
www.st.com