Hi Robin,
Neither of those links helped me, I have already seen both.
I will re-state my questions, being more specific about the first one:
1. Why does the While(1) loop cause my current to double?
2. What is the "Computer Operation Mode"?
3. How do I put the While(1) look in SRAM vs flash as noted in that same datasheet entry? Is what I have in the code SRAM?
My first question stems from the fact that I get the correct current draw when I "step" through my code with the debugger, right up until I hit the While(1) loop. When I "run" the code, the current nearly doubles as soon as it hits the While(1) loop. Can you run my code and see if you get the same thing? What is causing this? How do I get a true view of my actual current if I can't get into the While(1) loop? And, to compare to the datasheet, I believe I need to be in a while(1) loop. Please confirm this!
My second question stems from me trying to understand the specification on the datasheet. One of the VLPR current specifications is in "Compute Operation Mode" and this is not specified in the other. What does this mean?
The third question also comes from me trying to understand the specification on the datasheet. The VLPR currents are specified as sometimes being in SRAM and sometimes in flash. How do I know which one I have set-up in the code I sent you? I'm assuming SRAM, but I didn't specify either. One of them must be the default.
Thanks,
Sara