Hi,
I'm migrating to BIOS 6 from BIOS 5 and have replaced the BIOS5 API CLK_gethtime with the BIOS6 API Timestamp_get32. I'm running the DSP's SYSBIOS clock example that sets up a timer function that is scheduled to run every 5 system ticks (i.e. 5 ms). Each interrupt I call Timestamp_get32 and compute and log the delta between the current value and the value obtained the previous interrupt. I expected the delta timestamp value to be 4,000, 000 every interrupt (800, 000 * 5) as I'm running at 800 MHz and the clock is configured for 1000 microseconds per interrupt. However, that's not what I measure. Instead the delta number of ticks between interrupts oscillates between 2,456, 784 and 1, 761, 940 +/- 100 ticks. The value returned from Clock_getTicks increases by 5 each interrupt. I don't understand why the delta value is different from what I expect. Is timerstamp_get32 the wrong function to replace CLK_gethtime, or am I missing something in the configuration?
FYI I'm running on a spectrum digital 816x EVM board that presumably is running at 800 MHz. Even if it were not running at that frequency, I still would expect the delta to be consistent from one interrupt to the next.
Thanks,
Jim