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 support@ccsinfo.com

MCLR - quick question

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



Joined: 03 Aug 2009
Posts: 1067
Location: Panama

View user's profile Send private message

MCLR - quick question
PostPosted: Sat Sep 04, 2010 9:34 am     Reply with quote

hi all,

Could anyone tell me what is the current consumption of a 16f876a if I hold MCLR low for an hour (just an example).

MCLR would be controlled by an outside source.... like the output of a voltage comparator.

Would this pose any benefit over plain old "sleep"?

Is there any possible consequences of holding MCLR low for long/er periods?


Thank you.

g
_________________
CCS PCM 5.078 & CCS PCH 5.093
Ttelmah



Joined: 11 Mar 2010
Posts: 19360

View user's profile Send private message

PostPosted: Sat Sep 04, 2010 10:08 am     Reply with quote

Note the comment in the data sheet, at the start of the electrical specifications, and use a series resistor to drive the pin (50 to 100R).

Potential 'downside', is that this will require your external circuits, to _all_ make sure that the pins connected to the PIC are biased to 5v, or 0v, and that all external circuits are themselves 'off' without any drive from the PIC, since the output latches will be 'off' in reset mode. When in sleep mode, you can program the PIC before sleeping, so that the pins are driven to an idle state, and turn off external circuits, and this remains in place while asleep....

On 'XLP' PICs, deep sleep mode, uses fractionally less power than an MCLR reset (there are drive signals from the MCLR pin to reset various peripherals), but on a standard PIC, such as the 876, this shouldn't apply.

Best Wishes
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