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

WDT and temperature

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



Joined: 20 Mar 2007
Posts: 2

View user's profile Send private message

WDT and temperature
PostPosted: Tue Mar 20, 2007 9:40 am     Reply with quote

Hello,
I am working on battery operated product and so the sleep use is necessary. However timing is somewhat critical and I am relying on the watchdog time-out time and using a counter to obtain a countdown function (say alarm in X mins). I know that the WDT is dependent on temperature (and isn't even the same over the same temperature for each chip of the same model)and I am using a temp sensor in my circuit. My question is: Before going to sleep, how can I check what the time-out time is (say using a timer1 counter) ? That way I can scale my counter appropriately to get the right countdown time.
BTW, I am using a PIC16F688 running with the internal clock and I can't use any additional hardware because I don't have any space left on the PCB.

Thank you!
Ilias
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Mar 20, 2007 2:38 pm     Reply with quote

See the Microchip appnote AN828 for some ideas:

Measuring Temperature with the PIC16F84A Watchdog Timer
http://ww1.microchip.com/downloads/en/AppNotes/00828a.pdf
Guest








PostPosted: Tue Mar 20, 2007 2:50 pm     Reply with quote

My concern is if it can be done with timer1 using the HF internal oscillator? (the PIC itself is running on the HF oscillator)
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