background image

UM
107

9

Ele
c

tric

al sch

emat

ics

DocID018

789 Re

v 4

33

/38

Figure 16. MCU

1

1

2

2

3

3

4

4

D

D

C

C

B

B

A

A

STMicroelectronics

Title:

Number:

Rev:

Sheet

of

C.2(PCB.SCH)

Date:

1/16/2017

C22
20pF

C21
20pF

R30

220

4

1

3

2

X2
MC306-G-06Q-32.768 (manufacturer JFVNY)

C16
6.8pF

C17
6.8pF

MB963

3

6

STM32L152C-DISCO - MCU

PB5
PB6
PB7

PA4
PA5
PA6
PA7

R27
10K

VDD

PA11
PA12

PA9
PA10

PC10

PC11

PB12
PB13
PB14
PB15

PB10
PB11

PC12

PB8

PC5

PA0

PB9

PC13

PC6

PC7

PC8

PC9

R28
0

PA1

PC1

PC2

PC3

PD2

PB1
PB2

PA15

PB3

PB0

PC4

PA3

PA13
PA14

PB4

PC0

PA2

PA8

BOOT0

PC14

PC15

PH0-OSC_IN
PH1-OSC_OUT

PA13
PA14
PA15

PA12

PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
PA8
PA9
PA10
PA11

NRST

PB12

PB0
PB1
PB2
PB3
PB4
PB5
PB6
PB7
PB8
PB9
PB10
PB11

PB13
PB14
PB15

R26

510

PC3

PC15
PC14

PC13
PC12
PC11
PC10
PC9
PC8
PC7
PC6
PC5
PC4

PC2
PC1
PC0

PD2

BOOT0

PH1

PH0

LD3

Green

PB7

R39

330

LD4

Blue

PB6

R40

660

Must be close to the Crystal

Must be close to the Crystal

R32
10K

VDD

PB2

BOOT1

BOOT0

SB19

SB3

SB20

SB18

SB15

SB16

C18

100nF

C23

100nF

C20

100nF

C25

100nF

C19

1uF

R31
510

R29

0

NRST

C24
100nF

MCO

MCO

SB17

1

2

X3
8MHz

Not Fitted

L1

fc

m

16

08-

0603

C26
1uF

VDD_MCU

PH0-OSC_IN

5

PH1-OSC_OUT

6

NRST

7

PA0/WKUP1/USART2_CTS/ADC_IN0/TIM2_CH1_ETR/COMP1_INP

14

PA1/USART2_RTS/ADC_IN1/TIM2_CH2/LCD_SEG0/COMP1_INP

15

PA2/USART2_TX/ADC_IN2/TIM2_CH3/TIM9_CH1/LCD_SEG1/COMP1_INP

16

PA3/USART2_RX/ADC_IN3/TIM2_CH4/TIM9_CH2/LCD_SEG2/COMP1_INP

17

PA4/SPI1_NSS/USART2_CK/ADC_IN4/DAC_OUT1/COMP1_INP

20

PA5/SPI1_SCK/ADC_IN5/DAC_OUT2/TIM2_CH1_ETR/COMP1_INP

21

PA6/SPI1_MISO/ADC_IN6/TIM3_CH1/TIM1_BKIN/LCD_SEG3/TIM10_CH1/COMP1_INP

22

PA7/SPI1_MOSI/ADC_IN7/TIM3_CH2/TIM1_CH1N/LCD_SEG4/TIM11_CH1/COMP1_INP

23

PB0/ADC_IN8/TIM3_CH3/LCD_SEG5/COMP1_INP/VREF_OUT

26

PB1/ADC_IN9/TIM3_CH4/LCD_SEG6/COMP1_INP/VREF_OUT

27

PB2/BOOT1

28

PB10/I2C2_SCL/USART3_TX/TIM2_CH3/LCD_SEG10

29

PB11/I2C2_SDA/USART3_RX/TIM2_CH4/LCD_SEG11

30

PB12/SPI2_NSS/I2C2_SMBA/USART3_CK/LCD_SEG12/ADC_IN18/COMP1_INP/TIM10_CH1

33

PB13/SPI2_SCK/USART3_CTS/LCD_SEG13/ADC_IN19/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

PA9/USART1_TX/LCD_COM1

