Part Number:66AK2H12
Tool/software:TI-RTOS
Hi,
When I configure a SYS/BIOS timer to run on an ARM core in the K2H, the Timer_PeriodType_MICROSECS method does not work.
Timer_Params timerParams;
Timer_Params_init (&timerParams);
timerParams.period = 1000000; // 1 sec period
timerParams.periodType = Timer_PeriodType_MICROSECS;
timerParams.runMode = Timer_RunMode_CONTINUOUS;
timerParams.startMode = Timer_StartMode_USER;
oneSecTimer = Timer_create(Timer_ANY, (Timer_FuncPtr)timerTickFxn, &timerParams, &eb);
This doesn't produce a 1 sec period, but one that is much faster. Instead, I have to use a value of 16384000 and type Timer_PeriodType_COUNTS to make it work.
timerParams.period = 163840000; // 1 sec = 163840000 ticks
timerParams.periodType = Timer_PeriodType_COUNTS;
oneSecTimer = Timer_create(Timer_ANY, (Timer_FuncPtr)timerTickFxn, &timerParams, &eb);
The above does work, and produces a 1 sec tick.
When programming a C66x core, I specified the BIOS.cpuFreq value in the cfg file to get the Timer_PeriodType_MICROSECS type to work. But that doesn't seem to work for the ARM core.
Thanks,
Bruce