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

Maximum WDT time

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



Joined: 16 Mar 2010
Posts: 11

View user's profile Send private message Send e-mail

Maximum WDT time
PostPosted: Sat Mar 27, 2010 4:05 am     Reply with quote

Hi,

I'm using pic16f690.
I think we can give maximum delay of 2.3 sec.

If no then how much delay we can give, and how.

Is there isr required for that?

Thanks & Regards
Lokesh
_________________
Thanks & Regards
Lokesh Bhatt
Ttelmah



Joined: 11 Mar 2010
Posts: 19537

View user's profile Send private message

PostPosted: Sat Mar 27, 2010 5:50 am     Reply with quote

No, for two reasons.

The first, depends on whether you want to use the second 8bit prescaler for timer0 or not. If not, then the maximum division available for the watchdog, is 128*128 = 16384. The watchdog nominal timeout, is 17mSec, giving a maximum _nominal_ time of about 270seconds (the data sheet quotes 268).
This is setup like:
setup_wdt(WDT_2304MS|WDT_TIMES_128);
which multiplies the selected time by 128.
However 'see below'

The second part though, is the _nominal_ bit. The watchdog only gives very approximate times. It is quoted as 10mSec shortest, 17mSec 'typical' (not the 18mSec that CCS have assumed), and 30mSec longest. So even with the single 128 divider (the nomimal about 2.3 second selection), the 'actual' times, will vary between chips, and with supply level, between about 1.3 seconds, and 3.8 seconds...

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