UM1037 STMICROELECTRONICS | Alldatasheet

Document overview

  • Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
  • PDF pages: 46

Technical content

Datasheet sections

  • 1 Overview
  • 1.1 Features
  • 1.2 Demonstration software
  • 1.3 Order code
  • 2 Hardware layout and configuration
  • 2.1 Development and debug support
  • 2.2 Power supply
  • 2.3 Clock source
  • 2.4 Reset source
  • 2.5 LCD glass module
  • 2.6 Audio
  • 2.7 EEPROM
  • 2.8 RS232 & IrDA
  • 2.9 Motor control
  • 2.10 MicroSD card
  • 2.11 Analog input
  • 2.12 Serial Flash
  • 2.13 Temperature sensor
  • 2.14 Display and input devices
  • 2.15 IDD measurement
  • 2.15.1 Run mode
  • 2.15.2 Low power mode
  • 2.16 IR LED & IR receiver
  • 2.17 Touch sensing buttons
  • 3 Connectors
  • 3.1 Motor control connector CN1
  • 3.2 BNC connector CN2
  • 3.3 Daughter board extension connector CN3 and CN4
  • 3.4 SWIM connectors CN5 and CN8
  • 3.5 LCD Glass connector CN6 and CN10

4 KByte SRAM, 2 Kbyte data EEPROM and 64 KByte Flash program memory as well as

wrapping board for your specific application. programmer for the STM8 MCU. Figure 1. STM8L1528-EVAL evaluation board

1 Overview

1.1 Features

  • Three 5 V power supply options: Power jack, ST -LINK/V2 USB connector or daughter board
  • Audio speaker and microphone connected to DAC and ADC of STM8L152M8T6
  • 1G Byte (or more) SPI interface MicroSD card
  • 128 Mbit SPI serial Flash
  • I2C compatible serial interface 64 Kbit EEPROM and SMBus temperature sensor
  • RS232 communication
  • IrDA transceiver
  • Inductor Motor Control connector
  • SWIM debug support, embedded ST -LINK/V2
  • 122x32 Dot matrix LCD connected to SPI interface of STM8L152M8T6
  • Joystick with 4-direction control and selector
  • Reset, Tamper and User button
  • Two touch-sensing buttons
  • 4 color LEDs and one bi-color LED
  • MCU consumption measurement circuit
  • LCD glass (40seg x 8com) connected to STM8L152M8T6’s on-chip LCD driver
  • Extension connector for daughter board or wrapping board
  • MCU voltage selectable 3.3 V or adjustable from 1.65 V to 3.6 V
  • IR LED and receiver

1.2 Demonstration software

Demonstration software is preloaded in the board's Flash memory for easy demonstration of the device peripherals in stand-alone mode. For more information and to download the lastest version available, please refer to STM8L1528-EVAL demonstration software available on the ST website: www.st.com.

1.3 Order code

To order the STM8L152M8T6 MCU evaluation board, use the order code STM8L1528-EVAL.

2 Hardware layout and configuration

LINK/V2) and Figure 3 will help you locate these features on the actual evaluation board. Figure 2. Hardware block diagram

Figure 3. STM8L1528-EVAL evaluation board layout

2.1 Development and debug support

page for ultra low power STM8L family available on www.st.com.

  • Slow blinking Red/Off : At power on before USB init
  • Fast blinking Red/Off : After the first correct communication between PC and ST - Link/V2 (enumeration)
  • Red Led On: When initialisation between PC and ST -LINK/V2 is successfully finished
  • Green Led On: After successful target communication initialisation
  • Blinking Red/Green: During communication with target
  • Red On: Communication finished and OK
  • Orange On: Communication failure Note: It is possible to power the board via CN9 (Embedded ST -LINK/V2 USB connector) even if an external tool is connected to CN5 (ERNI connector) or CN8 (Low cost connector). The SWIM connector or embedded ST -LINK/V2 can be enabled by setting jumper JP2.

2.2 Power supply

the evaluation board to use any of following three sources for the power supply.

  • 5 V DC power adapter connected to CN12, the Power Jack on the board (Power Supply Unit PSU in JP13 jumper description in Table 2).
  • 5 V DC power with 500mA limitation from CN9, the USB type B connector for ST -LINK/V2 (USB 5 V power (USB in JP13 jumper description in Table 2)).
  • 5 V DC power from CN4, the extension connector for daughter board (Daughter Board power source (DTB in JP13 jumper description in Table 2)). The power supply is configured by setting the related jumpers JP4, JP13 and JP14 as described in Table 2.

