Page 1 of 1

Software reset a PIC - ECIO40P

Posted: Wed Apr 22, 2020 3:41 pm
by Jay Dee
Hi,
I have a program using CAN and mostly runs OK but on occation the CAN transmitter starts to output Garbage. The main program seem to keep running fine.

A) Can I software request a reset of the PIC ? Is there a propper way of doing this? Or would I need to assign an output to toggle the MCLR pin?

B) I can pull the CAN Controller reset low, then need to run the CAN initialise macro again. --- this is option, just need a way of locally detecting when the CAN output is garbage.

Re: Software reset a PIC - ECIO40P

Posted: Wed Apr 22, 2020 3:45 pm
by Benj
Hello,

Here is an example of software reset on a PIC.
viewtopic.php?f=76&t=21499&p=96971

If you find out what's causing the problem then let us know.

Re: Software reset a PIC - ECIO40P

Posted: Wed Apr 22, 2020 3:51 pm
by Jay Dee
Thanks Ben,
Yeah, If I do! the devil is in the detail.
Just working on a reliable way to detect the fault locally...then I can apply the reset.