Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE
Hello there,
Is there any API to get the timestamp in launchxl-f28379d?
thanks,
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.
Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE
Hello there,
Is there any API to get the timestamp in launchxl-f28379d?
thanks,
Hello Sumit,
There is a timer provided within the device, you can find more details in section 3.8 32-Bit CPU Timers 0/1/2. The section provides details on the registers used to start/stop the counter, configure the period, and read the timestamp. The CPU timer counts clock cycle ticks, so to convert it to microseconds you will need to do the conversion based on your configured clock frequency (the default should be 200MHz).
The input clock to the CPU Timers is SYSCLKOUT (the same frequency at which the CPU is operating). However, there is a prescaler which will impact the resolution. As Omer advised, please go through 3.8 32-Bit CPU Timers 0/1/2 in the device TRM. It is hard to explain the timer operation in a e2e post.
If you have not done so already, please download the latest version of C2000ware and look at cputimer.h in C:\ti\c2000\C2000Ware_5_02_00_00\driverlib\f2837xd\driverlib. All the APIs for CPU-Timer are in that file. The one you are looking for is

We don't have anything beyond that.