cancel
Showing results for 
Search instead for 
Did you mean: 

Could not enter WKUP ISR

dongil.park
Associate II

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

0690X000006CIQ8QAO.png

Also doesn't work if I change priority.

There is no more additional setting in ISR example.

Thanks for help

Best Regards

1 ACCEPTED SOLUTION

Accepted Solutions
dongil.park
Associate II

Sorry... my mistake

I missed setting IRER

View solution in original post

1 REPLY 1
dongil.park
Associate II

Sorry... my mistake

I missed setting IRER