I am using this code on the machine itself right now. The load for all the outputs of the PIC are N-channel mosfets that turn on 12 solenoid valve coils. I have flyback diodes on all the coils to protect the PIC from voltage spikes form the coils. I turnned off the analog registers as you suggested but the problem still exists.

It seems to be more of an issue when i press the main trigger to quickly comming into the initaialize part of the program. Dont know if thats the cause or just a coincidence. Thank you for your timely help.