Oh, entering into sleep mode is quite easy.
Using below code will make my chip to sleep.
Yet I still don't know how to wake up my chip by using external push button....
I guess you just use an ISR to be triggered by that button...
This might help (also take note of associated ap notes at bottom of page) -
Additionally here is a project for Z measurement system -
Wow, waking up PSoC was really simple.
I just need to make an interrupt by GPIO.
Thank you hli & dana :)
Welcome to the wonderful world of PSoC :)