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.

AM5718: DSP核定时器不稳定

Part Number: AM5718
Other Parts Discussed in Thread: SYSBIOS

AM5718的DSP核同时使用Timer5和Timer6时,定时器6中断不稳定。

情况如下:

使用Timer6回调函数时,回调函数进入的频率不是设置的频率,但偶尔是正确的。

使用Timer5是正确的。

Timer6回调函数调用Clock_Tick,在任务中每秒打印一次Clock_getTicks(),而从某一时刻开始,定时器触发频率就不稳定了,以下是我调试定时器的过程:

[ 28.000] led 28000...
[ 29.000] led 29000...
[ 30.000] led 30000...
[ 31.000] led 31000...
[ 32.000] led 32000...
[ 33.000] led 33000...
[ 34.000] led 34000...
[ 35.000] led 35000...
[ 36.000] led 36000...
[ 37.000] led 37000...
[ 38.000] led 38000...
[ 39.000] led 39000...
[ 40.000] led 40000...
[ 41.000] led 41000...
[ 42.000] led 42000...
[ 43.000] led 43000...
[ 44.003] led 44003...
[ 45.005] led 45005...
[ 46.007] led 46007...
[ 47.009] led 47009...
[ 48.011] led 48011...
[ 49.013] led 49013...
[ 50.015] led 50015...
[ 51.017] led 51017...
[ 52.019] led 52019...
[ 53.021] led 53021...
[ 54.023] led 54023...
[ 55.025] led 55025...
[ 56.027] led 56027...
[ 57.029] led 57029...
[ 58.031] led 58031...
[ 59.033] led 59033...
[ 60.035] led 60035...

在论坛上已参考:

http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios/6_46_04_53/exports/bios_6_46_04_53/docs/cdoc/ti/sysbios/family/shared/vayu/TimerSupport.html#avail.Mask

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/719876/rtos-am5728-timer-interrupt-instability/2662506?tisearch=e2e-sitesearch&keymatch=Timer%20instability#2662506

http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios/6_40_01_15/exports/bios_6_40_01_15/docs/cdoc/ti/sysbios/timers/dmtimer/doc-files/TimerTables.html

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/634017/rtos-am5728-timer-control-from-dsp

问题:

1、怎样使定时器稳定触发?

2、AM5718可以使用几个定时器?