CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

sleep mode

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

sleep mode
PostPosted: Fri Jun 24, 2005 6:55 am     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Jun 24, 2005 2:00 pm     Reply with quote

Quote:

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?

The following threads discuss how to reduce current usage in Sleep mode:
http://www.ccsinfo.com/forum/viewtopic.php?t=22320
http://www.ccsinfo.com/forum/viewtopic.php?t=17199
http://www.ccsinfo.com/forum/viewtopic.php?t=22402
http://www.ccsinfo.com/forum/viewtopic.php?t=19006&start=0
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Mon Jun 27, 2005 3:00 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Jun 27, 2005 3:46 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Jun 27, 2005 4:22 am     Reply with quote

the guilty one is found: MAX223 Mad

If I disable the uart: setup_uart(FALSE); -which is connected to the MAX, I drain only 90uA..
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group