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.
Hi,
I try to obtain the time elapsed between the beginning of my background loop but I failed...
I have 2 ways to do : - Whithout using DSP / BIOS : I don't know how to do..
- With DSP / BIOS but the code which following my text doesn't work...There are somme error (#20 "LgUns" not identified...)
#include <stdio.h>
#include <stdlib.h>
#include <std.h>
#include <log.h>
#include <clk.h>
#include <tsk.h>
#include <gbl.h>
#include "PeripheralHeaderIncludes.h"
unsigned long start, stop, time_elapsed;
start = (CLK_getltime() * (CLK_getprd())) / CLK_countspms();
stop = (CLK_getltime() * (CLK_getprd())) / CLK_countspms();
time_elapsed = stop - start;
So How can I do to get the time elapsed with a timer which can be reseted for example (because of 16 or 32 bits limits) ? Thank you
Cedric,
I would recommend looking CpuTimer peripheral in your device's 'System Control and Interrupts User Guide'. This is the peripheral that your DSPBIOS code is most likely using without you seeing it.
An example project for this module can be found here (for the F2833x):
\controlSUITE\device_support\f2833x\v133\DSP2833x_examples_ccsv4\cpu_timer\
The following link may also give so more information on the various methods of profiling C28x code:
http://processors.wiki.ti.com/index.php/Profiling_on_C28x_Targets
Thank you,
Brett
Thank you very much, it is what I exactly need. I say it again and again and again ^^ but you are really a great community. Thank you.