Table 1. SWIM debugging -related jumpers

correctly, LED LD6 will be lit when MCU is powered by low voltage (VDD < 1.8 V). board via the CN12 power jack on the board. Table 2. Power related jumpers JP13 is set as shown to the right.

2 Ohm or 2 KOhm, in series for IDD current measurement

when JP4 is set as shown to the right.

2.3 Clock source

  • X1, 32 KHz crystal for embedded RTC
  • X2, 16 MHz crystal with socket for STM8L152M8T6 microcontroller, it can be removed from its socket when the internal RC oscillator is used.

2.4 Reset source

  • Reset button B1
  • Debugging tools from SWIM connector CN5 and CN8
  • Daughter board from CN4
  • Embedded ST -LINK/V2
  • RS232 connector CN7 for ISP .

Table 3. Clock source related solder bridges silkscreen) connected to pad2 (default setting). (dot mark on silkscreen) connected to pad2. The solder bridges SB11 and SB12 should be kept open by default. Table 4. Reset related jumpers Default Setting: Not fitted.

2.5 LCD glass module

jumpers by mounting it on two possible positions, "IO position" or "LCD position".

  • IO position : All peripherals (LEDs, Joystick, Bi-color LED, potentiometer, Motor control, MicroSD card and Microphone) shared with LCD glass are connected to STM8L152M8T6 and LCD glass is disconnected when LCD glass module is mounted in IO position as shown below (default setting).

Figure 4. LCD glass module in IO position

  • LCD position: LCD glass is connected to LCD driver of STM8L152M8T6 and all peripherals shared with LCD glass are disconnected when LCD glass module is mounted on position LCD as shown below.

Figure 5. LCD glass module in LCD position

2.6 Audio

  • A speaker and stereo audio jack which is connected to the DAC outputs of STM8L152M8T6 through an audio amplifier
  • An audio IN jack which is connected to ADC input of STM8L152M8T6 through a microphone amplifier. The speaker can be enabled by setting of JP3 to close and the Microphone output can be connect or disconnect to STM8L152M8T6 by setting of JP9 to close or open, refer to Table 5 for details. The LCD glass module has to be mounted in "IO" position for Microphone and headphone plug event detection. Refer to Section 2.5: LCD glass module on page 10 for details.

2.7 EEPROM

A 64 Kbit EEPROM connected to I2C bus of STM8L152M8T6. Table 5. Audio related jumpers connector operation, JP3 must be kept open.

2.8 RS232 & IrDA

2.9 Motor control

Table 6. EEPROM related jumper and solder bridge Table 7. RS232 & IrDA related jumpers is enabled when JP5 is set as shown to the right (default setting). enabled when JP5 is set as shown to the right.

  • Remove 0 ohm resistors R55 to release IO which used by the Motor control and shared with Bid-LED (if Bidir LED needs to remain OFF when motor is running).
  • Solder resistor 0 ohm resistors R51 and R60. The LCD glass module has to be mounted in "IO" position for Motor control. Refer to Section 2.5: LCD glass module on page 10 for details.

2.10 MicroSD card

kept closed for MicroSD card operation, refer to Table 9 for details. Section 2.5: LCD glass module on page 10 for details.

2.11 Analog input

resistor and capacitor values appropriate for the target application. Table 8. Motor control related jumpers and solder bridges input capture 2 pin, and to the timer3 external trigger input. pin31 of CN1 for special type of motors. between Microphone and Motor control connector CN1. pad2” (Dot mark on silkscreen).

  1. 10K ohm potentiometer RV2 connected to PC7.
  2. IDD measurement output signal connected to PF3 for MCU power consumption test.
  3. External ADC input which can be connected to TP1 (AIN+) and TP2 (AIN-), solder

bridge SB1 should be kept open for this Analog input. to Section 2.5: LCD glass module on page 10 for details.

2.12 Serial Flash

select is managed by standard IO port PH7.

2.13 Temperature sensor

through two transistors to support a wide voltage range from 1.65 V to 3.3 V on the I2C bus. SB13. the address is 0x90 when SB13 is open while address is 0x91 when SB13 is closed. Section 2.5: LCD glass module on page 10 for details.

