I have an STM32L151 mcu(application processor) and on its PB5 pin I have a peripheral (SARA-N3) connected. The requirements for the peripheral are that the pin is configured as an open drain output and is only used to pull it down for 1 second. The peripheral has an internal pull up to 1.1V and a max allowed voltage at 1.3V, however the mcu pin levels are at 3.6V. The mcu side is configured with no pull-up/pull-down resistor.
The problem I am having is that when the mcu goes in stop mode (low power), there is a power supply increase due to that connection pin, i.e. PB5.
- 1st attempt was to set that pin to output 1 and open drain. In theory, this should mean the pin should no be driven and keep the voltage of the peripheral(as observed), but observed the additional current.
- 2nd attempt was to enable the pull up on the mcu side ( pin is still output). This had the effect to drive the pin to 2.7V which is not allowed by the peripheral pin and still there additional current was observed.
- 3rd attempt was to set the pin to analogic or input mode but the effect was the same as attempt 1
- 4th attempt was to disable the Schmidt trigger of the mcu pin (pin is was output). This improved a little bit but still not what I expect
- 5th attempt tried a different pin, i.e. PA11. The pin is configured as open drain output with no pull. The power supply current is still there. It only stops when I disconnect the pin and connect it to the Vdd of the MCU
My guess is that the voltage level of the pin compared to the voltage levels of the mcu pins is probable considered digital low and hence causing some FET to let current through
Is there any suggestion on how to configure the STM32L1 GPIO pin operating at 3.6V so that it does not leak current when the pin connected to has a voltage value of 1.1V?