cancel
Showing results for 
Search instead for 
Did you mean: 

Interrupt priority grouping on stm32f1xx series

amomum
Associate III
Posted on April 30, 2015 at 12:12

In programming manual (PM0056) in the description of ''Application interrupt and reset control register (SCB_AIRCR)'' two things are written:

1) Bits 10,9 and 8 defines PRIGROUP - they determine the split of group priority from subpriority. Later, in the table 45, all correct values of these bits are listed and they are:

0b011, 0b100, 0b101, 0b110 and 0b111.

2) Reset value of this register is said to be 0xFA05 0000 - so after reset PRIGROUP bits are all zero. And that value is not listed in the table, so it must be incorrect.

Please tell me, am I correct? And if I am, how exactly will subpriorities work after reset?

#stm32 #interrupts #preemption
2 REPLIES 2
Amel NASRI
ST Employee
Posted on May 14, 2015 at 18:32

Hi Roman,

After reset, the behavior will be the same as when 4 bits are used for group priority and 0 bit for subpriority. It means the equivalent of PRIGROUP = 011.

Best Regards

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

amomum
Associate III
Posted on May 15, 2015 at 10:55

Thanks, Myala!