2018-02-03 02:40 PM
Hello there,
According to the datasheet, the GPIO ports circuit diagram looks like this in STM323L4x2:
From this diagram I understand that at powerdown (VCC = VSS = 0 V) the I/O pin state is high impedance. But is that 100% correct? I want to make sure before I make a design move that would save me some components. But for this I need to know either there are no internal pull-downs on a pin when the MCU is powered down.
I would appreciate all help.
#gpio #io #stm32l42018-02-03 10:39 PM
My 2 cents: When the supply voltage is equal to its ground, you typically get in most electronic programmable components the ESD protection back to back diods or equivalent. If you want to confirm this, take any board, short VDD to GND and run a diod check with a multimeter.
For I2C dedicated pins or oscillator pins, the protection may be different behaviour which you can too check easily through spec and confirm with diod check (which is also sometime used to test soldering pin is ok).
2018-02-04 12:12 AM
Hi Lukasz,
State of GPIOs for STM32L4 MCUs:
Exceptions could be special functions pins: NRST pin , BOOT0 pin , Debug (JTAG, SWD) pins, oscillator pins. For example at least one of JTAG lines (PA15, which acts as JTDI) has a pull-up in reset state in order to activate debug session under reset.
Regards
Szymon2018-02-04 02:02 AM
Hello Szymon,
Thank you for answer. I understand reset state is equal to powered down state.
2018-02-04 02:21 AM
You're welcome. Yes, I confirm:
reset state = power down state.
Regards
Szymon
2018-02-05 07:39 AM
Szymon,
reset state = power down state
Lukasz asked for powered down state (VCC = VSS = 0 V).
In that case, KIC's answer from above applies.
JW
2018-02-05 10:12 AM
Do you guys mean this?
2018-02-05 10:42 AM
Yes.
The 5V-tolerant pins don't have the upper diode connected directly to VDD(IO) - there is some undisclosed protection circuitry though. Note the requirement for maximum Input voltage on FT_xxx pins in DS - it's something like 'the lowest of supply voltages plus some particular value (e.g. 4.0V for 'L476)'. That hints that the protection may be equivalent to a 4.0V Zener diode (in series with a reverse-polarized ideal diode).
Also note, that unless you provide external hard short (which would be very unusual), there's no guarantee for VDD=VSS just because you don't supply current explicitly through the VDD pins. Once you start to push current through the protection circuitry/diodes to VDD, that voltage may quite well rise up to the point where the mcu starts to work. As usually there's not enough current to support full-scale run of the mcu, depending on particular circumstances it may start some oscillations of sort.
JW
2018-02-05 10:48 AM
Thank you for answer,
Yes in fact I am not ground the VCC pin. I am only closing the P Fet providing positive voltage value. By saying that VCC = VSS, i meant with pulldowns.