[求助]HC08的低优先级中断能嵌套高优先级中断吗?

- UID
- 125196
- 性别
- 男
|
[求助]HC08的低优先级中断能嵌套高优先级中断吗?
我在用两块GZ60做CAN通讯,想在收到数据后点亮led并延时128*50个cycle。
具体做法是用PLL把BUS设置到8M,Timebase module中断周期设为128 cycle。然后在MSCAN08 Receive中断中调用delay函数,delay函数中会启用Timebase module中断,delay退出时再禁用Timebase module中断。
现在从led看,程序不是像设想的运行,但是我在另一个project中用ESCI Receive中断中调用Timebase module中断就没有问题。
MSCAN08 Receive的中断优先级是19,Timebase module是16。ESCI Receive是12
HC08的低优先级中断能嵌套高优先级中断吗?
MSCAN08 Receive中断处理中能调用Timebase module中断吗?
|
|
|
|
|
|

- UID
- 104673
- 性别
- 男
|
|
|
|
|
|
 
- UID
- 104380
- 性别
- 男
|
在中断服务程序中将中断允许(I)打开,就可实现中断嵌套。中断嵌套与级别无关。但一般不鼓励中断嵌套使用,这会占用大量的资源。 |
|
|
|
|
|