can interrupt preemtion in PSoC4100S

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

1, what's the priority of systick? in my system i using IMO's systick to update RTC, when there is other ISR in system, can the systick IRQ preempt other IRQ?

if can't occure preemption, the RTC being updated by systick is not accurate.

2, can PSoC4100s support interrupt preempt? how to use it.

thanks.

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Excerpt from Cortex™-M0 Devices Generic User Guide

When the processor is executing an exception handler, an

exception can preempt the exception handler if its priority is

higher than the priority of the exception being handled.

When one exception preempts another, the exceptions are called

nested exceptions.

You cannot "use" ths feature, it is inherant.

The SysTick interrupt priority is configurable.

Bob

View solution in original post

0 Likes
5 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Excerpt from Cortex™-M0 Devices Generic User Guide

When the processor is executing an exception handler, an

exception can preempt the exception handler if its priority is

higher than the priority of the exception being handled.

When one exception preempts another, the exceptions are called

nested exceptions.

You cannot "use" ths feature, it is inherant.

The SysTick interrupt priority is configurable.

Bob

0 Likes
Anonymous
Not applicable

in PSoC how to configure the priority of SysTick? i just can see GPIO or peripheral's interrrupts.

pastedImage_0.png

0 Likes
GeonaP_26
Moderator
Moderator
Moderator
250 solutions authored 100 solutions authored 50 solutions authored

Hello Qipan,

Please make use of CyIntSetPriority(CY_INT_SYSTICK_IRQN,1) to set the priority of CY_INT_SYSTICK_IRQN to 1. More details are available in PSoC 4 System Reference Guide

Best Regards,

Geona Mary

0 Likes
Anonymous
Not applicable

OK, it is soltuion for me.

Now i switch from systick to timer2(derived from wco, as ilo is not accurate), as to me the priority of timer2 is unknown, can i set the priority of timer2.

#define CY_INT_NMI_IRQN                  ( 2u)  /* Non Maskable Interrupt  */
#define CY_INT_HARD_FAULT_IRQN           ( 3u)  /* Hard Fault Interrupt    */
#define CY_INT_SVCALL_IRQN               (11u)  /* SV Call Interrupt       */
#define CY_INT_PEND_SV_IRQN              (14u)  /* Pend SV Interrupt       */
#define CY_INT_SYSTICK_IRQN              (15u)  /* System Tick Interrupt   */
0 Likes
GeonaP_26
Moderator
Moderator
Moderator
250 solutions authored 100 solutions authored 50 solutions authored

Hello Qipan,

Please make use of the Interrupts tab to change the priority of interrupt service routines (ISRs) placed in your design. This editor is part of the design wide resources file (cydwr).

Best Regards,

Geona Mary

0 Likes