rad0 wrote: > > hello, > > I am wondering if it is possible to put a pic to sleep, and > still have it monitor something. > > What I want to do is build a little device that monitors a switch, > (monitoring a door), that turns on a light when contact is made > or lost, whichever uses less power. > > I want to power this with a coin-size battery... > > So, my question is, can you put the pic to sleep, and still have it > doing it's things...or, what do you do in this low power situation? > > have it wake itself up periodically and do its thing then go back to > sleep, or what? > Put your switch on a Interupt pin (RB0 or RB port change on some PIC's), it will wake it up. Quentin -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu