background image

January 2017

DocID018789 Rev 4

1/38

1

UM1079

User manual

Discovery kits with STM32L152RCT6 

 and STM32L152RBT6 MCUs

Introduction

The STM32L152RCT6 Discovery kit (32L152CDISCOVERY) and the STM32L152RBT6 
(STM32L-DISCOVERY) allow to develop applications based on the STM32L1 Series and to 
benefit from the ultra-low-power features of these microcontollers.

The 32L152CDISCOVERY is based on an STM32L152RCT6 (256 Kbytes of Flash 
memory). 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. Picture is not contractual.

www.st.com

Downloaded from

Arrow.com.

Summary of Contents for 32L152CDISCOVERY

Page 1: ...enefit from the ultra low power features of these microcontollers The 32L152CDISCOVERY is based on an STM32L152RCT6 256 Kbytes of Flash memory The STM32L DISCOVERY is based on an STM32L152RBT6 128 Kby...

Page 2: ...LINK V2 to program debug the microcontroller on board 14 4 2 2 Using the ST LINK V2 to program debug an external application 15 4 3 Power supply and power selection 16 4 4 LEDs 17 4 5 Pushbuttons 17...

Page 3: ...DocID018789 Rev 4 3 38 UM1079 Contents 3 8 Revision history 37 Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com...

Page 4: ...ecuted when clicking B1 button 7 Table 4 Jumper states 14 Table 5 Debug connector CN2 SWD 15 Table 6 Solder bridges 21 Table 7 LCD connections 24 Table 8 MCU pin description versus board function 25 T...

Page 5: ...COVERY connections 15 Figure 9 ST Link connections 16 Figure 10 IDD measurement circuit 19 Figure 11 Low IDD range measurement timing diagram 20 Figure 12 LCD segment mapping 23 Figure 13 Mechanical d...

Page 6: ...selected see Figure 3 Connect the 32L152CDISCOVERY to a computer with an USB cable to power the board The red LEDs LD2 PWR and LD1 COM are lit up The Function 1 is executed Click on user button B1 to...

Page 7: ...LCD Main function 1 LD3 and LD4 blink Measured STM32L152RCT6 VDD voltage Voltage measurement 2 LD3 ON Linear touch sensor position from 0 to 100 Touch sensing 3 LD4 ON Status of the four touchkeys 4 L...

Page 8: ...andalone ST LINK V2 with SWD connector for programming and debugging Board power supply through USB bus or from an external 3 3 or 5 V supply voltage External application power supply 3 V and 5 V IDD...

Page 9: ...rs These connections are the same for the STM32L DISCOVERY Figure 2 Hardware block diagram Figure 3 and Figure 4 allow to locate these features on the board 06 9 OXH 86 5 2 0LQL 86 UHHQ 567 5 6 7 2 2...

Page 10: ...W 6 PHDVXUHPHQW 670 5 7 XVHU EXWWRQ UHVHW EXWWRQ JUHHQ EOXH 3 5 PRGXOH 1 67 1 6 29 5 VHOHFWRU LQHDU WRXFK VHQVRU WRXFKNH V 6 86 5 6 5 6 7 6 227 3 9 9 7 VHOHFWRU RSWLRQDO QRW PRXQWHG Downloaded from Ar...

Page 11: ...USART I2C SPI ADC DAC and comparators 06 9 6 6 6 6 UHVHUYHG 6 6 6 6 GHIDXOW 3 FRQQHFWRU 3 FRQQHFWRU 3 5 EDWWHU KROGHU RSWLRQDO 6 6 FU VWDO 6 PHDVXUHPHQW 6 6 FU VWDO 6 9 SRZHUHG IURP 9 6 DWWHU HQDEOH...

Page 12: ...y access on board up to 12 DMA channels autonomy for peripherals independent from the core can switch off Flash memory and CPU large current consumption contributors while keeping peripherals active U...

Page 13: ...706 6 7 7 2 DV 352 5 0 7 227 9 9 25 9UHI 0 38 3 0 FKDQQHOV 3 0 FKDQQHOV 3 3 3 9 9 9 WR 9 9VV 26 B 1 26 B287 7 03 5 FKDQQHOV FKDQQHOV FKDQQHOV FKDQQHOV 5 7 76 576 6PDUW DUG DV 5 7 76 576 6PDUW DUG DV...

Page 14: ...rd Figure 8 shows how to plug the two jumpers on CN3 to program the STM32L152RCT6 on the board The usage of CN2 is forbidden as it could disturb communication with the microcontroller Table 4 Jumper s...

Page 15: ...d in the external application 1 MXPSHUV 21 3LQ RI 1 6 FRQQHFWRU 06 9 Table 5 Debug connector CN2 SWD Pin CN2 Designation 1 VDD_TARGET VDD from application 2 SWCLK SWD clock 3 GND Ground 4 SWDIO SWD da...

Page 16: ...not connected to the computer In this case the power of the board must be provided by a power supply unit or by an auxiliary equipment complying with standard EN 60950 1 2006 A11 2009 This power sour...

Page 17: ...fault 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 L...

