cancel
Showing results for 
Search instead for 
Did you mean: 

Interupt priorities

philipgillespie
Associate II
Posted on June 28, 2011 at 09:38

Hi All,

Can anyone explain the difference between the prem and sub interupt priorities.  For example what TIMER_1_IRQ_PREM_PRI and TIMER_1_IRQ_SUB_PRI.

--

Thanks

#stm32-c-embedded
4 REPLIES 4
ColdWeather
Senior
Posted on June 28, 2011 at 12:19

Pre-emptive: an interrupt source having higher pre-emptive priority would interrupt the service routine being processing a previously occured interrupt with a lower pre-priority. The higher interrupt having been processed, the CPU returns to the interrupted service routine of the lower priority.

Sub: should two or more interrupts having the same pre-emptive priority occure simultaneously (or be pending), an interrupt with the higher sub-priority would be serviced first, and they cannot interrupt each other.

Remember: the lower the value of the priority, the higher it is; the highest (user) priority is '0', the lowest - '15'.

mehmet.karakaya
Associate III
Posted on June 28, 2011 at 21:37

https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/TIM2 encoder mode - please help !&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=554

if the link fails to open

search for mehmet karakaya

and click on the link for this title

TIM2 encoder mode - please help

and look clive's answer

jzarnow2
Associate II
Posted on June 29, 2011 at 16:58

@@  ColdWeather & Mehmet

Guys,

Would you pls use ''Enter'' key on your keyboards more often?

Reading such looooooong text lines is really annoying...

Regards

Jacek

ColdWeather
Senior
Posted on June 29, 2011 at 22:23

Hi, Jacek!

Got

50'' PC

monitor?

Make your

window

narrower ;).