I am creating a motor controller board using a micro and the ST VNH2SP30 motor controller IC. I have a potentiomter that allows you to vary the speed and direction of the motor. I have the circuit all working and I am using a 12V automotive wiper motor as a test. The motor draws between 1A and 5A depending on the load. The issue I am having is that I when I turn the pot quickly and the motor changes direction sometimes the controller goes in a 'fault' condition and stops. I assume that this is happening because of a current spike. So my question is should I be using some kind of EMF protection (ie diodes) to reduce this problem like you do in a circuit with a relay? I don't know how you would do this in this application where the motor is changing directions.