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.

How to start stop and modify timer load values for CC3200 dynamically

Other Parts Discussed in Thread: CC3200, SYSBIOS

Dear Community

I have added the timer module to my config file I dont want to start the timer when BIOS starts and I need to keep modifying the timer load values constantly

I have cc3200 launchpad running SDK1.2 and tirtos_cc32xx_2_16_01_14 

How do i start the timer , modify the timer count and stop it 

Unable to find any documentation ! is there a pdf or something which lists all the API's related to TI-RTOS 

Best Regards

Shashank J

  • Hi Shashank,

    The documentation should be found in the installation folder of TI-RTOS. By default, it should be in the following location:

    C:\ti\tirtos_cc32xx_2_16_01_14\docs

    Inside that folder you will have a Documentation Overview html file which will have links to all the documentation that you are looking for.

    For timers, look into kernel documentation (API and User guide). Also, verify whether you want to use clocks or timer modules for your needs.

    Regards,

    Michel

  • Thanks Michel,
    Shashank can you verify that this resolves your issue?
  • Hi ,

    There is no documentation about the timers 

    below is my config file script created using ti - rtos GUI

    My question is how do i start the timer from inside the program ? Did you get my problem ? Where is the API related to this ? Pls help

    var timer0Params = new Timer.Params();
    timer0Params.instance.name = "timer0_handle";
    timer0Params.period = 1000;
    timer0Params.startMode = xdc.module("ti.sysbios.interfaces.ITimer").StartMode_USER;
    timer0Params.runMode = xdc.module("ti.sysbios.interfaces.ITimer").RunMode_ONESHOT;
    Program.global.timer0_handle = Timer.create(3, "&Timer1_ISR", timer0Params);
    


    Regards

    Shashank

  • Hi Shashank,

    I recommend that you look at some examples of how to create and use your timer. There are some available in the SYS/BIOS (TI-RTOS kernel) user guide.

    If you open the TI-RTOS kernel User Guide, look in section 8.3.

    The user guide should be located in this folder:

    C:/ti/tirtos_cc32xx_2_16_01_14/products/bios_6_45_02_31/docs

    Open the Bios_User_Guide.pdf document.

    As for the API documentation, open this page in a browser: 

    C:/ti/tirtos_cc32xx_2_16_01_14/products/bios_6_45_02_31/docs/cdoc/index.html

    In the menu on the left, expand "all modules" and scroll until you see Timer (not ITimer).

    Expand Timer and you should then click on the CC32XX specific page:

    ti.sysbios.family.arm.cc32xx

    It should open the following page: C:/ti/tirtos_cc32xx_2_16_01_14/products/bios_6_45_02_31/docs/cdoc/ti/sysbios/family/arm/cc32xx/Timer.html

    Regards,

    Michel

  • Thanks a lot for your help