View previous topic :: View next topic |
Author |
Message |
Michaelc
Joined: 18 Nov 2003 Posts: 14 Location: Ireland
|
watchdog reset |
Posted: Thu Apr 01, 2004 2:08 pm |
|
|
Iam trying to reset the pic using the watchdog timer??
What are the main things to be aware of when implementing this? |
|
|
Guest
|
|
|
valemike Guest
|
Re: watchdog reset |
Posted: Thu Apr 01, 2004 10:04 pm |
|
|
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 |
Posted: Thu Apr 01, 2004 10:04 pm |
|
|
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
|
watchdog reset and configuration bits (fuses) |
Posted: Fri Apr 02, 2004 5:58 am |
|
|
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? |
|
|
|