2.14 Display and input devices

general purpose button (B3) are available as input devices. Table 9. Serial Flash related jumper kept open for SPI bootloader operation. Table 10. LCD module (122x32 dot-matrix LCD U26)

Section 2.5: LCD glass module on page 10 for details.

2.15 IDD measurement

Table 2 and Table 7 for details. Figure 6. STM8L1528-EVAL IDD measurement circuit

2.15.1 Run mode

and jumper JP4 must be connected between pin 1 and pin 2.

2.15.2 Low power mode

enabled by IDD_CNT_EN manages the measurement timing according to Figure 7.

  1. Configure ADC to measure voltage on IDD_measurement pin (PF3).
  2. Configure LP_WAKEUP (PH5) as interrupt input on rising edge
  3. Configuring IDD_CNT_EN (PH4) as output low level to start counting
  4. Enter in Halt or active Halt mode
  5. LP_WAKEUP rising edge wakeup the MCU after around 300ms
  6. start ADC conversion as soon as possible after wakeup in order to measure the voltage
  7. Reset the counter by programming IDD_CNT_EN High in less than 150 ms after the

Figure 7. STM8L1528-EVAL IDD low power mode measurement timing diagram VDD = 1.8 V else the Run measurement procedure need to be used up to 30 mA.

  1. Place a jumper on JP4 pins 2 and 3
  2. Follow the Halt mode procedure to measure I1 = I bias
  3. Remove jumper JP4 pins 2 and 3 and place it on JP4 pins 1 and 2
  4. Follow the Halt mode procedure to measure I2 = IDD + I bias
  5. Calculate actual IDD: IDD = I2 - I1

2.16 IR LED & IR receiver

shared by motor control connector through jumper JP15.

Note: Jumper JP2 needs to be set correspondingly for IR LED, please refer to Table 1 for details.

2.17 Touch sensing buttons

setting the related solder bridges. Table 11. IR LED & receiver related Solder Bridges & jumper LD7 is driven by PA0 directly when SB7 is set as pad2 connected to pad3. open for motor control application. Table 12. Touch Sensing button related solder bridges bridges SB3,4 and 5 are set to pad2 connected to pad3.

3 Connectors

3.1 Motor control connector CN1

Figure 8. Motor control connector CN1 Table 13. Motor control connector CN1 pin assignments

3.2 BNC connector CN2

Figure 9. Analog input connector CN2 (viewed from bottom)

3.3 Daughter board extens ion connector CN3 and CN4

Table 15 and Table 16 for details. Table 14. Analog input connector CN2

2 GND 5 Analog input PF0

Table 15. Daughter board extension connector CN3

3 PF1 Audio_DAC2 Set SB2 to 2<->3

5 PF3 IDD measurement Remove R20

7 PF5 LCD glass Put MB905 in "IO"

9 PF7 LCD glass Put MB905 in "IO"

11 PD4 LCD glass & MC

13 PD6 LCD glass & MC

15 PG4 LCD glass & JOY

17 PG6 LCD glass & SD detect

19 GND - -

21 PC1 I2C_SCL Remove R28

23 PC3 LCD glass & MC

27 PE6 LCD glass Put MB905 in "IO"

29 PI0 Anti-temper button Remove R111

33 PI1 SPI2_SCK -

35 PI3 SPI2_MISO Keep JP10 open

37 VLCD - -

39 GND

41 PH3 LCD glass & LD4

2 PF0 Audio_DAC1 & BNC Keep JP3 open

4 PF2 LCD_CS -

Table 15. Daughter board extension connector CN3 (continued)

6 PF4 LCD glass Put MB905 in "IO"

8 PF6 LCD glass Put MB905 in "IO"

10 GND - -

12 PD5 LCD glass & MC

14 PD7 LCD glass & MC

16 PG5 LCD glass & HP_Plug

18 PG7 LCD glass &

20 PC0 I2C_SDA Remove R29

22 PC2 LCD glass Put MB905 in "IO"

24 PC4 LCD glass & I2C_SMB

26 PC7 LCD glass &

28 PE7 LCD glass Put MB905 in "IO"

30 GND - -

34 PI2 SPI2_MOSI -

36 PH0 LCD glass & LD1

38 PH1 LCD glass & LD2

40 PH2 LCD glass & LD3

