meaning of SCB_SHPR2 register

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

meaning of SCB_SHPR2 register

673件の閲覧回数
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 返信

489件の閲覧回数
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 件の賞賛