Using TMS320F28335 with SYS/BIOS 6.34.2.18 and an external 30MHz crystal.
I have an application that has been running well for the last year. the DSP is clocked at 60MHz (PLLCR[DIV]=4, PLLSTS[DIVSEL]=2).
I am now trying to institute a low power state by reclocking to 15MHz.
I update the PLL to PLLCR[DIV]=1, PLLSTS[DIVSEL]=2. This seems to take fine.
I then go to update the SYS/BIOS clock using:
BIOS_getCpuFreq(&cpuFreq);
cpuFreq.lo = 15000000;
BIOS_setCpuFreq(&cpuFreq);
Uint16 key;
key = Hwi_disable();
Clock_tickStop();
Clock_tickReconfig();
Clock_tickStart();
Hwi_restore(key);
I can then do a "BIOS_getCpuFreq(&cpuFreq);" and it returns 15MHz as the frequency.
I have a SYS/BIOS clock that fires once every half second, which has worked fine for the last year.
When I restart this clock with SYS/BIOS now at the new lower frequency, it fires roughly once every five seconds.
Am I missing some steps in the reclocking or reconfiguring of the clock?
Thanks,
Bruce