View previous topic :: View next topic |
Author |
Message |
rikotech8
Joined: 10 Dec 2011 Posts: 376 Location: Sofiq,Bulgariq
|
Wake up |
Posted: Fri Dec 30, 2011 3:24 am |
|
|
Hello! I'm a amateur in writing CCS codes, but I try to advance.
Can anyone tell me in details, how could I put to sleep the PIC and then wake up the one? I would be thankful, if you give me any simple example code.
I hope that you understand me .
Excuse my poor english!
Thanx again! |
|
|
picnic
Joined: 09 Oct 2008 Posts: 15
|
|
Posted: Fri Dec 30, 2011 3:47 am |
|
|
CCS supply a sample program that demonstrates one way of doing this, look for EX_WAKEUP.C
What method are you hoping to use to wakeup? |
|
|
rikotech8
Joined: 10 Dec 2011 Posts: 376 Location: Sofiq,Bulgariq
|
re |
Posted: Fri Dec 30, 2011 6:36 am |
|
|
I have no any examples whit that name, or similar.
I would like to wake up the pic via input_statement_change. No matter which one. So I could affect it whit external switch, button or else.
thx! |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9243 Location: Greensville,Ontario
|
|
Posted: Fri Dec 30, 2011 6:57 am |
|
|
CCS puts all their example programs in the 'examples' folder.
If you press F11 while your project is open, the onscreen help menu opens. Look in the FAQ section to see about using Port B pins 7..4.
One of the reasons buying CCS is the ton of working examples they supply! |
|
|
|