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.

Compiler/TMS320F28335: Delay and other built in macro/functions reference/manual

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE, CONTROLSUITE

Tool/software: TI C/C++ Compiler

Hi there,

I am working with F28335 and was wondering to introduce a delay code in program. I have previously used delay_ms/ delay_us with other compilers and microcontrollers before. These functions come as built in functions/macros in the compilers i used before. I was wondering if anyone could tell me if the c2000 compiler offers delay and other types of built in functions and where can I find their reference?

  • Eshet,

    You'll want to download our latest tool package(if you haven't already) that has examples for our MCUs.

    http://www.ti.com/tool/C2000WARE 

    We do have a function called Delay_US(), that does exactly what you want.

    The source for this is here: C:\ti\c2000\C2000Ware_1_00_05_00\device_support\f2833x\common\source\DSP2833x)usDelay.asm

    The C setup is here: C:\ti\c2000\C2000Ware_1_00_05_00\device_support\f2833x\common\include\DSP2833x_Examples.h  (This is also where the CPU clock rate is set to scale this function)

    There is an example of the function use here C:\ti\c2000\C2000Ware_1_00_05_00\device_support\f2833x\common\source\DSP2833x_SysCtrl.c line 290

    Let me know if you need more info.

    Best regards,
    Matthew

  • Thanks, it has worked for me. Just for the record in my case, I have found the source, C setup and example in here (C:\ti\controlSUITE\device_support\f2833x\v133\DSP2833x_common)