Hello,
I am sorry for asking silly question but I need your help. I would like to know how to convert RTI systick to time (ms/ns).
I am using rtiGetCurrentTick(rtiCOMPARE0); which is available as unsigned rtiGetCurrentTick(unsigned compare) in rti.c and i get some value but i don't how to convert that into time (millisecond or nanosecond).
My intention is to find how much time does it takes to execute/initialize a functionality (like ADC, CAN, I2C, etc...) and i am using "rtiGetCurrentTick" as time-stamp.
Following are the settings which i am using:
RTI1CLK Counter0 :
RTI1CLK = 80Mhz
Counter Frequency = 10 Mhz
Actual counter output clock frequency = 10Mhz
(Compare 0) Actual period = 1millisecond
(The above values are set using HalCoGen tool)