Question
Can 5 V tolerant pin be turned off?
Posted on May 30, 2017 at 11:26
Hi,
I am using the NUCLEO - L053R8 circuit board.I question about 5 V tolerant function.
A pull-up resistor driven by 5 V is added to the port of PA_8.
In this case, when setting the open drain setting, 0.1 mA flows.However, setting to input setting is 0 mA.I want to set the current to 0 mA in the open drain setting state.question 1In the open drain setting, does the protection diode work?
Question 2
Please check if my open drain setting method is correct.It is set with mbed.
///////////////////////////////////////////
&sharpinclude ''mbed.h''DigitalInOut Common_5(PA_8);
int main() {
while(1) { Common_5.mode(OpenDrain); wait_ms(2);}}///////////////////////////////////////////Thanks
#gpio #mbed #nucleo-l053r8 #5v-tolerant