How can use sleep mode and wake up my 5LP chip?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

 Hello, I am trying to make a low power impedance meter by using 5LP chip.

   

Since my system's energy source is solar cell, I have to reduce the energy consumption as much as I can.

   

So I decided to use sleep mode.

   

My system should be in sleep mode until an external push button is pushed, then do some things(measuring impedance), and finally sleeps again.

   

I've searched many documents, but I could find that I have to use CyPmSleep() API.

   

Any help will be greatly appreciated.

   

Thanks.

0 Likes
5 Replies
Anonymous
Not applicable

 Oh, entering into sleep mode is quite easy.

   

Using below code will make my chip to sleep.

   

CyPmSaveClocks();

   

CyPmSleep(PM_SLEEP_TIME_NONE,PM_SLEEP_SRC_PICU);

   

Yet I still don't know how to wake up my chip by using external push button....

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

I guess you just use an ISR to be triggered by that button...

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

This might help (also take note of associated ap notes at bottom of page) -

   

 

   

    

   

          

   

http://www.cypress.com/?rID=64554      AN77900

   

 

   

 

   

Additionally here is a project for Z measurement system -

   

 

   

    

   

          http://www.cypress.com/?app=forum&id=2492&rID=76890

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Wow, waking up PSoC was really simple.

   

I just need to make an interrupt by GPIO.

   

Thank you hli & dana 🙂

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

Welcome to the wonderful world of PSoC 🙂

0 Likes