This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CPU Timer used by SYS/BIOS in 28x

Other Parts Discussed in Thread: SYSBIOS

Hi,

I am working on the 28335, using Sys/bios and was wondering how is choosen/configured the CPU Timer used by the OS.

Indeed, to reduce the component power consumption, I only want to turn on one CpuTimer.

- In the Data Manual, this is said that CPU Timer 2 is used.

- In this article, it is said that one of the 3 CPU timer is used (processors.wiki.ti.com/.../BIOS_for_the_28x

- In practice, OS is only running when CPU Timer 1 is activated.

Any idea?

Thanks

  • Hi,

    Each Timer module may do it differently, but for the C28 Timer the default SYSBIOS configuration uses Timer 1 (For Clock) and 2 (For Timestamp). If you don't want to use a separate timer for the Timestamp module, you could set a config parameter such that both Clock and Timestamp share 1 timer.

    var TimestampProvider = xdc.useModule('ti.sysbios.family.c28.TimerstampProvider');
    TimestampProvider.useClockTimer = true;

    By doing this, both module will default to using Timer 2.

    If you want to use Timer 1, you could explicity set the Clock.timerId:
    var Clock = xdc.useModule('ti.sysbios.knl.Clock');
    Clock.timerId = 1;

    The Timer used by Clock is like the heart beat of the OS, that's why you probably see that OS is only running when CPU Timer 1 is activated. You can change the timer used by Clock to any of the 3 timers.

    Judah

  • Thanks, that's now clear.