hi, I am now learning on how to control the servo using pwm. just want to know that the total time of pwm(20ms according to cytron program) can be used at any value of crystal? currently using pic16f84a with 4mhz crystal.
No PWM module is available for PIC16F84A. I think you should use Timer 0 interrupt to control your servo motor. Set prescaler to 1:128 if you are using 4MHz oscillator.