meaning of SCB_SHPR2 register

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

meaning of SCB_SHPR2 register

632 Views
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 Kudos
1 Reply

448 Views
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 Kudos