PIC Resetting
Posted: Fri Mar 13, 2015 2:38 pm
Hi all,
I apologise in advance if this is not the correct place to bring this up (as it's not quite a FC6 problem), but I thought that due to the frequency that this issue seems to rear it's head, it might be worth a discussion. I have a FC program that switches 4 relays depending on some variables. These relays in turn, switch on ac electric motors (220v apprx 500W each x 4 motors). When the program runs without the motors connected (just switching the relays on their own) all is perfect. When the motors are connected, the PIC resets every so often and even the 16x4LCD gets corrupted quiet often. This happens mostly when the motors are switched off.
I've tried to disable the MCLR option with config buts, but even so, the PIC still resets when I push the set button, so this doesn't seem to have worked?
The PIC is an PIC18F46k22.
I have got 1000uF caps on the power supply lines
100nF ceramics across the PIC power pins (directly across them)
100nF and 1000uF across the LCD power pins
Does anyone have any advice/ideas what can be done in order to stop this resetting behaviour.
Thanks guys...
I apologise in advance if this is not the correct place to bring this up (as it's not quite a FC6 problem), but I thought that due to the frequency that this issue seems to rear it's head, it might be worth a discussion. I have a FC program that switches 4 relays depending on some variables. These relays in turn, switch on ac electric motors (220v apprx 500W each x 4 motors). When the program runs without the motors connected (just switching the relays on their own) all is perfect. When the motors are connected, the PIC resets every so often and even the 16x4LCD gets corrupted quiet often. This happens mostly when the motors are switched off.
I've tried to disable the MCLR option with config buts, but even so, the PIC still resets when I push the set button, so this doesn't seem to have worked?
The PIC is an PIC18F46k22.
I have got 1000uF caps on the power supply lines
100nF ceramics across the PIC power pins (directly across them)
100nF and 1000uF across the LCD power pins
Does anyone have any advice/ideas what can be done in order to stop this resetting behaviour.
Thanks guys...