Some good points Roman. You know what battery-powered electric motor circuits can be like - crap everywhere. And this is a particularly noisy motor too I've added a 470R series resistor into AN0 and a 1N5819 + 10n from AN0 to ground and it's at least stopped latching, so maybe this PIC will have a long and happy life. For "belt and braces" sake though I think I will add those zeners, it's cheap insurance. After some similar experiences with solenoid drivers I've found that giving each relay its own diode-isolated energising cap is a big help, makes far less of a mess of the PSU when the relay switches as the coil can draw on the cap If that warning about sub-Vss voltages was in the F877 manual instead of the Mid-range manual maybe I wouldn't have lost a PIC pin. Lesson - read damn everything -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body