Hi,
I have an assembly program with a task running on the CPU T2 interrupt. T2 period is set to 999 which should, at 150MHz, result with interrupt period of 6.6666667us. Instead I measure (by toggling GPIO56 on the T2 task and watching it with scope) variable periods of
6.62us, 6.66us, 6.67us, 6.68us, 6.70us. I tried putting a breakpoint on the beginning of my T2 ISR and have observed TIMER2TIM register content:
977, 980,
983. My code is running from internal flash of the F28335 (eZdsp board). Controller is waiting for the interrupt in an empty loop.
To eliminate errors in my code, I tried running TIs example from C2833x/C2823x C/C++ Header Files and Peripheral Examples. I modified cpu_timer example by setting T2 period to 6.6666667 and adding code to toggle GPIO56 in T2 ISR (as in gpio_toggle example). Here again I measured variable interrupt period ( 6.66us and 6.69us) and observed different values in the TIMER2TIM register on start of ISR ( 978, 979, 980, 981).
Can anyone explain this behavior?
Josip