Cannot wake up PSoC 5 after it goes to sleep | Cypress Semiconductor
Cannot wake up PSoC 5 after it goes to sleep
Hi, hope I can get some help with this issue that has kept me all day trying to figure out what's wrong in my project.
I am not able to wake up my device once it goes to sleep. Attached is a workspace with 2 projects for CY8KIT-050.
Project "Test01" is based on AN72382 page 16 to "Change PICU Settings with Firmware".
Project "Test02" is based on AN77900 project "PSoC5_LowPower_Demo".
I am able to verify that low power wake up works fine in AN77900 project itself but after copying same code to "Test02", my device still doesn't wake up.
Is there anything else that needs to be set in the project to wake up a PSoC from an input signal ?
Following is the code from Test01 where I have 2 input pins: P6 and P15 (SW2 and SW3 on CY8KIT-050). Both inputs have resistive pull-ups.
LCD_PrintString("Low Power Test");
// Set P15 to PICU falling-edge trigger
// Set P6 to PICU falling-edge trigger
CyGlobalIntEnable; /* Enable global interrupts. */
// Sleep and wait for PICU interrupt
// Sleep again if not P6 PICU wakeup
LCD_PrintString("Going to sleep");
// Save clocks and enter sleep
// Wake up
// Stay awake for 2 seconds
} while (!(CY_GET_REG8(CYREG_PICU6_INTSTAT) & 0x02));
// Disable P6 PICU trigger
/* Place your application code here. */