cancel
Showing results for 
Search instead for 
Did you mean: 

I use STM8L152 in my product. VLCD is connected to external pull-up 3.3V. If uart communication occur, VLCD is pulled down to low level. I short connect VLCD and PD1 and set VSEL to 1 then use PD1 to detect the falling edge. Is there any potential risk?

GLau.1
Associate

Since I short connect VLCD and PD1, when there is uart communication, there will be communication waveform like below on VLCD pin, will this affect MCU work?

0693W00000FBZzuQAH.png 

I set VSEL to 1(External source) by the code below in MCU initialization

CLK_PeripheralClockConfig(CLK_Peripheral_LCD, ENABLE);

LCD->CR2 |= 0x01;

CLK_PeripheralClockConfig(CLK_Peripheral_LCD, DISABLE);

0693W00000FBa38QAD.png 

0 REPLIES 0