Part Number: RM46L852
Hi,
I need to setup the RTI 0 Counter, so that tne Freescale FRC is incrementet every millisecond and i can get the Time in millsecond since programm start.
I'm using the following Code, but the FRCx is incremeted only many seconds, why ?
main()
{
/* USER CODE BEGIN (3) */
rtiInit();
rtiStartCounter(rtiCOUNTER_BLOCK0);
while(1)
{
printf("FRCx: %d CPUCx:%d\n",(int) rtiREG1->CNT[rtiCOUNTER_BLOCK0].FRCx,(int)rtiREG1->CNT[rtiCOUNTER_BLOCK0].CPUCx);
}
/* USER CODE END */
return 0;
}

