Hello!
In the example released today we will show the user how to create a project that demonstrates the sleep functionality of the CY8C24x93 devices. In this example we will control the device’s power state using a push button and indicating sleep vs. active state using a blinking LED. This project is similar to our earlier example in project #1, but incorporates the sleep mode
For more information take a moment to review the earlier posts:
Forum Post Attachments:
At the bottom of this post we are including the following items:
- Example Project Zip File
- Project Images
User Modules Used:
The user can download the example project at the bottom of this post. The project uses the following list of Creator Components:
- PWM8SW
Firmware Description:
The main.c firmware is included in the example project. Please review the commented sections for more details.
In the example code the CY8C24x93 device uses a PWM8SW User Module to blink and LED at 1Hz. When the switch (SW2) is pressed, the device enters sleep mode and the LED stops blinking. If switch (SW2) is pressed again, then the device wakes up and the LED starts blinking again.
Hardware Connections:
There are no hardware configurations for this example. The PWM output is set to the pin (P0.5) that is connected to the LED and the switch (SW2) is connected to the device (P0.7).
<html><head><title>Jive SBS</title></head>
<body><font face="arial,helvetica,sans-serif">
<b>Error</b><br><font size="-1">
An general error occurred while processing your request.
</font></font></body></html>
Test Your Project:
Build the project and program the PSoC 1 device using the program button in PSoC Designer, Program>Program Part. Begin to push the SW2 button and see that the LED blinks and then stops blinking.
I hope this example can help you in your design.
Best,
Matt