the frequency is about 19.6khz, use 1 prescale. Ccp1 and ccp2 use timer 2 to generate pwm.
One more, why if i measure the voltage to motor is 5 volt if i dont connect the motor and its fall to 3 volt if i connect it?
It have diode right to protect the oppose current.
Then, its same right 5v dc motor compare with 3 volt motor?