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 configure timer in DM6437 using C code

Other Parts Discussed in Thread: CCSTUDIO

Somebody could tell me where I find documentation about how to configure timer for DM6437 DSP.

I found only the SPRU989 but in it do not have commands for use with C code. 

I would like to configure this for trigger a buffer read from decoder in evmdm6437.

Thank you.

  • If your goal is to have a function execute after an amount of time, or execute periodically, than the PRD module of BIOS is probably the easiest way to go as opposed to manually configuring timers. The APIs for controlling a PRD function (which is defined statically in your TCF file) can be found within section 2.22 of SPRU403 below. Essentially you can configure a PRD to run continuously or to run only once, unless PRD_start is called again, giving you essentially the same functionality as you would get with a timer and ISR without going to the trouble of configuring the timer and interrupt manually. http://focus.ti.com/lit/ug/spru403o/spru403o.pdf

    An example application that uses the PRD functionality of BIOS can be found within C:\CCStudio_v3.3\bios_5_31_08\packages\ti\bios\examples\basic\bigtime\evmDM6437 of your BIOS install.

    If you do still need to configure the timer manually than you can use the regiter level CSL from within C:\dvsdk_1_01_00_15\psp_1_00_02_00\pspdrivers\soc\dm6437\dsp\inc, unfortunately I do not know of any examples that configure the timer this way, but it should not be hard to set up considering the simplicity of the timer using the documentation in SPRU989 you mention.

  • I configured the PRD module and it is working well.

    I think that I wont take problem to use it.

    Thank you.