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

PSoC™ 4

urchc_1533771
Level 5
5 likes given First like received First like given
Level 5

Hi !

I have  PWM that make me 1 sec interrupt and wake up pushbutton. see pic

I see that after I use  push button interrupt PWM  stopped to make 1 sec interrupts.

Why it's happened ? How prevent it ? Capture.JPG

0 Likes
1 Solution
RyanZhao
Moderator
Moderator First comment on KBA 500 replies posted 250 solutions authored
Moderator

Hi Uri,

0 is the highest priority; and 3, the lowest priority.

High priority interrupt can interrupt in low priority interrupt handler.

See AN90799 PSoC4 Interrupt.

http://www.cypress.com/file/127121/download

Generally, recommend to use same priority for all interrupts. Because during a low priority interrupt handler execution, if another high priority interrupt nested, it might use same peripherals with the low priority interrupt, and generate some 'dirty data' for the low priority interrupt handler. This is unexpected.

Thanks,

Ryan

View solution in original post

16 Replies