AnsweredAssumed Answered

Can 5 V tolerant pin be turned off?

Question asked by Nobuhide Iinuma on May 30, 2017
Latest reply on Jun 2, 2017 by Nobuhide Iinuma

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 1
In 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.

///////////////////////////////////////////
#include "mbed.h"

DigitalInOut Common_5(PA_8);

int main() {

while(1) {

Common_5.mode(OpenDrain);
wait_ms(2);
}
}
///////////////////////////////////////////

 

Thanks

Outcomes