42

PA10/USART1_RX/LCD_COM2

43

PA11/USART1_CTS/USBDM/SPI1_MISO

44

PA12/USART1_RTS/USBDP/SPI1_MOSI

45

PA13/SWDIO

46

PA14/SWCLK

49

PA15/TIM2_CH1_ETR/PA15/SPI1_NSS/LCD_SEG17

50

PB3/TIM2_CH2/PB3/TRACESWOSPI1_SCK/COMP2_INM/LCD_SEG7

55

PB4/TIM3_CH1/PB4/SPI1_MISO/COMP2_INP/LCD_SEG8

56

PB5/I2C1_SMBAl/TIM3_CH2/SPI1_MOSI/COMP2_INP/LCD_SEG9

57

PB6/I2C1_SCL/TIM4_CH1/USART1_TX

58

PB7/I2C1_SDA/TIM4_CH2/USART1_RX/PVD_IN

59

BOOT0

60

PB8/TIM4_CH3/I2C1_SCL/LCD_SEG16/TIM10_CH1

61

PB9/TIM4_CH4/I2C1_SDA/LCD_COM3/TIM11_CH1

62

PC13

2

PC14-OSC32_IN

3

PC15-OSC32_OUT

4

PC0

8

PC1

9

PC2

10

PC3

11

PC4/ADC_IN14/LCD_SEG22/COMP1_INP

24

PC5/ADC_IN15/LCD_SEG23/COMP1_INP

25

PC6/TIM3_CH1/LCD_SEG24

37

PC7/TIM3_CH2/LCD_SEG25

38

PC8/TIM3_CH3/LCD_SEG26

39

PC9/TIM3_CH4/LCD_SEG27

40

PC10/USART3_TX/LCD_SEG28/LCD_SEG40/LCD_COM4

51

PC11/USART3_RX/LCD_SEG29/LCD_SEG41/LCD_COM5

52

PC12/USART3_CK/LCD_SEG30/LCD_SEG42/LCD_COM6

53

PD2/TIM3_ETR/LCD_SEG31/LCD_SEG43/LCD_COM7

54

U8A

STM32L152RCT6

VSSA

12

VDDA

13

VSS_4

18

VSS_1

31

VSS_2

47

VSS_3

63

VLCD

1

VDD_4

19

VDD_1

32

VDD_2

48

VDD_3

64

U8B

STM32L152RCT6

Содержание UM1079

Страница 1: ...ries 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 STM32L15...

Страница 2: ...K V2 14 4 2 1 Using the ST 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 L...

Страница 3: ...DocID018789 Rev 4 3 38 UM1079 Contents 3 8 Revision history 37...

Страница 4: ...6 Table 2 ON OFF conventions 6 Table 3 Functions executed 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 Ta...

Страница 5: ...diagram 13 Figure 7 Typical configuration 14 Figure 8 32L152CDISCOVERY connections 15 Figure 9 ST Link connections 16 Figure 10 IDD measurement circuit 19 Figure 11 Low IDD range measurement timing d...

Страница 6: ...lication Check jumper positions on the board JP1 and CN3 must be ON discovery selected see Figure 3 Connect the 32L152CDISCOVERY to a computer with an USB cable to power the board The red LEDs LD2 PWR...

Страница 7: ...nctions executed when clicking B1 button Func tion LED LD3 4 Bar status Value displayed on LCD Main function 1 LD3 and LD4 blink Measured STM32L152RCT6 VDD voltage Voltage measurement 2 LD3 ON Linear...

Страница 8: ...ta 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 Board power supply through...

Страница 9: ...52RCT6 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...

Страница 10: ...re identified by a square 06 9 20 1 6 FRQQHFWRU VHJPHQWV 3 PHDVXUHPHQW 67 1 9 9 SRZHU VXSSO LQSXW RXWSXW 9 SRZHU VXSSO LQSXW RXWSXW 6 PHDVXUHPHQW 670 5 7 XVHU EXWWRQ UHVHW EXWWRQ JUHHQ EOXH 3 5 PRGXOH...

Страница 11: ...r 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 06 9 6 6 6 6 UHVHU...

Страница 12: ...ock system multiple internal and external clock sources switch and adjust frequency and clock sources on the fly depending on application needs Direct memory access on board up to 12 DMA channels auto...

