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.

TMS320F28069: How to implement a counter in CLA to measure a time interval?

Part Number: TMS320F28069


I have a function which is being called frequently in different time instances(from eCAP Interrupts) and I did setup the CPU Timer0 within that function to measure the time elapsed between each call. (Part of the code is attached below) Now I am transferring my C28x code to CLA and having a difficult time implementing the same function with the timer counter since CLA doesn't have access to CPU Timer0 Registers. Can anyone suggest a method to implement this counter in CLA?

void EXFunction(void)

{

Stop_Timer0();
Counter_Value = (CpuTimer0Regs.PRD.all - CpuTimer0Regs.TIM.all);
Start_Timer0();

...

...

}