I currently am working on an rc project with servos and am using quite a few delay cycles to control the servos. Though I know this isn't good practice and will also waste the battery of the final project the servos and board will be attached to. I don't plan on attaching a crystal to my board and timer a0 with smclk source is being used to create my pwm wave.
I'd like the function of the code to be similar to this without the delay cycles:
`TA0CCR1 = SERVO_MAX; //Max rotation for the servo
__delay_cycles(100000);
TA0CCR1 = SERVO_MIN; //Neutral position for the servo
__delay_cycles(100000);`