Software reset a PIC - ECIO40P
Posted: Wed Apr 22, 2020 3:41 pm
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.
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.