The STM32L-DISCOVERY is based on an STM32L152RBT6 (128 Kbytes of Flash memory). These discovery kits include the ST-LINK/V2 in-circuit debugger, one LCD (24 segments, 4 commons), four LEDs, two pushbuttons, one linear touch sensor and four touchkeys. Figure 1. 32L152CDISCOVERY board 1.
16 Kbyte RAM, 4 Kbyte data EEPROM). Quick start Before using the discovery kit, please accept the Evaluation product license agreement available on the 32L152CDISCOVERY page of the www.st.com/mcu web site. Getting started The following sequence allows to configure the 32L152CDISCOVERY and to launch the discovery application: •...
RTC ON STM32L152RCT6 consumption measured in Stop mode, RTC OFF STM32L152RCT6 consumption measured in Standby mode Please refer to the www.st.com/mcu web site for more details on the discovery project and the STM32L152RCT6 features. System requirements • Windows PC (XP, Vista, 7) •...
An STM32L152RCT6 microcontroller (256 Kbyte Flash memory, 32 Kbyte RAM, 8 Kbyte data EEPROM) in a 64-pin LQFP package • On-board ST-LINK/V2 with selection mode switch to use the kit as a standalone ST-LINK/V2 (with SWD connector for programming and debugging) •...
The 32L152CDISCOVERY is designed around one STM32L152RCT6 packaged in an LQFP64. Figure 2 illustrates the connections between the STM32L152RCT6 microcontroller and its peripherals (ST-LINK/V2, pushbuttons, LEDs, LCD, linear touch sensor, touchkeys, and connectors). These connections are the same for the STM32L-DISCOVERY. Figure 2. Hardware block diagram Figure 3 Figure 4 allow to locate these features on the board.
Hardware and layout UM1079 Figure 3. Top layout 1. Pin 1 of CN1, CN2, P1 and P2 connectors are identified by a square. 10/38 DocID018789 Rev 4 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Downloaded from Downloaded from Downloaded from Downloaded from Downloaded from...
UM1079 Hardware and layout Figure 4. Bottom layout 1. Pin 1 of CN1, CN2, P1 and P2 connectors are identified by a square. STM32L152RCT6 microcontroller The STM32L152RCT6 features 256 Kbytes of Flash memory, 32 Kbytes of RAM and 8 Kbytes data of EEPROM. This microcontroller embeds RTC, LCD, timers, USART, I2C, SPI, ADC, DAC, and comparators.
• Analog functional down to 1.8 V, and programming down to 1.65 V • Full functionality over the complete V range For more information, refer to STM32L152RCT6 datasheet available on ST website. 12/38 DocID018789 Rev 4 Arrow.com. Arrow.com. Arrow.com.
UM1079 Hardware and layout Figure 6. STM32L152RCT6 block diagram DocID018789 Rev 4 13/38 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Downloaded from Downloaded from Downloaded from Downloaded from Downloaded from Downloaded from Downloaded from Downloaded from Downloaded from Downloaded from...
Program/debug an MCU in an external application board using a cable connected to SWD connector CN2 The embedded ST-LINK/V2 supports only SWD for STM32 devices. For information about debugging and programming features, refer to the user manual ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32 (UM1075).
Figure 8. 32L152CDISCOVERY connections 4.2.2 Using the ST-LINK/V2 to program/debug an external application The ST-LINK/V2 allows also to program an STM32 device on an external application. Figure 9 shows how to remove the 2 jumpers from CN3 and to connect the external...
Hardware and layout UM1079 Figure 9. ST-Link connections Power supply and power selection The power supply is provided either by the host computer through the USB cable, or by an external 5 V or 3.3 V power supply. The D1 and D2 protection diodes allow to use the EXT_5V and EXT_3V pins independently...
LEDs • LD1 COM: LD1 default status is red. LD1 turns to green to indicate that communications are in progress between the computer and the ST-LINK/V2. • LD2 PWR: red LED indicates that the board is powered. • User LD3: user green LED connected to the I/O PB7 of the STM32L152RCT6.
• For more detail concerning touch sensing application design and layout, refer to Guidelines for designing touch sensing applications with surface sensors (AN4312). • STM32 touch sensing library available from www.st.com/mcu Built-in I measurement circuit The 32L152CDISCOVERY built-in I measurement circuit allows to measure the consumption of the STM32L152RCT6 and to display the value on the LCD glass while the MCU is in Run or Low-power modes.
UM1079 Hardware and layout Figure 10. I measurement circuit 4.7.1 High I range mode In high I range mode, the I current is measured using the operational amplifier MAX9938FEUK+ (U5) connected to the 2 Ω shunt resistor (R21). In this case IDD_CNT_EN remains high during the measurement.
Hardware and layout UM1079 The Q13 output of the counter allows connecting the 1 KW resistor when the current I becomes very low. Figure 11 shows how the counter and the FET transistor 1 of U20 ensure that, 150 ms after IDD_CNT_EN falling edge, the shunt resistor R22 is connected between VDD_MCU and the power supply to reduce the measurement range to 60 μA for the full scale.
UM1079 Hardware and layout Solder bridges Table 6. Solder bridges Bridge State Description PH0, PH1 are connected to P1 (X3, C21, C22, R30 must not be fitted). SB18,20 X3, C21, C22 and R30 provide a clock as shown in Section 7: (X3 crystal) Electrical schematics.
Page 22
Hardware and layout UM1079 Table 6. Solder bridges (continued) Bridge State Description The BOOT0 signal of the STM32L152RCT6 is held low through a 510 Ω pull-down resistor. SB3 (BOOT0) The BOOT0 signal of the STM32L152RCT6 is held high through a 10 KΩ pull-up resistor. The BOOT1 signal of the STM32L152RCT6 is held high through a 10 KΩ...
UM1079 Hardware and layout LCD (24 segments, 4 commons) This LCD allows the STM32L152RCT6 to display any information on six 14-segment digits and 4 bars, using all COMs. (See the LCD segment mapping in Figure 17 and pin connections in Table Note: This LCD also supports six 8-segment digits by only using COM0 and COM1.
UM1079 Extension connectors Extension connectors The male headers P1 and P2 can connect the 32L152CDISCOVERY to a standard prototyping/wrapping board. The STM32L152RCT6 GPIOs are available on these connectors. P1 and P2 can also be probed by an oscilloscope, a logical analyzer or a voltmeter.
Updated STM32L-DISCOVERY url. Modified Section 2.2: System requirements, Section 2.5: Order codes, Section 4.1: STM32L152RBT6 or STM32L152RCT6 microcontroller, Section 4.2.1: Using the ST-LINK/V2 to 19-Apr-2013 program/debug the STM32L on board, and Section 4.2.2: Using the ST-LINK/V2 to program/debug an external STM32L application...
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 acknowledgement.
Need help?
Do you have a question about the STM32L152RCT6 Discovery kit and is the answer not in the manual?
Questions and answers