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/TMS320F28335: CCS/TMS320F28335

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

I want to turn on and off a GPIO for a certain time, I want to use the delay loop () but I do not know how to do it or declare that instruction, how can I use it? or someone has some code about that?

  • Do you want to use DELAY_US()? Or some other delay method?

    Assuming you want to use DELAY_US(), you can check out the sci_autobaud example in C2000Ware (found under device_support\f2833x\examples\sci_autobaud). You'll see that in Example_2833xSci_Autobaud.c, there's a line DELAY_US(280000L) which creates a delay loop that lasts for 280000 microseconds.

    To use DELAY_US(), you need to #include DSP2833x_Examples.h (which is already #included by DSP28x_Project.h) and add the DSP2833x_usDelay.asm file to your project.

    Whitney

  • Ok thanks, I will try