Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
I am sharing a project that shows a basic example of how we can use the SCB UART block to wake up the PSoC 4 from DeepSleep mode. I have seen multiple examples of using the I2C for waking up PSoC 4 from DeepSleep. The example with UART is a useful one that can be used in various projects.
Documents referred: PSoC 4 Serial Communication Block (SCB) Component Datasheet (Link)
Select an empty project
In the TopDesign add the UART component (Make sure it is SCB version of UART not UDB)
Mark the option “Enable wakeup from Deep Sleep Mode” in the configuration window option for the UART SCB block component
I have attached the screenshot of what configuration I have done for the UART
Also, add a Digital Output pin in the TopDesign which will be used in connecting an LED that will indicate in which mode PSoC 4 is currently in.
The next step of the project is the Pin Assignment
Attaching the screenshot of my pin assignment for the project attached. You may change it according to the board used by you
UART_Sleep(); // required to be used to use the feature of UART to wakeup the device from DeepSleep
The program is written such that the LED will remain off in the deep sleep mode but when the device enters the active mode it will blink 3 times after which the device enters the deep sleep mode again.
After configuring any terminal software(I have used Tera Term) you can connect to the PSoC kit with UART. After which entering any character which will make the device Wakeup from the DeepSleep mode. Thus any character entered in the terminal will lead to the LED getting blicked 3 times.