dbuezas / lgt8fx

Board Package for Logic Green LGT8F328P LGT8F328D and LGT8F88D
369 stars 88 forks source link

voltage and current on pins when MCU in LowPower.deepSleep2 #289

Closed whyameye closed 1 year ago

whyameye commented 1 year ago

when MCU is in sleep from a call to LowPower.deepSleep2 all GPIO pins are at Vcc with low current.

This can be verified with the [powerDown-Dps2](https://github.com/dbuezas/lgt8fx/tree/master/lgt8f/libraries/lgt_LowPower/examples/powerDown-Dps2) example.

To verify, change LowPower.deepSleep2(SLEEP_1S); to LowPower.deepSleep2(SLEEP_FOREVER); in the example code and measure the voltage from a pin to GND.

I connected an LED from D8 to GND and it lit dimly.

Tested with a LQFP32 Mini EVB board

I checked the datasheet and it seems this should not be the case. Are we definitely in DSP2 with this call?

whyameye commented 1 year ago

oops I see this issue is address in the comments at the beginning of the sample code. Sorry for the noise.