Hi,
I am seeing some deviation in the time achieved using SYS/BIOS Clock module.
(SYS/BIOS 6_21_0_21, CCS 4.2, CG Tools 6.1.20, OMAPL138, Blackhawk Emulator)
Following is the code for clock creation.
Clock_Params_init(&clkParams);
clkParams.period = 500;
clkParams.startFlag = TRUE;
clkParams.arg = (UArg)0x5555;
Clock_create(clk0Fxn, 3000, &clkParams, NULL);
In clk0Fxn function, I am toggling a GPIO line and I am probing that on the CRO.
Following are times recorded for different clock periods.
set_period Time_measured_on_CRO
30 27
60 53.3
100 88.8
500 445
I am seeing around 10% deviation to the time set for the clock.
Is this expected?
thanks, Durga