meaning of SCB_SHPR2 register

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

meaning of SCB_SHPR2 register

841 次查看
hotashu
Contributor III

hi,

I don't know the meaning of SCB_SHPR2 register.

I search out SHPR2 in ARM manual-

pastedImage_0.png

but still not clear. for example what meaning if set SCB_SHPR2=0x80?  what difference if i set it as SCB_SHPR2
=0x40?

0 项奖励
回复
1 回复

657 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Hotas,

The group of SCB_SHPRn registers is used to set the pripority level registers for system exceptions. On the Cortex-M0 processor, only the three OS-related system exceptions have programmable priority levels. Three inculde SVC, PendSV, and SysTick (Fig 1).

About your question, 0x40 and 0x80 is same, as apart from the [32-24] bits area are unimplemented in the SCB_SHPR2 register.

2015-10-29_13-45-11.jpg

                                                                              Fig 1


Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复