Replies: 4 comments 1 reply
-
@LaZsolt I was wondering if you might have any insight on this you could share with me. |
Beta Was this translation helpful? Give feedback.
-
Hello John! Please excuse me, I will try to be brief. 1.
LGT8F328P will wake-up only when enabling interrupt. This behaviour is different from ATmega32P 2. 3. Watch this example: https://github.com/dbuezas/lgt8fx/blob/master/lgt8f/libraries/lgt_LowPower/examples/standbyExternalInterrupt/standbyExternalInterrupt.ino 4. |
Beta Was this translation helpful? Give feedback.
-
I'm glad you suggested this example: because it exactly shows the erratic behavior I'm talking about. I ran this multiple times, sometimes by resetting the MCU and sometimes by reprogramming. Every time I ran this I got different incorrect results. Here's one example output I get running the above linked code. I made no change to the code. D2 is connected to a button that when pressed connects to GND:
Thanks! John |
Beta Was this translation helpful? Give feedback.
-
since the example code doesn't work correctly I will submit as an issue then. |
Beta Was this translation helpful? Give feedback.
-
I have great luck using the low power library when going into DPS2 but have been having trouble getting consistent and understandable behavior with other low power modes. Below is an example with comments showing how DPS1 is not consistently giving me the results I expect. Likely I'm misunderstanding the documentation in the low power library and the uC datasheet but haven't been making much progress on my own:
Beta Was this translation helpful? Give feedback.
All reactions