Part Number: LAUNCHXL-F280049C
Other Parts Discussed in Thread: C2000WARE
Hi I want to use a Background Clock counter in my program. just want to count the clock cycle between two ISR routine. Any suggestion how to implement it?
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-F280049C
Other Parts Discussed in Thread: C2000WARE
Hi I want to use a Background Clock counter in my program. just want to count the clock cycle between two ISR routine. Any suggestion how to implement it?
Hi Raj,
If I understand you correctly, what you are looking for is the cycle count between start of ISR1 and start of ISR2. Is that right?
Have you looked at the ERAD module? It includes a set of bus comparators and counters. In your case, you can configure 2 bus comparators to detect the events PC=start of ISR1 and PC=start of ISR2 and run counter using these events as start and stop events. For more details, you can refer to the appnote https://www.ti.com/lit/an/spracm7/spracm7.pdf
You can also check the examples in C2000ware driverlib.
Alternatively, you can also use the CPU timers as background counter.
Regards,
Veena