Страница 13: ...75 75 75 75 6 VWHP DS VHQV 6XSSO PRQLWRULQJ 9 9 9 9 6XSSO PRQLWRULQJ DS VHQVLQJ 3 2 3257 3 2 3257 3 PD 0 3 PD 0 3 ORFN 0JPW 9 13 9 10 9287 9 13 9 10 9287 57 B287 3 3 7 6 706 6 7 7 2 DV 352 5 0 7 227 9...

Страница 14: ...user manual ST LINK V2 in circuit debugger programmer for STM8 and STM32 UM1075 Figure 7 Typical configuration 4 2 1 Using the ST LINK V2 to program debug the microcontroller on board Figure 8 shows...

Страница 15: ...ows how to remove the 2 jumpers from CN3 and to connect the external application to the CN2 debug connector according to instructions in Table 5 Note SB100 must be OFF if you the CN2 pin 5 is used in...

Страница 16: ...2 In this case the EXT_5V and EXT_3V pins deliver a 5 V or 3 V power supply and power consumption must be lower than 100 mA EXT_5V and EXT_3V can also be used as input power supplies when the USB conn...

Страница 17: ...the board by setting a jumper between VDD and 3V Plug the CR2032 battery into CR1 holder The demonstration is now ready to run Warning Wrong solder bridge configuration can damage board components 4...

Страница 18: ...w st com mcu 4 7 Built in IDD measurement circuit The 32L152CDISCOVERY built in IDD measurement circuit allows to measure the consumption of the STM32L152RCT6 and to display the value on the LCD glass...

Страница 19: ...e consumption current when the STM32L152RCT6 is in low IDD range mode is as follows 1 Configure ADC to measure voltage on the IDD_Measurement pin 2 Configure PA0 to serve as wakeup pin 3 Enter low IDD...

Страница 20: ...ifier input U5 pin 4 is not negligible compared to IDD current typical IBIAS is 240 nA To obtain a reliable IDD measurement it is mandatory to subtract the bias current from the low IDD current value...

Страница 21: ...2 C16 C17 R28 SB5 B2 RESET ON B2 Pushbutton is connected to the NRST pin of the STM32L152 MCU OFF B2 Pushbutton is not connected the NRST pin of the STM32L152 MCU SB4 B1 USER ON B1 Pushbutton is conne...

Страница 22: ...STM32L152RCT6 is held high through a 10 K pull up resistor ON The BOOT1 signal of the STM32L152RCT6 is held low through a 510 pull down resistor SB17 MCO 2 OFF STM32L152RCT6 MCO clock signal is not us...

Страница 23: ...o be used as I O ports In this case the 2 LCD pins must not be plugged into the LCD socket To proceed with this configuration remove the LCD carefully slightly open the COM2 and COM3 pins pin 13 and p...

Страница 24: ...4M LCDSEG7 PB12 9 5N 5P 5D 5E LCDSEG8 PB13 10 BAR2 BAR3 5C 5M LCDSEG9 PB14 11 6N 6P 6D 6E LCDSEG10 PB15 12 BAR0 BAR1 6C 6M LCDSEG11 PB9 13 COM3 LCDCOM3 PA10 14 COM2 LCDCOM2 PA9 15 COM1 LCDCOM1 PA8 16...

Страница 25: ...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 EXT_ 3V 1 EXT_ 5V 1 BOOT0 60 6 NRST 7...

Страница 26: ...COM1 42 COM 1 22 PA10 USART1_RX LCD_ COM2 43 COM 2 21 PA11 USART1_CTS US BDM SPI1_MISO 44 X 20 PA12 USART1_RTS US BDP SPI1_MOSI 45 X 19 JTMS SWDIO PA13 46 SWD IO 18 JTCK SWCLK PA14 49 SW CLK 17 JTDI...

Страница 27: ...SCL TIM4_C H1 USART1_TX LCD_ SEG8 58 Blue 8 PB7 I2C1_SDA TIM4_C H2 USART1_RX PVD_ IN 59 Gre en 7 PB8 TIM4_CH3 I2C1_S CL LCD_SEG16 TIM1 0_CH1 61 SEG 13 4 PB9 TIM4_CH4 I2C1_S DA LCD_COM3 TIM11 _CH1 62 C...

