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.

TMS320F28P650DH: Count cycles - ERAD_Counter_Event_Mode

Part Number: TMS320F28P650DH
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hi, 

I want to count cycles (triggered by SW) on F28P65. For some reasons i couldn't find much information about the ERAD module on F28P65 but I found the ERAD_configCounterInStartStopMode() function in the F29x documentation. 

Do you confirm that the preferred way to count cycles on F28P65 and it is used in the same way as on the F29? 

Regards,

Geoffrey 

  • Hi Geoffrey,

    The counter function referenced in your post is available in the F28P65x device. See the erad.h file in the latest C2000Ware. Section 13.9.4 ERAD_COUNTER_REGS Registers has information about using the ERAD_EVENT_NO_EVENT value for the ERAD_Counter_Config parameter. This causes the counter to use the CPU cycles. It should also be noted that the counter must be enabled using the ERAD_enableModules method to begin counting.

    Regards,

    Ozino