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

watchdog reset

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



Joined: 18 Nov 2003
Posts: 14
Location: Ireland

View user's profile Send private message

watchdog reset
PostPosted: Thu Apr 01, 2004 2:08 pm     Reply with quote

Iam trying to reset the pic using the watchdog timer??
What are the main things to be aware of when implementing this?
Guest








PostPosted: Thu Apr 01, 2004 4:14 pm     Reply with quote

Have a look at the links on this thread
http://www.ccsinfo.com/forum/viewtopic.php?p=7697#7697
valemike
Guest







Re: watchdog reset
PostPosted: Thu Apr 01, 2004 10:04 pm     Reply with quote

Michaelc wrote:
Iam trying to reset the pic using the watchdog timer??
What are the main things to be aware of when implementing this?


I've reset other micros (e.g. a powerpc and 680x0) by letting the watchdog timer time out, so I don't think it would be much different with the PIC.

Code:

void graceful_reset(void)
{
     save_stuff_if_you_have_to_in_eeprom();
     disable_interrupts();
     while(1);
}


I don't think there is anything else you should worry about.
valemike
Guest







Re: watchdog reset
PostPosted: Thu Apr 01, 2004 10:04 pm     Reply with quote

Michaelc wrote:
Iam trying to reset the pic using the watchdog timer??
What are the main things to be aware of when implementing this?


I've reset other micros (e.g. a powerpc and 680x0) by letting the watchdog timer time out, so I don't think it would be much different with the PIC.

Code:

void graceful_reset(void)
{
     save_stuff_if_you_have_to_in_eeprom();
     disable_interrupts();
     while(1);
}


I don't think there is anything else you should worry about.
Michaelc



Joined: 18 Nov 2003
Posts: 14
Location: Ireland

View user's profile Send private message

watchdog reset and configuration bits (fuses)
PostPosted: Fri Apr 02, 2004 5:58 am     Reply with quote

Iam using a bootloader, and when i program the chip with the bootloader and turnoff the watchdog timer config bit the program including the bootloader work perfect, however if i turn on the watchdog bit and program the chip again from mplab using promate 2, with the bootloader program, the chip wont download? whats wrong here, and what way should the other configuration bits be set?
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