Part Number: AM2612
Other Parts Discussed in Thread: SYSCONFIG
Hi,
My customer has some additional questions related with the following thread.
The customer sets the RTI in the SysConfig as shown in Fig. 1.
The function described as Function 1 below is called every 500us to get the flag.
Could you please check if their understandings below are correct ?
1 : When 1ms elapses, is it OK to recognize that Bit0 of RTIINTFLAG becomes “1” even if “Enable Compare Interrupt” is not checked?
2 : Are the following their understanding correct ?
- Regarding Compare register value between FRC value of RTI and Compare Event, the next Compare register value is automatically updated (added) when the comparison register value is reached.
- Since the FRC value and the comparison register value are updated at the same time, there is no need to consider overflow after reaching 32-bit.
( Will there be no conflict between FRC value and compare value when returning to 0x00000000 ? )
Fig. 1. SysConfig Settings

Function 1.
BOOL Get1msTimerFlag(void)
{`
uint32_t baseAddr = CSL_RTIO_BASE;
uint32_t status;
BOOL result = FALSE;
/* Get the current status of Event Flag */
status = RTI_intStatusGet(baseAddr);
/* Check Flag of Compare Block 0 (1ms Period Event) */
if (status & RTI_TMR_INT_INT0_FLAG)
{
/* Clear Flag (Equivalent RX TGFA = 0) */
RTI_intStatusClear(baseAddr, RTI_TMR_INT0_FLAG);
result = TRUE;
}
return result;
}
API

Input Clock Frequency 240000000 Hz --> 240
Desired Output Frequency 12000000 Hz MHz
Prescale Comparison Register (RTICPUCx) 19 * Automatically set by SysConfig
--> 0.083333333 us * 1 count by 83.3ns
Upper Limit of 32bit_Free Running Counter 4294967296 counts
357.91 sec
5.97 min --> Overflow around 6min
Thanks and regards,
Hideaki