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.
Software reset a PIC - ECIO40P
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Software reset a PIC - ECIO40P
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- Jay Dee
- Posts: 398
- Joined: Tue Aug 18, 2009 6:42 pm
- Has thanked: 121 times
- Been thanked: 154 times
- Contact:
Re: Software reset a PIC - ECIO40P
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.
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.