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.

Create a shared timer on the 6678

Hi,

  I am trying to create a shared timer for the c6678.  I know that sys/bios uses main timer 0 from reading other posts.  I also found on other posts to use shared timers 8-15 but I haven't found a post that explains how to do just that.  I have the timer test code but it looks like it creates a timer on timer 0 which is not what I need.

Thanks,

Will

  • Hi Will,

    I believe you're using SYS/BIOS 6.x, correct?

    The Timer module allows you to specify a timer ID for the create() call.  For example, in your *.cfg file the following would create a timer which uses timer ID 3:

      // Create the timer. // This example uses timer id 3. // The timer interrupt handler must be set to 'Clock.tick'. Timer.create(3, Clock.tick, timerParams);

    You can use the timer mapping tables to figure out which timer ID corresponds to which timer. These tables are found in the SYS/BIOS documentation for the Timer module.

    Steve