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, Low Power App
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Nov 02, 2005 11:57 am     Reply with quote

Quote:

My problem is this, that keypad relies on the port_b_pullups and they
are inherently going to waste alot of power during sleep.

How ? Do you have a load on them ? i.e., is there a ground connection
to the Port B pins, or is some other device holding one or more pins
at a logic low level ? If not, there's no problem.
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Wed Nov 02, 2005 12:20 pm     Reply with quote

Uhhhhh, I guess I may be misunderstanding some things I've read previously. One post mentioned and the datasheet lists the pull-ups use 50-400uA @ 5V that translates into 33-266uA @ 3.3V.

Now, from your response it's got me thinking. If the pins are interconnected the way they are in the keypad I've implemented, there's essentially nothing to sink that current.... Is that what you're saying?

A sincere thanks for the thought provoking responses.

John
GED EE Technology
CCS Forums University
Eugeneo



Joined: 30 Aug 2005
Posts: 155
Location: Calgary, AB

View user's profile Send private message

PostPosted: Wed Nov 02, 2005 6:38 pm     Reply with quote

jecottrell wrote:
Uhhhhh, I guess I may be misunderstanding some things I've read previously. One post mentioned and the datasheet lists the pull-ups use 50-400uA @ 5V that translates into 33-266uA @ 3.3V.


Now you've got me thinking. I thought that was the current just to latch the pull-up feature per pin.

Microchip should set this feature as a "fuse", that way it wouldn't consume any power.

jecottrell wrote:

2. Put an extremely high pull-up (1M+ ?) on the columns to wake the PIC from sleep without using the internal pull-ups during sleep. This would also solve a problem I noticed when I disable the pull-ups prior to sleep. When I disable the port_b_pullups prior to sleep, the PIC wakes as the pull-ups drain....essentially creating a PIC with sleep apnia. (And not to mention the keypad can't wake the PIC.)
John


That sounds like the best solution if your worried about the 33-266 uA the pullups consume, but now when your scanning the keypad, it's going to consume more current.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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