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.

Using CLK_getltime function C6713

Hi,

I am hoping someone can point me in the right direction.  I am trying to measure the time between two inputs.  I am using CLK_getltime() but it is just returning a value of 0.  Using a simple program just to get it working, I am using the bios graphic tool to set up the period and can get a return of clock cycles in 1ms.  Within main I call a function and have a while(1) loop.  In the called function I simply have currenttime = CLK_getltime().  This returns a value of 0.

Is there something I should be enabling or disabling to get this function to work.

Any help would be appreciated, it sounds simple and yet is just not working.

Sean d

 

  • Hi,

    As far as I know the CLK_getltime() and CLK_gethtime() functions can not be called from main. Your main has to return to allow DSP/BIOS to take over control and then you can use the CLK functions in a DSP/BIOS task.