Continuing with the topic of the SLEEP, WDT, and CLRWDT commands, I'm using a PIC16F1939. It accesses the SLEEP command correctly, although sometimes it doesn't. Previously, I used a PIC16F1847, and SLEEP worked correctly there.
The problem is that the current draw suddenly changes from 0.020 mA to 25 mA after 2 or 3 SLEEP cycles. It starts at 0.020 mA and increases to 25 mA continuously.
This happens repeatedly, I've disconnected transistor outputs, grounded all unused pins, turned off the LCD, and used commands to disable PIC pins, but I can't get the current draw to remain constant while in SLEEP mode.
Initially, I even managed to get the selected outputs to activate correctly when the PIC woke up, and it would return to power-saving mode, but now, with all the changes and tests, it seems like I'm going backward instead of forward.
Could someone help me by taking a look at the flowchart?
I would appreciate any help.
Thanks
Enrique