Skip to main content
philipgillespie
Associate
June 28, 2011
Question

Interupt priorities

  • June 28, 2011
  • 4 replies
  • 945 views
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
    This topic has been closed for replies.

    4 replies

    ColdWeather
    Senior
    June 28, 2011
    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
    June 28, 2011
    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
    Visitor II
    June 29, 2011
    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
    June 29, 2011
    Posted on June 29, 2011 at 22:23

    Hi, Jacek!

    Got

    50'' PC

    monitor?

    Make your

    window

    narrower ;).