Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > Wake up on IO from sleep

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Wake up on IO from sleep
Moderator:
RKRM

Post Reply
Follow this topic



Wake up on IO from sleep

kristen posted on 15 Mar 2012 7:41 PM PST
Member
10 Forum Posts

 Hi,

Can I please get a code example on how to place the PSoC3 into sleep mode for wake up by a signal on an IO pin.  

I can't find an appropriate second argument for CyPmSleep().  I don't want to wake up the device after a set amount of time, or by using any of the peripherals offered.  The datasheet says that IO is one of the available wake up sources for sleep mode.

Thanks.

 

 




Re: Wake up on IO from sleep

Gautam Das posted on 16 Mar 2012 10:01 PM PST
Cypress Employee
742 Forum Posts

Hi kristen,

 

In order to wake up the device from sleep due to a signal on IO, you need to use PICU (Port Interrupt Control Unit) as the source of wakeup.

For the input pin, set the interrupt mode to Rising or Falling edge according to your requirement.

Next, the parameters for CyPmSleep should be WakeupTime = PM_SLEEP_TIME_NONE 

WakeupSource = PM_SLEEP_SRC_PICU

 



Re: Wake up on IO from sleep

kristen posted on 16 Mar 2012 11:19 PM PST
Member
10 Forum Posts

 Thanks very much.  That has solved my problem.



Re: Wake up on IO from sleep

ZACHARIA posted on 25 Aug 2012 03:38 AM PST
Member
2 Forum Posts

How to define GPIO pin for Interrupt.

How to use more than one Interrupt for wake up (GPIO AND UART RX)



Re: Wake up on IO from sleep

danaaknight posted on 26 Aug 2012 02:59 AM PST
Top Contributor
1773 Forum Posts

Looks like you cannot wake from sleep using UART, you would have to be

in one of the active modes.

 

http://www.mymcu.ru/content/articles/Cypress/AN66083.pdf

 

Regards, Dana.



Re: Wake up on IO from sleep

danaaknight posted on 26 Aug 2012 03:33 AM PST
Top Contributor
1773 Forum Posts

One possibility to wake on UART would be to use flow control signaling,

eg RTS and CTS, that only works if you are in control of both host and

client to enforce a 5 wire RS232 connection. If you did use this RTS and

CTS would have to be signal conditioned, eg MAx232 like part, unless

of course you used proprietary solution on both ends.

 

Regards,m Dana.



Re: Wake up on IO from sleep

danaaknight posted on 26 Aug 2012 04:03 AM PST
Top Contributor
1773 Forum Posts

To effect an ISR for a pin just place pin on schematic, and on input tab for the

pin there is an option to enable an interrupt. Then attach an ISR component to

the pin, as shown on attachment.

 

Regards, Dana.



Re: Wake up on IO from sleep

ZACHARIA posted on 28 Aug 2012 09:01 PM PST
Member
2 Forum Posts

 Thanks to all



Re: Wake up on IO from sleep

henryzhu posted on 27 Feb 2013 08:10 PM PST

1 Forum Post

 I want to know how to hold the I/O status during sleep and hibernate mode? i create a project can enter sleep mode, but after use mcu wake, the ourput I/O can't hold the status. i test it in CY8CKIT-030 EVK. can you help to solve this issues! thanks!



Re: Wake up on IO from sleep

danaaknight posted on 28 Feb 2013 03:40 AM PST
Top Contributor
1773 Forum Posts

A point about control register driven I/O -

 

Regards, Dana.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20