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

How restart wdt using Timer2

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



Joined: 17 May 2013
Posts: 8

View user's profile Send private message

How restart wdt using Timer2
PostPosted: Thu Aug 22, 2013 4:41 pm     Reply with quote

I have a small circuit which is something basic, I get a information via xbee and I relay via rs485, both devices are connected to the same UART port, a 18F4520, I noticed that when connecting two transmitters the pic works so wrong, restarts, and crashes, does not work, once I happened something similar and solved using the wdt, and since that time had a ds1307, performed the restart_wdt () i2c communications, however this time I have the same problem but I have not nothing to communicate via i2c, I thinking of making the restart_wdt (), using one of the timers, but this I was unable to apply it correctly, someone can help me or show me some code where using a timer to run the restart_wdt (). .. thanks for your attention ..
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Thu Aug 22, 2013 6:38 pm     Reply with quote

start by showing your code with an explanation of what is failing.

a link to the schematic is not a bad idea either.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Aug 22, 2013 9:03 pm     Reply with quote

Quote:
show me some code where using a timer to run the restart_wdt ().


See Mistake #2 in the link below:
http://betterembsw.blogspot.com/2010/06/top-two-mistakes-with-watchdog-timers.html
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