Page 18: ...wer modes JP1 ON the STM32L152RCT6 is powered through the IDD measurement circuit default JP1 OFF the STM32L152RCT6 is directly powered The IDD measurement circuit is bypassed Note When jumper JP1 is...

Page 19: ...l low 4 IDD_WAKEUP rising edge wakes up the MCU after around 300 ms 5 Start ADC conversion as soon as possible after wakeup in order to measure the voltage corresponding to Low power mode on capacitor...

Page 20: ...during production test and stored in the MCU data EEPROM The discovery demonstration software uses this value to display the correct IDD The procedure for IBIAS measurement implemented in the demonstr...

Page 21: ...om 3 V ON VDD is powered from 3 V SB22 must be OFF OFF VDD is not powered from 3 V SB22 must be ON SB22 Battery enable OFF VDD is not powered by the CR2032 battery SB21 must be ON ON VDD is powered by...

Page 22: ...ault SBx state is shown in bold 2 SB17 and SB20 are OFF to allow the user to choose between MCO and X3 crystal for clock source Table 6 Solder bridges continued Bridge State 1 Description Downloaded f...

Page 23: ...ive method multiplexed 1 4 duty 1 3 bias Operating voltage 3 V Operating temperature 0 to 50 C Connector 28 pin DIL 2 54 mm pitch Note When the LCD is plugged all I O ports listed in Table 7 are unava...

Page 24: ...F 5G LCDSEG15 PC2 21 4J 4K 4A 4B LCDSEG16 PC3 22 4H 4Q 4F 4G LCDSEG17 PC6 23 3J 3K 3A 3B LCDSEG18 PC7 24 3H 3Q 3F 3G LCDSEG19 PC8 25 2J 2K 2A 2B LCDSEG20 PC9 26 2H 2Q 2F 2G LCDSEG21 PC10 27 1J 1K 1A 1...

Page 25: ...COMP1_INP 15 SEG 0 16 PA2 USART2_TX ADC_ IN2 TIM2_CH3 TIM9_C H1 LCD_SEG1 COMP 1_INP 16 SEG 1 17 PA3 USART2_RX ADC _IN3 TIM2_CH4 TIM9_C H2 LCD_SEG2 COMP 1_INP 17 SEG 2 18 PA4 SPI1_NSS USART 2_CK ADC_I...

Page 26: ...versus board function continued MCU pin Board function Main function Alternate functions LQF P64 pin num LCD glass Linear Touch Sensor Push butt on IDD LED SWD OSC Free I O Pow er supp ly P1 P2 Downlo...

Page 27: ...rsus board function continued MCU pin Board function Main function Alternate functions LQF P64 pin num LCD glass Linear Touch Sensor Push butt on IDD LED SWD OSC Free I O Pow er supp ly P1 P2 Download...

Page 28: ...ion continued MCU pin Board function Main function Alternate functions LQF P64 pin num LCD glass Linear Touch Sensor Push butt on IDD LED SWD OSC Free I O Pow er supp ly P1 P2 Downloaded from Arrow co...

Page 29: ...function Alternate functions LQF P64 pin num LCD glass Linear Touch Sensor Push butt on IDD LED SWD OSC Free I O Pow er supp ly P1 P2 Downloaded from Arrow com Downloaded from Arrow com Downloaded fr...

Page 30: ...Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloa...

Page 31: ...SEG25 SEG26 SEG27 SEG28 SEG29 PB8 PA15 PB15 PC2 PC1 PC0 PC11 PC10 PC9 PC8 PC3 PC7 PC6 PA8 PA9 PA10 PA1 PA2 PA3 PB3 PB4 PB5 PB10 PB11 PB9 PB12 PB13 PB14 U_LCD_GH08172 LCD_GH08172 SchDoc PB0 PB1 PC4 PC...

Page 32: ...SB11 SB10 SB13 SB12 STM_JTMS STM_JTCK SWCLK SWDIO SWD RESERVED DEFAULT D4 Z5V1 D3 Z5V1 3V T_SWDIO_IN T_SWO LED_STLINK LED_STLINK 3V R3 100 R2 100 R1 0 Red _Green 2 1 3 4 LD1 LD_BICOLOR_CMS R13 22 R14...

Page 33: ...19 COMP1_INP TIM9_CH1 34 PB14 SPI2_MISO USART3_RTS LCD_SEG14 ADC_IN20 COMP1_INP TIM9_CH2 35 PB15 SPI2_MOSI TIM1_CH3N LCD_SEG15 ADC_IN21 COMP1_INP TIM11_CH1 RTC_50_60Hz 36 PA8 USART1_CK MCO LCD_COM0 41...

Page 34: ...oaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow c...

Page 35: ...DPF20L Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded...

Page 36: ...Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloa...

Page 37: ...n 4 6 Linear touch sensor touchkeys AN2869 replaced by AN4312 Updated all schematics in Section 7 Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow co...

Page 38: ...heir respective owners Information in this document supersedes and replaces information previously supplied in any prior versions of this document 2017 STMicroelectronics All rights reserved Downloade...

Reviews: