Dear members,
I want to control 2 servos, independently.
After analysis, i guess i need the 3 timers of the PIC :
1) timer1 : 20 mS for period signal,
2) timer0 : 1 mS with a loop and a counter cnt0 to count x time 1 mS for Ton for servo#1,
3) timer2 : 1 mS with a loop and a counter cnt2 to count x time 1 mS for Ton for servo#2
... but I have no idea how to start the code.
I tried, but only one servo turns.
Merci beaucoup for your help and feed-backs.
Éric
I want to control 2 servos, independently.
After analysis, i guess i need the 3 timers of the PIC :
1) timer1 : 20 mS for period signal,
2) timer0 : 1 mS with a loop and a counter cnt0 to count x time 1 mS for Ton for servo#1,
3) timer2 : 1 mS with a loop and a counter cnt2 to count x time 1 mS for Ton for servo#2
... but I have no idea how to start the code.
I tried, but only one servo turns.
Merci beaucoup for your help and feed-backs.
Éric