Timer定时器的优先级问题
在applilet配置中,可以选择优先级。不过,只有4个级别,分别为 low level1, level2与high。这个不用多讲,如果多个中断同时发生,那么微处理器会首先响应优先级高的中断,但是问题这就来了。我使用timer定时器,我一次要用到5个,这5个timer定时器的响应顺序又是什么样子的呢? 至少我目前的需要,1个timer定时器用于通讯,这个timer定时器的需要优先响应;其余4个timer定时器可以不分前后。 版主,这个问题在设计时如何解决啊~~
如果软件设定优先级一样的话,则优先级高低由默认优先级来确定
G13手册第16章中断的表16-1上列出了默认优先级,0是最高的,序号越高,优先级越低,定时器同样的中断类型一般是0通道比1通道默认优先级高些
该表的备注里有提到:
The default priority determines the sequence of interrupts if two or more maskable interrupts occur simultaneously. Zero indicates the highest priority and 53 indicates the lowest priority.
G13手册第16章中断的表16-1上列出了默认优先级,0是最高的,序号越高,优先级越低,定时器同样的中断类型一般是0通道比1通道默认优先级高些
该表的备注里有提到:
The default priority determines the sequence of interrupts if two or more maskable interrupts occur simultaneously. Zero indicates the highest priority and 53 indicates the lowest priority.
共7条 1/1
1
跳转至
页