Hi,
Thanks for your replies.
My circuit is supplied from a battery driven voltage regulator which is fully on before the power is switched to the circuit.
I neglected to mention that there are actually 2 solenoids and 2 mosfets. It is only the second one that misbehaves. Yes, I have 2 initialization steps at the very top of the code...already thought of that:
low portb.3
low porta.1
I don't have a scope. The solenoids are very fast and can operate in less than 100 us. I will try the cap idea from Melanie. Otherwise, will go to a p-channel mosfet on my next board.
Dick
Bookmarks