hi,
I don't know the meaning of SCB_SHPR2 register.
I search out SHPR2 in ARM manual-
but still not clear. for example what meaning if set SCB_SHPR2=0x80? what difference if i set it as SCB_SHPR2
=0x40?
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.
Fig 1
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------