bsodmike
New Member
Hiyas,
I've got my PIC running @ 20Mhz and don't want to be littering my code with clrwdt()'s just yet...
Basically during my PS/2 transmit operation if it fails 5 times I want to reboot the pic, what I've done is this:
I'm using the PICC compiler by Hi-TECH and was wondering if this crude way of manually setting the program counter back to 0x00 is ok
Cheers,
Mike
I've got my PIC running @ 20Mhz and don't want to be littering my code with clrwdt()'s just yet...
Basically during my PS/2 transmit operation if it fails 5 times I want to reboot the pic, what I've done is this:
Code:
if (retry > 4)
{
asm("org 0x00");
}
I'm using the PICC compiler by Hi-TECH and was wondering if this crude way of manually setting the program counter back to 0x00 is ok
Cheers,
Mike