42 PA0 SWIM & IR LED Keep JP2 open

Table 16. Daughter board extension connector CN4

3 PC6 32KHz OSC Set SB9 to 1<->2

5 PC5 32KHz OSC Set SB8 to 2<->3

7 PB4 LCD glass & TS Put MB905 in "IO"

9 PB2 LCD glass & MC

11 RESET - -

13 PB0 LCD glass & MC

15 PA2 16MHz OSC Remove X2

17 PA3 16MHz OSC Remove X2

19 D5V - -

25 PD2 LCD glass &

27 PD0 LCD glass & MC

29 PE5 LCD glass & MC

31 PE3 LCD glass Put MB905 in "IO"

33 PE1 LCD glass & MC

35 PG3 LCD glass & JOY

37 PG1 LCD glass & JOY

39 GND - -

41 PA6 LCD glass & MC

43 PA4 LCD glass & MC

2 PB7 LCD glass Put MB905 iin "IO"

Table 16. Daughter board extension connector CN4 (continued)

4 PB6 LCD glass & TS Put MB905 in "IO"

6 PB5 LCD glass & TS Put MB905 in "IO"

8 PB3 LCD glass & MC

12 PB1 LCD glass & MC

14 PH7 Flash_CS Remove R89

16 PH6 User Button Remove R109

18 PH5 LP_WAKEUP & RS232 Keep JP12 in open

20 PH4 IDD_CNT_EN & RS232 Keep JP11 in open

24 VDD - -

26 PD3 LCD glass Put MB905 in "IO"

28 PD1 LCD glass & MC

32 PE4 LCD glass Put MB905 in "IO"

34 PE2 LCD glass & MC

STM8L1528-EVAL board by removing the LCD glass module (MB904) board.

3.4 SWIM connectors CN5 and CN8

Figure 10. SWIM debugging connectors CN5 and CN8

36 PE0 LCD glass & MC

38 PG2 LCD glass & JOY

40 PG0 LCD glass & JOY

42 PA7 LCD glass & MC

44 PA5 LCD glass Put MB905 in "IO"

Table 17. SWIM debugging connector CN5 and CN8

1 VDD 2 SWIM line (PA0)

3 GND 4 RESET#

3.5 LCD Glass connector CN6 and CN10

demonstration or other peripherals on STM8L1528-EVAL board.

3.6 RS232 connector CN7

Figure 11. RS232 connector CN7 with ISP support (viewed from front)

3.7 USB Type B connector CN9

Figure 12. USB type B connector CN9 (viewed from front) Table 18. RS232 connector CN7 with ISP support

1 NC 6 NC

2 RS232_RX (PH4) 7 NC

3 RS232_TX (PH5) 8 Bootloader_RESET

3.8 ST-LINK/V2 programming connector CN11

manufacture. It is not populated by default and not intended for customer use.

3.9 Power connector CN12

Figure 13. Power supply connector CN12 (viewed from front) Table 19. USB type B connector CN9

3.10 MicroSD connector CN15

Figure 14. MicroSD Card connector CN15 (viewed from front) Table 20. MicroSD connector CN15

2 MicroSDcard_CS

3 MicroSDcard_DIN(PI2) 8

5 MicroSDcard_CLK

4 Schematics

Figure 15. STM8L1528-EVAL schematics sheet 1 of 12 Note: All text in the each sheet is in Italic format to be different with Net label.

1 SB2

Figure 16. STM8L1528-EVAL schematics sheet 2 of 12

40 CN5

1 SB8

3 SB9

1 SB5

1 SB4

1 SB3

Figure 17. STM8L1528-EVAL schematics sheet 3 of 12

Figure 18. STM8L1528-EVAL schematics sheet 4 of 12

500 Audio_IN4

25 U25

2 U27

Figure 19. STM8L1528-EVAL schematics sheet 5 of 12

2 RV2

100 COMMON5

3 SB7

Figure 20. STM8L1528-EVAL schematics sheet 6 of 12

3 JP4

Figure 21. STM8L1528-EVAL schematics sheet 7 of 12

Figure 22. STM8L1528-EVAL schematics sheet 8 of 12

Figure 23. STM8L1528-EVAL schematics sheet 9 of 12

Figure 24. STM8L1528-EVAL schematics sheet 10 of 12

Figure 25. STM8L1528-EVAL schematics sheet 11 of 12

