This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430G2553: How to Eliminate __delay_cycles()

Part Number: MSP430G2553

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);`

**Attention** This is a public forum