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

12F675 - wake up

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



Joined: 28 Feb 2006
Posts: 151

View user's profile Send private message

12F675 - wake up
PostPosted: Mon Feb 14, 2011 6:18 am     Reply with quote

Hi, im trying to wake up a 12F675 from sleep.

I have read the datasheet and it says that it cant wake up from Timer1 overflow.

I succesfully waked up from watchdog, but now im triyng to wake up from timer1.

I use the internal 4mhz oscillator.

Do somebody know how to configure the pic?

thanks!
temtronic



Joined: 01 Jul 2010
Posts: 9247
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Feb 14, 2011 6:43 am     Reply with quote

Please post a small compilable test program,with compiler version.
It'll make it easier to diagnose.
championx



Joined: 28 Feb 2006
Posts: 151

View user's profile Send private message

PostPosted: Mon Feb 14, 2011 6:46 am     Reply with quote

I dont have a code, because i only need to know if i cant wake up the PIC using the timer1+internal_rc at 4mhz because i cant use an external oscillator, or a Clock IC.

I have a working program using the watchdog, but i need more accuracy.

thanks for your answer!
andrewg



Joined: 17 Aug 2005
Posts: 316
Location: Perth, Western Australia

View user's profile Send private message Visit poster's website

PostPosted: Mon Feb 14, 2011 6:47 am     Reply with quote

Are you sure you read the data sheet? Under Timer1 it says that it will wake up on overflow in asynchronous mode. It will have to be an external clock signal since the internal clock is off when asleep!
_________________
Andrew
championx



Joined: 28 Feb 2006
Posts: 151

View user's profile Send private message

PostPosted: Mon Feb 14, 2011 6:52 am     Reply with quote

yes, i read the datasheet (im from argentina, so sometimes its a little dificcult to read english texts).

But, says that the internal oscillator will keep runing in sleep mode and says that you CAN put a external oscillator to run the timer1 during sleep. So i understand taht you use the internal rc, or if you wish, you CAN run it from an external oscillator.

Asyncronous mode its ONLY when you use an externa oscillator?

thanks for your help!
andrewg



Joined: 17 Aug 2005
Posts: 316
Location: Perth, Western Australia

View user's profile Send private message Visit poster's website

PostPosted: Mon Feb 14, 2011 7:03 am     Reply with quote

The internal oscillator is shutdown during sleep. You might have been confused by section "5.5" referring to an "oscillator circuit". Perhaps "oscillator driver" would have been a better choice of words.

What it's saying is that it will operate an external crystal up to 37kHz, which will provide an external clock source for timer 1.
_________________
Andrew
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