LPC546xx SysTick Priority

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

LPC546xx SysTick Priority

Jump to solution
571 Views
ming_liao1
Contributor I

Hi,

In SDK examples, SysTick IRQ priority is set at 7 (Lowest priority), and the reset value of all NVIC IRQs' priority is 0 (Highest priority). If to keep the reset value of NVIC IRQs' priority and to change the SysTick IRQ priority from 7 to 0, then SysTick IRQ is in processing, and the SysTick IRQ won't be delay when a request is from any NVIC IRQ, right?

Thanks.

Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
544 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

You are right, if the priority of systick interrupt source is set up to zero, it is of the highest interrupt priority for configurable interrupt source, if the other interrupt sources are of non-zero priority in register, the systick interrupt will be handled immediately because the cortex-m4 supports nested interrupt.

You can use the function to set up the interrupt priority:

NVIC_SetPriority (SysTick_IRQn, 0x00);

For detailed inf, pls refer to the 2.3.2 Exception types in the User guide of cortex-M4.

Hope it can help you

BR

XiangJun Rong

View solution in original post

0 Kudos
Reply
1 Reply
545 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

You are right, if the priority of systick interrupt source is set up to zero, it is of the highest interrupt priority for configurable interrupt source, if the other interrupt sources are of non-zero priority in register, the systick interrupt will be handled immediately because the cortex-m4 supports nested interrupt.

You can use the function to set up the interrupt priority:

NVIC_SetPriority (SysTick_IRQn, 0x00);

For detailed inf, pls refer to the 2.3.2 Exception types in the User guide of cortex-M4.

Hope it can help you

BR

XiangJun Rong

0 Kudos
Reply