SYSBIOS: 6.35.0.20
XDCTool: 3.24.6.63
Code Gen tools: 7.3.11
DSP: C6748
I have discovered that our SYSBIOS clock is running at 1.25mS instead of 1mS. After digging around the .cfg file, I can't see what I'm missing.
From the SYSBIOS -> Runtime tab, the CPU clock frequency is correctly set to 364.8MHz (this is getting pulled from the platform file). Also on this tab I have the check next to "Enable Clock Manager". Everything looks good here.
From the CLOCK module under Time Base I have "Internally configure a hal Timer to periodically call Clock_tick()". Under Timer Control I have the Tick period set to 1000 and the Timer ID set to 1. Everything looks good here.
Since we are using Timer1, its clock source is AUXCLK. AUXCLK is the input clock frequency (we are using a crystal). I can't find anywhere in the .cfg file where I set the input clock frequency, just the CPU clock frequency. BIOS could figure out the input clock frequency by looking at all the PLL0 registers (PREDIV, PLLM, POSTDIV) and working things backwards. However I remember from the BIOS5 days, that the .cfg file required you to enter the input frequency AND the final CPU frequency.
The crystal on our board is 19.2MHz. Therefore the Timer1 PRD12 register should be loaded with 19200 for a 1mS interrupt rate. However BIOS is loading Timer1 PRD12 with 24000, which results in 1.25mS. BIOS is acting like there is another field somewhere in the .cfg file that sets the input frequency, and it defaults to 24MHz.
How does BIOS figure out value to load into PRD12, and am I missing a setting somewhere?
Thanks, Dean