Motors hate micros.
Alec_t has the most likely problem. You don't want the high current of the motor going thru the same ground as the micro ground.
You might want a big cap right across the bridge in any case, especially if the leads are long to the power supply.
Sometimes the brush noise can get it as well. Some small ceramic caps - one across the motor and one from each lead to the frame of the motor may help this. If possible tie the frame of the motor to AC ground. And then just a decoupling cap at the micro itself.
One last thing to watch out for is that if you reverse the motor before it has stopped the back emf can "pump up" the big supply. You can probably measure this with a meter as the motor probably takes a while to stop.
Alec_t has the most likely problem. You don't want the high current of the motor going thru the same ground as the micro ground.
You might want a big cap right across the bridge in any case, especially if the leads are long to the power supply.
Sometimes the brush noise can get it as well. Some small ceramic caps - one across the motor and one from each lead to the frame of the motor may help this. If possible tie the frame of the motor to AC ground. And then just a decoupling cap at the micro itself.
One last thing to watch out for is that if you reverse the motor before it has stopped the back emf can "pump up" the big supply. You can probably measure this with a meter as the motor probably takes a while to stop.