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.

cputimer1和cputimer0怎么嵌套使用?

Other Parts Discussed in Thread: CONTROLSUITE

cputimer0频率为10Khz,cputimer1频率为1khz,cputimer0中断中的程序执行时间为64us,剩下36us。想设置cputimer0的优先级比cputimer1的优先级高,当cputimer0中的程序执行完后,剩下的36us执行cputimer1中的程序,当100us到达时,cputimer0中断打断cputimer1中断,执行cputimer0中的程序,cputimer0执行完后,cputimer1继续执行,请问改怎么编写程序?