2018-10-31 10:07 PM
Hello,
My target is SPC560B54L3 and using SPC5Studio with components
I saw SPC560BCxx IRQ example and followed into my application.
I would like to use PC11(WKUP5, WakeUp_IRQ_0)
and I checked WISR value is changing when I switch PC11 but ISR code doesn't run.
Here's my setting for WKUP
SPCSetPeripheralClockMode(69, SPC5_ME_PCTL_RUN(2) | SPC5_ME_PCTL_LP(2));
WKUP.WISR.R = 0xFFFFFFFFU; // clear interrupt
WKUP.WRER.R = 1 << 5; // Enable WKUP5(PC11)
WKUP.WIFEER.R = 1 << 5; // Falling edge event WKUP5
WKUP.WIFER.R = 1 << 5; // Enable glitch filter WKUP5
Here's ISR setting
Also doesn't work if I change priority.
There is no more additional setting in ISR example.
Thanks for help
Best Regards
Solved! Go to Solution.
2018-11-04 05:58 PM
2018-11-04 05:58 PM
Sorry... my mistake
I missed setting IRER