View previous topic :: View next topic |
Author |
Message |
Christophe
Joined: 10 May 2005 Posts: 323 Location: Belgium
|
sleep mode |
Posted: Fri Jun 24, 2005 6:55 am |
|
|
Hello,
I'm measuring current consumtion by my PIC16LF877A; in normal operation : 3,2 mA; in sleep: 2,7 mA, what can be wrong? should be less no?
edit: what is a good way to limit current consumtion ? settings of interfaces, inputs and outputs? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
Christophe
Joined: 10 May 2005 Posts: 323 Location: Belgium
|
|
Posted: Mon Jun 27, 2005 3:00 am |
|
|
as I go to sleep, pin_b0 stays a floating input pulled down to ground via 47K. Is that a problem?
problem solved...
you have to say: output_float ( pin_B0);
that is appearantly NOT the same as: input( pin_b0);
??? the manual says so |
|
|
Christophe
Joined: 10 May 2005 Posts: 323 Location: Belgium
|
|
Posted: Mon Jun 27, 2005 3:46 am |
|
|
IF you are in sleep, and the watchdog wakes you up; WHAT is happening? Is the watchdog resetting the PIC? or does the PIC continue executing instructions |
|
|
Christophe
Joined: 10 May 2005 Posts: 323 Location: Belgium
|
|
Posted: Mon Jun 27, 2005 4:22 am |
|
|
the guilty one is found: MAX223
If I disable the uart: setup_uart(FALSE); -which is connected to the MAX, I drain only 90uA.. |
|
|
|