Let's start with an appnote:
If you get to page 3, you'll see it says any unmasked port interrupt. So if you only want to wake up on a specific pin, you basically have to mask the interrupt for the rest.
Now you can do that in the digital input component under pins + input tabs if your PICU configuration is static. If you need to change it dynamically, then you can use the registers you reference above.
IIRC, x referrers to the port, where as y referrers to the pin. The value can be disabled, rising, falling or both. That said it is better to use the pin API and set interrupt mode.
Thank you for your reply.
I understand the content.
It was confirmed that the above works with all GPIO interrupts.
I would like to wake up only for certain prot 6, falling edge onfy.
However, it does not react in the above description.
What is set in CyPmHibernateEX API?
I don't think you can pass the setting of the PICU to CyPmHibernateEx.
Here's an example of something working with the 059 board (I had to use port 2 instead of port 6)
That should be enough to get you started.
Workspace36.cywrk.Archive01.zip 483.7 K
Thank you for attaching a simple project.
I understood how to set specific pins thanks to reasonable projects.
I misunderstood the meaning of the HibernateEx API.