关于NVIC的分组

2019-07-20 22:33发布

在Cortex™-M3 Technical Reference Manual中的P166关于中断的分组如下:
PRIGROUP    Split of pre-emption priority from subpriority
0                  7.1 indicates seven bits of pre-emption priority, one bit of subpriority
1                  6.2 indicates six bits of pre-emption priority, two bits of subpriority
2                  5.3 indicates five bits of pre-emption priority, three bits of subpriority
3                  4.4 indicates four bits of pre-emption priority, four bits of subpriority
4                  3.5 indicates three bits of pre-emption priority, five bits of subpriority
5                  2.6 indicates two bits of pre-emption priority, six bits of subpriority
6                  1.7 indicates one bit of pre-emption priority, seven bits of subpriority
7                  0.8 indicates no pre-emption priority, eight bits of subpriority.

在PM0056 Programming manual STM32F10xxx/20xxx/21xxx/L1xxxx
Cortex®-M3 programming manual中的P135对中断的分组如下

为何两者的说法不统一,前者PRIGROUP范围0-7,后者PRIGROUP只列了3-7,当PRIGROUP为3时,前者的subpriority由4位表示(16个),后者的subpriority没有,如何解释呢?

友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
2条回答
fengc234
1楼-- · 2019-07-21 01:59
本帖最后由 fengc234 于 2019-1-25 10:38 编辑

C:UsersfengchengDesktop53f6a85922d90a388c109439cd66a34.png
零一三南宫南
2楼-- · 2019-07-21 04:05
 精彩回答 2  元偷偷看……

一周热门 更多>