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.

SYS Bios C6678 Timer one-shot re-use

Other Parts Discussed in Thread: TMS320C6678

I am working on a TMS320C6678 DSP using SYS/BIOS 6_35_01_29.

I have been successful in creating a one-shot timer using the 'Timer_create' function. However, I would like to be able to re-use this timer again for a different one-shot time. How can I do this?

I have tried using the 'Timer_delete' function and then using the 'Timer_create' function again, but it resulted in a mutex error. Which implies to me that it did not work. 

  • Dan,

    Assuming you set it for RunMode_ONESHOT and you have triggered it once and let it run to completion, then you should be able to use the Timer_setPeriod() function to change the delay time and then Timer_start() to trigger it to run again. I have not tried coding this up, yet, but it certainly makes sense to me from the BIOS User Guide.

    Please let us know if that does the job. If not, someone better at BIOS will join in and help.

    I am not so much help for doing things the right way. I usually hack in and use register CSL to take peripheral's address and write directly to the registers. But BIOS includes very straightforward APIs for doing most everything you need to do, so using those functions is the best way to start with.

    Regards,
    RandyP