ST 32L152CDISCOVERY User Manual
ST 32L152CDISCOVERY User Manual

ST 32L152CDISCOVERY User Manual

Discovery kit with stm32l152rc mcu
Hide thumbs Also See for 32L152CDISCOVERY:
Table of Contents

Advertisement

Quick Links

UM1079
User manual
Discovery kit with STM32L152RC MCU
Introduction
The 32L152CDISCOVERY Discovery kit helps the development of applications based on
the STM32L1 series microcontrollers and benefits from the ultra-low-power features of
these devices.
Based on the STM32L152RC microcontroller, this Discovery kit includes an ST-LINK/V2
embedded debugging tool interface, a 24-segment 4-common LCD, LEDs, push-buttons, a
linear touch sensor, and touchkeys.

Figure 1. 32L152CDISCOVERY board

1. Picture is not contractual.
October 2023
UM1079 Rev 5
1/38
www.st.com
1
Arrow.com.
Downloaded from

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 32L152CDISCOVERY and is the answer not in the manual?

Questions and answers

Summary of Contents for ST 32L152CDISCOVERY

  • Page 1: Figure 1. 32L152Cdiscovery Board

    User manual Discovery kit with STM32L152RC MCU Introduction The 32L152CDISCOVERY Discovery kit helps the development of applications based on the STM32L1 series microcontrollers and benefits from the ultra-low-power features of these devices. Based on the STM32L152RC microcontroller, this Discovery kit includes an ST-LINK/V2 embedded debugging tool interface, a 24-segment 4-common LCD, LEDs, push-buttons, a linear touch sensor, and touchkeys.
  • Page 2: Table Of Contents

    Embedded ST-LINK/V2 ........
  • Page 3 Product marking ..........32 32L152CDISCOVERY product history ......33 Board revision history .
  • Page 4 List of tables UM1079 List of tables Table 1. Ordering information ............7 Table 2.
  • Page 5 32L152CDISCOVERY connections ........
  • Page 6: Features

    – Extension header for LQFP64 I/Os for quick connection to prototyping board and easy probing • Flexible power supply options: ST-LINK USB VBUS or external sources • External application power supply: 3 V and 5 V • IDD current measurement •...
  • Page 7: Ordering Information

    UM1079 Ordering information Ordering information To order the 32L152CDISCOVERY ultra-low-power Discovery kit, refer to Table Table 1. Ordering information Order code Board reference Target STM32L1 STM32L152C-DISCO STM32L152RCT6 MB963 STM32L-DISCOVERY STM32L152RBT6 1. Subsequently called main board in the rest of the documentation.
  • Page 8: System Requirements

    STM32 flash memory for easy demonstration of the device peripherals in standalone mode. The latest versions of the demonstration source code and associated documentation can be downloaded from www.st.com. ® a. macOS is a trademark of Apple Inc., registered in the U.S. and other countries and regions.
  • Page 9: Conventions

    UM1079 Conventions 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 JPx ON Jumper fitted Jumper JPx OFF Jumper not fitted Jumper JPx [1-2] Jumper fitted between pin 1 and pin 2 Solder bridge SBx ON SBx connections closed by 0 Ω...
  • Page 10: Quick Start

    (refer to Figure • Connect the 32L152CDISCOVERY to a computer with a USB cable to power the board. The red LEDs LD2 (PWR) and LD1 (COM) are lit up. Function 1 is executed. • Click on the user button (B1) to change the executed function as described in Table The 4-LED bar shows the performed function (up to four bars can be switched ON).
  • Page 11: Hardware And Layout

    UM1079 Hardware and layout Hardware and layout The 32L152CDISCOVERY is designed around one STM32L152RC packaged in an LQFP64. Figure 2 illustrates the connections between the STM32L152RC microcontroller and its peripherals (ST-LINK/V2, push-buttons, LEDs, LCD, linear touch sensor, touchkeys, and connectors). These connections are the same for the STM32L-DISCOVERY.
  • Page 12: 32L152Cdiscovery Top And Bottom Layouts

    Hardware and layout UM1079 32L152CDISCOVERY top and bottom layouts Figure 3. Top layout COM LED (LD1) PWR LED SWD connector (LD2) (CN2) ST-LINK/V2 ST-LINK/DISCOVERY selector (CN3) 3V power supply input/output 5V power supply input/output module 24 segments measurement BOOT0 (SB1 and SB2)
  • Page 13: Figure 4. Bottom Layout

    UM1079 Hardware and layout Figure 4. Bottom layout Reserved NRST (SB6, SB8, SB10, and SB12) (SB100) Default STM_RST (SB7, SB9, SB11, and SB13) (SB102) SB101 (SWO) Male header Male header (P1) (P2) measurement (SB14) (JP1) X2 crystal (SB15 and SB16) BOOT1 (SB19) (SB17)
  • Page 14: Mechanical Drawing

    Hardware and layout UM1079 Mechanical drawing Figure 5. Mechanical drawing www.st.com/stm32l152c-discovery MB963 C MS31848V1 14/38 UM1079 Rev 5 Arrow.com. Downloaded from...
  • Page 15: Embedded St-Link/V2

    UM1079 Hardware and layout Embedded ST-LINK/V2 The ST-LINK/V2 programming and debugging tool is integrated into the 32L152CDISCOVERY. The embedded ST-LINK/V2 can be used in two different ways according to the jumper configuration (refer to Table • Program/debug the MCU on board •...
  • Page 16: Using The St-Link/V2 To Program/Debug The On-Board Microcontroller

    Hardware and layout UM1079 6.3.1 Using the ST-LINK/V2 to program/debug the on-board microcontroller Figure 6 shows how to plug the two jumpers on CN3 to program the STM32L152RC on the board. The usage of CN2 is forbidden as it might disturb communication with the microcontroller.
  • Page 17: Using The St-Link/V2 To Program/Debug An External Application

    Hardware and layout 6.3.2 Using the ST-LINK/V2 to program/debug an external application The ST-LINK/V2 allows also the programming of an STM32 device on an external application. Figure 7 shows how to remove the two jumpers from CN3 and connect the...
  • Page 18: Power Supply And Power Selection

    (SELV) with limited power capability. Battery-powered (optional) The 32L152CDISCOVERY board has been designed to run from a CR2032 standalone battery (no connection with USB or other power supply is required). By default, no battery holder is mounted on the board, and SB21 and SB22 are configured...
  • Page 19: Leds

    B2 RESET: The reset push-button is used to reset the MCU. Linear touch sensor and touchkeys To demonstrate touch sensing capabilities, the 32L152CDISCOVERY includes a linear touch sensor that can be used either as a 3-position linear touch sensor or as four touchkeys.
  • Page 20: Built-In Idd Measurement Circuit

    To perform the I measurement by the MCU itself, the circuit shown in Figure 8 implemented on the 32L152CDISCOVERY. The solder bridges (SB1, SB2, and SB14) and jumper (JP1) must be ON. The low I range procedure (refer to Section 6.8.2) is...
  • Page 21: Low Idd Range Mode

    UM1079 Hardware and layout 6.8.2 Low I range mode In low I range mode, the operational amplifier MAX9938FEUK+ (U5) is connected to the 1 kΩ shunt resistor (R22), controlled by the FET transistor 1 of U20. In this case, the counter 74HC4060 (U3) enabled by IDD_CNT_EN manages the measurement timing according to Figure Low I...
  • Page 22: Ibias Current Measurement Procedure

    Hardware and layout UM1079 Figure 9. Low I range measurement timing diagram Clear U3 counter enabled U3 counter Low-power mode Wakeup Run mode measurement IDD_CNT_EN 150 ms Q13=LOW_POWER_EN (U20 pin 2) 300 ms 450 ms Q14 = IDD_WAKEUP Q14 = U7 pin 4 MS19055V1 6.8.3 current measurement procedure...
  • Page 23: Solder Bridges

    UM1079 Hardware and layout Solder bridges Table 7. Solder bridges Bridge State Description PH0 and PH1 are connected to P1 (X3, C21, C22, R30 must not be fitted). SB18,20 PH0 and PH1 are disconnected from P1. (X3 crystal) X3, C21, C22, and R30 provide a clock. Refer to electrical schematics.
  • Page 24 Hardware and layout UM1079 Table 7. Solder bridges (continued) Bridge State Description The BOOT0 signal of the STM32L152RC is held low through a 510 Ω pull-down resistor. SB3 (BOOT0) The BOOT0 signal of the STM32L152RC is held high through a 10 kΩ pull-up resistor. The BOOT1 signal of the STM32L152RC is held high through a 10 kΩ...
  • Page 25: Lcd (24 Segments, Four Commons)

    UM1079 Hardware and layout 6.10 LCD (24 segments, four commons) This LCD allows the STM32L152RC to display any information on six 14-segment digits and four bars, using all COMs. (Refer to the LCD segment mapping in Figure 10 and pin connections in Table Note:...
  • Page 26: Table 8. Lcd Connections

    Hardware and layout UM1079 Table 8. LCD connections STM32L152RC GPIO Name COM3 COM2 COM1 COM0 Name LCDSEG0 1COLON LCDSEG1 LCDSEG2 2COLON LCDSEG3 LCDSEG4 3COLON LCDSEG5 PB10 LCDSEG6 PB11 4COLON LCDSEG7 PB12 LCDSEG8 PB13 BAR2 BAR3 LCDSEG9 PB14 LCDSEG10 PB15 BAR0 BAR1 LCDSEG11 COM3...
  • Page 27: Extension Connectors

    Extension connectors Extension connectors The male headers P1 and P2 can connect the 32L152CDISCOVERY to a standard prototyping/wrapping board. The STM32L152RC GPIOs are available on these connectors. An oscilloscope, a logic analyzer, or a voltmeter can also probe P1 and P2.
  • Page 28 Extension connectors UM1079 Table 9. MCU pin description versus board function (continued) MCU pin Board function Linear Push Main Alternate Free Touch butt LED SWD OSC P1 P2 function functions glass supp Sensor SPI1_MISO/ADC_I TIM3_CH1/TIM1_B KIN/ LCD_SEG3/TIM10 _CH1/ COMP1_INP SPI1_MOSI/ADC_I TIM3_CH2/TIM1_C /LCD_SEG4/TIM11 _CH1/...
  • Page 29 UM1079 Extension connectors Table 9. MCU pin description versus board function (continued) MCU pin Board function Linear Push Main Alternate Free Touch butt LED SWD OSC P1 P2 function functions glass supp Sensor TIM2_CH2/PB3/TR ACESWO/SPI1_S JTDO CK/COMP2_INM/L CD_SEG7 TIM3_CH1/PB4/SP JNTRST I1_MISO/COMP2_I NP/LCD_SEG8 I2C1_SMBAl/TIM3...
  • Page 30 Extension connectors UM1079 Table 9. MCU pin description versus board function (continued) MCU pin Board function Linear Push Main Alternate Free Touch butt LED SWD OSC P1 P2 function functions glass supp Sensor SPI2_SCK/USART 3_CTS/ LCD_SEG13/ADC_ PB13 IN19/ COMP1_INP/TIM9 _CH1 SPI2_MISO/USAR T3_RTS/LCD_SEG PB14...
  • Page 31 UM1079 Extension connectors Table 9. MCU pin description versus board function (continued) MCU pin Board function Linear Push Main Alternate Free Touch butt LED SWD OSC P1 P2 function functions glass supp Sensor TIM3_CH4/LCD_S EG27 USART3_TX/LCD_ PC10 SEG28/LCD_SEG4 0/LCD_COM4 USART3_RX/LCD_ PC11 SEG29/LCD_SEG4 1/ LCD_COM5...
  • Page 32: 32L152Cdiscovery Product Information

    Parts marked as "ES" or "E" are not yet qualified and therefore not approved for use in production. ST is not responsible for any consequences resulting from such use. In no event will ST be liable for the customer using any of these engineering samples in production.
  • Page 33: 32L152Cdiscovery Product History

    UM1079 32L152CDISCOVERY product information 32L152CDISCOVERY product history Table 10. Product history Order Product Product change Product details Product limitations code identification description MCU: – STM32L152RCT6 any revision MCU errata sheet: – STM32L15xxC and STM32L152CDISC/ Initial revision No limitation STM32L162xC device...
  • Page 34: Board Revision History

    32L152CDISCOVERY product information UM1079 Board revision history Table 11. Board revision history Board variant and Board change Board reference Board limitations revision description MB963-C02 Initial revision No limitation Several part references updated due to obsolescence such as: – U3 STMicroelectronics...
  • Page 35: Federal Communications Commission (Fcc)

    UM1079 Federal Communications Commission (FCC) and ISED Canada Compliance Statements Federal Communications Commission (FCC) and ISED Canada Compliance Statements FCC Compliance Statement 9.1.1 Part 15.19 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.
  • Page 36: Ised Compliance Statement

    Federal Communications Commission (FCC) and ISED Canada Compliance Statements UM1079 ISED Compliance Statement Compliance Statement ISED Canada ICES-003 Compliance Label: CAN ICES-3 (B) / NMB-3 (B). Déclaration de conformité Étiquette de conformité à la NMB-003 d'ISDE Canada : CAN ICES-3 (B) / NMB-3 (B). 36/38 UM1079 Rev 5 Arrow.com.
  • Page 37: Revision History

    Updated STM32L-DISCOVERY URL. Modified Section 2.2: System requirements, Section 2.5: Order codes, Section 4.1: STM32L152RB or STM32L152RC microcontroller, Section 4.2.1: Using the ST-LINK/V2 to 19-Apr-2013 program/debug an external STM32L application. Updated Figure 1: STM32L1 Discovery board, Figure 2: Hardware block...
  • Page 38 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 acknowledgment.

Table of Contents