I have a PIC16F628A connected to an H-bridge with two medium size motors connected to it. I have figured out that the PIC is being browned out by the motors. I understand I need capacitors somewhere on the circuit but I don't know where to put them or what size capacitors I should use. I know I could put them on the motors themselves and the PIC, but exactly where, I don't know. Any help is greatly appreciated!

-Mike