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

Setup WDT for a PIC18

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



Joined: 25 Mar 2011
Posts: 7

View user's profile Send private message

Setup WDT for a PIC18
PostPosted: Thu Apr 14, 2011 8:32 am     Reply with quote

Hi, I have several doubt about how working with WDT on a PIC18, I am work with pic18f452 at 20MHz

which means WDT128?
How I have to do to set a timeout of WDT of 30sec ?

someone can clarify this doubt !!!
collink



Joined: 08 Jan 2010
Posts: 137
Location: Michigan

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

Re: Setup WDT for a PIC18
PostPosted: Thu Apr 14, 2011 9:13 am     Reply with quote

Normally I'd say look at the manual but the manual is a mess in this regard. At least for your chip. It's better for some of the other pic chips. Anyway, your manual says that the watchdog timer will be at least 7ms, probably 18, and at most 33ms at WDT1. Every value higher than one multiplies this. So WDT2 would be 18 * 2 = 36ms. WDT128 is 128 * 18ms = 2304ms. So I don't see any way that you can set a WDT timeout of 30seconds with your pic chip.

Alejandro wrote:
Hi, I have several doubt about how working with WDT on a PIC18, I am work with pic18f452 at 20MHz

which means WDT128?
How I have to do to set a timeout of WDT of 30sec ?

someone can clarify this doubt !!!
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