background image

Ele
c

tric

al sch

emat

ics

UM10

79

3

6/3

8

D

ocID018

789 Re

v 4

Figure 19. Linear touch sensor/touchkeys

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

MB963

6

6

STM32L152C-DISCO - Linear Sensor and Buttons

PC4

PA6

PB0

SL

D

_

1

SL

D

_

2

SL

D

_

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

S

W

-P

US
H-

C

M

S

SB4

C31

100nF

R37
100K

VDD

1

2

3

4

B2

S

W

-P

US
H-

C

M

S

SB5

R33
10K

R34
10K

R35
10K

C27
47nF

SLIDER 3 Positions

PA0

PB0

PC4

PA6

PA7

PC5

PB1

Not Fitted

GRP 2

GRP 9

GRP 3

R36

330

C28
47nF

C29
47nF

Содержание 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...

Отзывы: