Do you have the Watch Dog shut off?
But do not be afraid to post your configs and code. Might make the guessing game go faster...
Do you have the Watch Dog shut off?
But do not be afraid to post your configs and code. Might make the guessing game go faster...
Dave
Always wear safety glasses while programming.
If you can share your circuit schematics, that could also reveal some of the reason for high current consumption.
What do you have in OSCCON? Idle or Sleep?
Some Lessons Learnt from near historyCode:<code><font color="#000000">OSCCON.7 = 0 <font color="#000080"><i>'Device enters Sleep mode on SLEEP instruction</i></font></code>
BR,
-Gusse-
The only other device in the circuit is a real time clock; I have disconnected it during the sleep cycle with little or no change. I will try truing off the watch dog timer and setting the OSCCON as suggested.
Doing that will NOT account for 10mA of Current draw.
Pull your PIC out and measure how much current your circuit still takes without the PIC in place. If it's zero, then the answer is that you must be drawing a shed-load of current through one of your I/O's. The question is which? Pins set to INPUT should take very little current, but those set to OUTPUT may well be Sourcing or Sinking something...
Don't forget to turn OFF ADC's, Voltage References etc... they all take current (but not 10mA worth!!!).
Bookmarks