Figure 26. STM8L1528-EVAL schematics sheet 12 of 12

Figure 27. STM8L1528-EVAL daughter board schematics sheet 1 of 1

Table 21. IO pin assignment

1 PH0 LCD_SEG36

2 PH1 LCD_SEG37

3 PH2 LCD_SEG38

4 PH3 LCD_SEG39

5 PA0 SWIM / IR_LED

6 PA1 NRST

7 PA2 HSE_IN

8 PA3 HSE_OUT

9 PA4 LCD_COM0 / MC_CurrentA

10 PA5 LCD_COM1

11 PA6 LCD_COM2 / MC_CurrentC

12 PA7 LCD_SEG0 / MC_EnIndex

13 VSSA/VREF- GND

14 VSS GND

15 VDD VDD

16 VDDA VDDA

17 VREF+ / VREF+_DAC VDDA

18 PG0 LCD_SEG28 / JOY_UP

19 PG1 LCD_SEG29 / JOY_DOWN

20 PG2 LCD_SEG30 / JOY_LEFT

21 PG3 LCD_SEG31 / JOY_RIGHT

22 VLCD

23 PE0 LCD_SEG1 / MC_NTC

24 PE1 LCD_SEG2 / MC_VL

25 PE2 LCD_SEG3 / MC_WL

26 PE3 LCD_SEG4

27 PE4 LCD_SEG5

28 PE5 LCD_SEG6 / MC_CurrentB

29 PD0 LCD_SEG7 / MC_PFCsync1

30 PD1 LCD_COM3 / MC_PFCsync2

31 PD2 LCD_SEG8 / MC_UH / BidLED

32 PD3 LCD_SEG9

33 PH4 USART2_RX / IDD_CNT_EN

34 PH5 USART2_TX / LP_WAKEUP

35 PH6 User button

36 PH7 CS_Flash

37 VDDIO

38 VSSIO

39 PB0 LCD_SEG10 / MC_Encoder A

40 PB1 LCD_SEG11 / MC_Dissipative brake & MC_PFC PWM

41 PB2 LCD_SEG12 / MC_Encoder B / IR_receiver

42 PB3 LCD_SEG13 / MC_headsink temperature / Microphone

43 PB4 LCD_SEG14 / TS_Cap or Bootloader_SPI1_NSS

44 PB5 LCD_SEG15 / TS2_button or Bootloader_SPI1_SCK

45 PB6 LCD_SEG16 / TS1_butt on or Bootloader_SPI1_MOSI

46 PB7 LCD_SEG17 / Bootloader_SPI1_MISO

47 VDDIO

48 VSSIO

49 PF0 Audio_DAC1 / BNC

50 PF1 Audio_DAC2 / MC_ADC_IN25 (Current B2)

51 PF2 CS_LCD

52 PF3 IDD_measurement

53 PF4 LCD_COM4

54 PF5 LCD_COM5

55 PF6 LCD_COM6

56 PF7 LCD_COM7

57 PD4 LCD_SEG18 / MC_VH

58 PD5 LCD_SEG19 / MC_WH

59 PD6 LCD_SEG20 / MC_EmergencySTOP

60 PD7 LCD_SEG21 / MC_UL

61 PG4 LCD_SEG32 / JOY_SEL

62 PG5 LCD_SEG33 / headphone_detect

63 PG6 LCD_SEG34 / MicroSD detect

64 PG7 LCD_SEG35 / MicroSD_CS

65 PC0 I²C SDA

Table 21. IO pin assignment (continued)

66 PC1 I²C SCL

67 VDDIO

68 VSSIO

69 PC2 LCD_SEG22

70 PC3 LCD_SEG23 / MC_BusVoltage

71 PC4 LCD_SEG24 / I²C_SMB

72 PC5 LSE_IN

73 PC6 LSE_OUT

74 PC7 LCD_SEG25 / potentiometer

75 PE6 LCD_SEG26

76 PE7 LCD_SEG27

77 PI0 Anti-tamper button / SPI2_Bootloader_NSS

78 PI1 LCD-uSD-Flash_SPI2_SCK

79 PI2 LCD-uSD-Flash_SPI2_MOSI

80 PI3 uSD-Flash_SPI2_MISO

Revision history

Table 22. Document revision history 10-Dec-2010 1 Initial release.