[SOLVED] problem in enabling watchdog timer using pic18f4550

Status
Not open for further replies.

abhishekdixit

Full Member level 2
Joined
Dec 30, 2011
Messages
124
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Location
India
Visit site
Activity points
2,182
hiiii
I have made a application using pic18f4550, i am using MPLAB X IDE,a and pic c 18 compiler, now problem is that after some time my device goes in hang state, now i want if this hanging situation occurs, my device will restart, after study in internet, i found that by using watch dog timer, this thing can be possible, but i don't know how to enable watch dog time in pic18f4550, so anybody help me to solve this problem, if anyone has any link or material from which i can see some example of watch dog timer, so please help me..

Thank You
 

In mplabc18 folder see the help file for devices configurations. open help for PIC18F4550 and see how to set the configuration. This applies only if you are setting config words in code. If you are setting it in IDE then this is not needed.


Edit: See this file in docs folder. hlpPIC18ConfigSet.chm

See config settings for PIC18F4550 in the above file. It is same as I mentioned in my previous post.
 

ok thanx jayanth, but after doing this, my device will perform restart operation? when it will go in hang position or i hav to do moe things in my code?
 

Hello..
I have done this configuration in my code, I have enabled watchdog timer. Now how should I start watch dog timer and how should I calculate time for restart the device, again stop the watch dog timer. Please help me..

Thank You
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…