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.

TI-RTOS and Timer0

Other Parts Discussed in Thread: SYSBIOS

Hello.


I'm quite new to the RTOS, and I've been looking for info about using a specific PWM pin of the MSP432 Launchpad in order to use a resource of a Booster Pack.

As far as I understand, the timer that the PWM pin uses (timer 0), is also used by the OS for some setups, but I don't know how often the OS makes use of said timer.

My question is, is there any way to force the OS to use another timer, so I can use that timer freely? Or can I still share the timer with the OS?

Thanks

  • Hi C H,

    To change the timer used by the OS's system clock, you can use this syntax in the BIOS configuration (.cfg) file:

    /* ================ Clock configuration ================ */
    var Clock = xdc.useModule('ti.sysbios.knl.Clock');
    Clock.timerId = 1; /* change to use timer 1 */

    The details on the list of timers available are described in the comments in Timer.xdc in <ti-rtos installation directory>\products\bios_6_45_02_31\packages\ti\sysbios\family\arm\msp432 under 'Timer Mapping Tables'.

    The Clock->Module tab under the RTOS Object View in CCS can also show you which timer(s) are being used by the system's Clock objects, whereas the Timer->Basic tab would show you which timer ids are in use by the OS.

    Best regards,
    Vincent

  • There was a suggested answer and since there has been no active on this thread for more than a week, the suggested answer was marked as verify. Please feel free to select the "Reject Answer" button and reply with more details.