At 15:16 30/06/97 -0600, Matt Calder wrote: > The other day someone mentioned the automatic shutdown feature of >most modern calculators. My question is can I do this on a PIC? I have a >project that will be on for about 1 minute two or three times a week and I >would like it to turn off during the down times. In a semi-dream state I >imagined something with a relay and a mercury switch but when I actually >tried to write it down it didn't really work. Any help is appreciated. AFAIK, setting it to sleep is the easy part -- just put the command SLEEP in your code. (You want to make sure that all your inputs & outputs are in a proper state, in order to really get into a low power state...) How you get it to wake up is more dependent on your application: is it a fixed time (which precision needed?) or is it some external action (which, and how do you handle it?), and which PIC do you use (they have different features regarding wake up from sleep)? (I'm not at all experient here, I have just browsed the data sheets while picking the PIC for my first PIC project... :-) ------------------------------------- Gerhard Fiedler S‹o Paulo - Brazil