Hello,
please allow following question regarding the usage of TSK_sleep in DSP/BIOS 5.42.01.09 context, on C6747 DSP.
DSP/BIOS call TSK_sleep simply doesn't block the task (returning practically immediately - it is, in less than a microsecond).
As far as I understood, AUXCLK is the relevant System Clock Domain for general purpose timer behind.
It is fed directly from reference clock source (20MHz in our case).
Here some TConf .tcf (containing no timer-relevant entries) details:
- TConf says there're two timers: 0, 1 (1 was default, changed to 0 - without an effect)
- Global settings/DSP Speed in MHz (CLKOUT): 400.0000 [MHz] ..it is the speed at which we let DSP run (SYSCLK1)
- Scheduling/CLK - Clock Manager: Use hi-resol. time, 1000 Microseconds/Int ..so, timer-interrupt on ms basis
- Scheduling/TSK - Task Manager: TSK tick driven by PRD (TSK manager enabled, of course)
I've made following checks (by means of DSP/BIOS CLK API) as follows:
- CLK_countspms(): 400000 ...returns the number of timer counter register increments or decrements per ms
- CLK_getprd(): 400000 ...returns the value set for the period register in the configuration
- Debugger:
PLL0: CKSTAT AUXEN = ON ...Clock Status Register (CKSTAT)
I use CGT 7.4.4, and DSP/BIOS 5.42.01.09. CCS 5.5. The DSP is a C6747.
Many thanks!
Mladen

