Other Parts Discussed in Thread: HALCOGEN
Im using the RTI module to trigger a 1msec interrupt (using compare 0) and trigger task execution in my application. - Halcogen Compare module 0 uses timer 0 (1msec compare - counter freq 55Mhz)
I noticed that every time this interrupt triggers and I attempt to get counter ticks (for timing measurements) using rtiGetCurrentTick(rtiCOMPARE0)
the tick counts resets.
what is the best way to configure the setup using HALCOGEN to obtain timing measurements.
in this case I'll like to have a free running timer to calculate task execution jitter.
My current config for this task scheduler is,
main(){
/* Initialize RTI driver */
rtiInit();
/* Enable RTI Compare 0 interrupt notification */
rtiEnableNotification(rtiNOTIFICATION_COMPARE0);
/* Start RTI Counter Block 0 */
rtiStartCounter(rtiCOUNTER_BLOCK0);
}