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

External Clock PIC16F688
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ttelmah



Joined: 11 Mar 2010
Posts: 20161

View user's profile Send private message

PostPosted: Tue Apr 10, 2012 1:44 am     Reply with quote

Also, the key problem with the XO56BR10KHZ, is it draws more current than the PIC does when it is running.....
That particular part is 'obsolete' as far as the manufacturer is concerned, but the data-sheet shows it drawing 30mA.

However the latter microcrystal number posted is ideal, attached to the timer1 oscillator pins.

It has already been stated to the original poster several times, but lets repeat it:
1) No. You _cannot_ sleep, and wake up using the master oscillator as a timing source.
2) To wake up, the way you want, you _must have_ either a second crystal oscillator, on the timer1 pins, _or_ an external oscillator.
3) Most external oscillators, _will_ draw more power than using the watch crystal on the timer1 pins, that has already been described. However it does bring the possible advantage of offering different sleep intervals if required.

Seriously, don't be afraid of just adding the watch crystal. These are specifically designed for low power use, are cheap, and offer surprisingly good frequency stability at normal room temperature. Using one of these to wake up every couple of seconds, and just executing minimal code when you are awake, power consumption can be so low that you can get several _years_ of life off a single coin cell battery.
This is what is _needed_ to make what you want work.
Remember also, that in many cases, if 'timing' is not critical in the 'awake' sections of code, you can use the internal RC oscillator on many PIC's, which wakes up quicker, and reduces the part count.

Best Wishes
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Tue Apr 10, 2012 6:53 am     Reply with quote

the BEST way to wake from sleep is on external EVENT based stimulus.

there are MANY different stimuli to choose from.

once again the data sheet is your best friend.
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, 3
Page 3 of 3

 
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