I plan to control servo position using an atxmega128a1 . I have a RC servo ( Hitec HS-325HB ) connected to PWM1 on port C . I wrote my program like this :
Code: Select all
PWM_C0_Init(50,_PWM_SINGLE_SLOPE);
PWM_C0_Start(_CCA_CHANNEL);
PWM_C0_Set_Duty(I,_PWM_NON_INVERTED,_CCA_CHANNEL);
delay_ms(20);
but my servo did not moved . I have no idea how to use pwm library to control a rc servo , I will be glad if somebody can help me .
Best Regards,
Amir .