i am facing a problem with pwm controller using pic. the pic gets hanged when interfaced to motor, otherwise the pwm pulses are generated and other peripherals work fine. can any one help to resolve this problem.
Do you have decoupling capacitors accross the powersupply lines of the chips?
Each chip should have a capacitor of 0.1 uF accross the +Vcc and GND connections as close as possible to those connections.
Do you have a diode accross the motor to suppress the inductive kickback?
This diode should have the kathode to the + powersupply.
Provide a schematic of your circuit so that we can see what other areas present in your circuit that may be sensitive to the electrical interference that is being generated by the motor.