- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I guess you just use an ISR to be triggered by that button...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wow, waking up PSoC was really simple.
I just need to make an interrupt by GPIO.
Thank you hli & dana 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome to the wonderful world of PSoC 🙂