The isr_ButtonPress is not needed and will probably not work during sleep mode. The interrupt will be generated by the PICU that is directly connected to the ports.
In the example file is a do-while loop that stays active as long as there are any button interrupts pending. This you do not do in your code.
Thanks for the reply Bob. I don't think I see the do-while loop you are referring to.
Here is the segment of code in the example that I tried to emulate. It is inside a case statment in the function GoToLowPower:
case SLEEPPICU : /* 0x21 - Sleep - PICU */
/* Display mode. */
/* Start the button interrupt. */
/* Prepare for Sleep and enter it. */
/* The PSoC wakes up here. Clear wakeup interrupts. */
/* Stop the button interrupt. */
This part uses an isr and there is no loop to check for pin interrupts. Which section were you referring to?
You did not remove your isr_ButtonPress component.
Ah, I made a mistake, the do-while loop was for the alternate case.
Ah yes, I see the do-while in the alternate case.
As for the isr_ButtonPress, it is used in the example code and that's why I put it in mine. If I comment out the lines for starting and stopping the isr_ButtonPress in the example code, the PSoC does not wake up.