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.

CCS/AWR1843: RTIA free Running counter Read in AWR1843

Part Number: AWR1843

Tool/software: Code Composer Studio

Hello All, 

I am trying to read the value of the free running counter of the RTIA module , in my application i want to measure the periodicity of the tasks through measuring the value of the free running counter each time the task comes and calculate the task period. The difference between the two measured values of the FRC0 is not constant ,although the periodicity of the task is constant and equal 5msecs. 

I want to understand how the FRC is incremented as the behavior i found is not as mentioned in the data sheet of AWR1843 section 17 for the RTI.

This is this how i read the FRC0: Through a pointer to the RTIA register, in the task 5msec,

rtireg = (rtiBASE_t *) 0xFFFFFC00U;
retVal = rtireg->CNT[0].FRCx ;

The timer is created using the OS configurator with the following configurations: 

Thanks in advance

Nada

  • Hello Nada,

    As a easy step you can read the PMU counter which is being implemented in mmwave SDK.

    Please refer CycleprofilerP_init and CycleprofilerP_getTimeStamp function from CycleprofilerP_tirtos.c file. And refer the mmw demo for the usage of this feature.

    So effectively you can get the system clock count at two points and get the difference; this is systick difference then divide it by 200M as system is running at 200MHz clock. 

     

    Regards,

    JG