Страница 28: ...N21 COMP1_INP TIM1 1_CH1 RTC_50_60Hz 36 SEG 11 27 PC0 ADC_IN10 LCD_S EG18 COMP1_INP 8 SEG 14 11 PC1 ADC_IN11 LCD_S EG19 COMP1_INP 9 SEG 15 12 PC2 ADC_IN12 LCD_S EG20 COMP1_INP 10 SEG 16 13 PC3 ADC_IN1...

Страница 29: ...SEG 23 14 PC12 USART3_CK LCD_ SEG30 LCD_SEG4 2 LCD_COM6 53 X 13 PC13 RTC_AF1 WKUP2 2 CNT_ EN 4 PC14 OSC32_IN 3 OSC 32_I N 5 PC15 OSC32_OUT 4 OSC 32_O UT 6 PD2 TIM3_ETR LCD_S EG31 LCD_SEG43 LCD_ COM7 5...

Страница 30: ...Mechanical drawing UM1079 30 38 DocID018789 Rev 4 6 Mechanical drawing Figure 13 Mechanical drawing 06 9 XXX TU DPN TUN M D EJDPWFSZ...

Страница 31: ...PA9 PA10 PA11 PB12 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB13 PB14 PB15 PC3 PC15 PC14 PC13 PC12 PC11 PC10 PC9 PC8 PC7 PC6 PC5 PC4 PC2 PC1 PC0 PD2 BOOT0 PH1 PH0 NRST MCO U_STM32L STM32L Sc...

Страница 32: ...N 5 PB1 19 OSCOUT 6 VSS_2 35 NRST 7 PB2 BOOT1 20 VSSA 8 VDD_2 36 VDDA 9 PB10 21 PA0 10 JTCK SWCLK 37 PA1 11 PB11 22 PA2 12 PA15 JTDI 38 PA3 13 VSS_1 23 PA4 14 PB3 JTDO 39 PA5 15 VDD_1 24 PA6 16 PB4 JN...

Страница 33: ...D_SEG3 TIM10_CH1 COMP1_INP 22 PA7 SPI1_MOSI ADC_IN7 TIM3_CH2 TIM1_CH1N LCD_SEG4 TIM11_CH1 COMP1_INP 23 PB0 ADC_IN8 TIM3_CH3 LCD_SEG5 COMP1_INP VREF_OUT 26 PB1 ADC_IN9 TIM3_CH4 LCD_SEG6 COMP1_INP VREF_...

Страница 34: ...32L152C DISCO LCD LCD SEG0 1 SEG1 2 SEG2 3 SEG3 4 SEG4 5 SEG5 6 SEG6 7 SEG7 8 SEG8 9 SEG9 10 SEG10 11 SEG11 12 COM3 13 COM2 14 COM1 15 COM0 16 SEG12 17 SEG13 18 SEG14 19 SEG15 20 SEG16 21 SEG17 22 SEG...

Страница 35: ...X1G04CTR I O 1 O I 2 GND 3 C 4 VCC 5 U6 74H1G66STR VDD R21 2 1 R22 1K 1 VDD Q12 1 Q13 2 Q14 3 Q6 4 Q5 5 Q7 6 Q4 7 GND 8 CO 9 CO 10 CI 11 CLR 12 Q9 13 Q8 14 Q10 15 VCC 16 U3 M74HC4060TTR VDD VDD R25 10...

Страница 36: ...63 6 6 STM32L152C DISCO Linear Sensor and Buttons PC4 PA6 PB0 SLD_1 SLD_2 SLD_3 1 1 2 2 3 3 S1 Slider 3 pos PA7 PC5 PB1 C30 100nF NRST NRST USER WAKE UP Button RESET Button R38 10K VDD PA0 1 2 3 4 B1...

Страница 37: ...ents Section 2 5 Order codes Section 4 1 STM32L152RBT6 or STM32L152RCT6 microcontroller Section 4 2 1 Using the ST LINK V2 to program debug the STM32L on board and Section 4 2 2 Using the ST LINK V2 t...

Страница 38: ...sers are solely responsible for the choice selection and use of ST products and ST assumes no liability for application assistance or the design of Purchasers products No license express or implied to...

Отзывы: