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.

CCS/TMS570LC4357: Is there a way I can create a time delay in my program?

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

I am well aware there are much better and simpler ways to create a PWM signal using HALCoGen, but for the sake of this question, but I'm trying to do it manually by turning on a pin, delaying the program, then turning the pin off.

Is there a built-in delay function? If not, how should I go about creating this delay?