background image

Ele
c

tric

al sch

emat

ics

UM10

79

3

2/3

8

D

ocID018

789 Re

v 4

Figure 15. ST-LINK/V2 (SWD only)

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

C8
20pF

C9
20pF

1

2

X1

8MHz

3V

USB_DM

USB_DP

STM_RST

T_

JT

C

K

T_JTCK

T_

JT

D

O

T_

JT

D

I

T_JTMS

STM_JTMS

ST

M

_

JT

C

K

OSC_IN
OSC_OUT

T_

N

R

S

T

R16

4K7

R15

4K7

AIN_1

C11

100nF

R17
100K

R6

100K

3V

3V

3V

SW

IM

_

IN

SW

IM

_

IN

SW

IM

_

IN

SW

IM

SW

IM

SW

IM

_

R

ST

_

IN

SW

IM

_

R

ST

MB963

2

6

STM32L152C-DISCO - ST-LINK/V2 (SWD only)

USB_DM
USB_DP

3V

R8

1K5

R9

10

USB

R7

100K

VCC

1

D-

2

D+

3

ID

4

GND

5

SHELL

0

CN1

5075BMR-05-SM

U5V

COM

5V

U5V

EXT_5V

D1

BAT60JFILM

3V

EXT_3V

D2

BAT60JFILM

R12
1K

PWR

LD2
RED

5V

JP3

Wired on Solder Side

JP4

C7
100nF

C12
100nF

C10
100nF

C6
100nF

3V

Jumpers  ON    -->  DISCOVERY  Selected
Jumpers  OFF  -->  ST-LINK  Selected

VBAT

1

PA

7

17

PC13

2

PA12

33

PC14

3

PB0

18

PC15

4

JTMS/SWDIO

34

OSCIN

5

PB1

19

OSCOUT

6

VSS_2

35

NRST

7

P

B

2/

B

O

O

T

1

20

VSSA

8

VDD_2

36

VDDA

9

PB1

0

21

PA0

10

JT

C

K

/S

W

C

L

K

37

PA1

11

PB1

1

22

PA2

12

P

A

15/

JTD

I

38

PA

3

13

VS

S

_1

23

PA

4

14

PB3

/J

T

D

O

39

PA

5

15

VDD

_1

24

PA

6

16

PB4

/J

N

T

R

ST

40

PB12

25

PB5

41

PB13

26

PB6

42

PB14

27

PB7

43

PB15

28

BO

O

T

0

44

PA8

29

PB8

45

PA9

30

PB9

46

PA10

31

VS

S

_3

47

PA11

32

VD

D_

3

48

U2
STM32F103C8T6

Board Ident: PC13=0

T_JTCK

T_JTMS

SWD

3V

1

2

3

4

CN3

SB7

SB6

SB9

SB8

SB11

SB10

SB13

SB12

STM_JTMS

STM_JTCK

SWCLK

SWDIO

SWD

RES

E

RVED

DE

FAULT

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

22

R4

10K

R5

10K

PA13

PA14

TCK/SWCLK

TMS/SWDIO

CR1
CR2032 Holder

VDD

SB21

SB22

3V

R11
10K

R10

10

1

2

3

JP2

Not Fitted

MCO

5

1

2

GND

3

4

BYPASS

INH

Vin

Vout

U1

LD3985M33R

C1
1

μ

F_X5R_0603

C5
10nF_X7R_0603

C3
1

μ

F_X5R_0603

C2

100nF

C4
100nF

MCO

Not Fitted

T_J

R

S

T

3V
VDD
VBAT

R100
100

1
2
3
4
5
6

CN2

Header 6

R101

100

AIN_1

T_NRST

T_SWO

NRST
PB3

R102

22

R103

22

D5

Z5V1

D6

Z5V1

SB100

SB101

T_NRST

T_SWO

Not Fitted

SB102

D7

BAT60JFILM

Summary of Contents for UM1079

Page 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...

Page 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...

Page 3: ...DocID018789 Rev 4 3 38 UM1079 Contents 3 8 Revision history 37...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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_...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Reviews: