I´m want to know if is possible keep the microcontroller slept until I press a Button and how can I make it
Sorry for double posting, i did not mention that I'm using PSoC 1
Yes, that is possible, but not quite uncomplicated.
You should get acquainted to interrupt-handling in PSoC1 which has to be entered manually into boot.tpl, compiler handbook shows a #pragma for interrupt routines.
Look here http://www.cypress.com/?rID=56620 for sleep mode informations.
You are here in a PSoC1 forum, quite correct.
Some additional -
1) At bottom of Bob's post is a good ap note on sleep in PSOC 1 www1.cypress.com/
2) Use TRM, do a search on "sleep", there are several sections discussing sleep related issues.
3) Use www.psocdeveloper.com and this forum, there are a number of threads dealing with sleep issues.
This App. note is useful as well
thank you all answer are very clear, Now I will try to do my example
Thanks and regards!
You are always welcome!
A couple of precautions on GPIO interrupts here -