On Sat, Dec 6, 2008 at 11:28 AM, Byron Jeff wrote: > The PIC is set up so that if interrupts are disabled and an interruptable > event occurs during SLEEP, then the PIC wakes up and resumes right after > the SLEEP. So it isn't an interrupt, because an interrupt service routine > isn't called, but it serves the purpose of putting the processor to SLEEP > and making sure that it wakes up at the appropriate time. > > You snipped the relevant part of the code above where the next step was to > put the processor to sleep. > > BAJ So all I have to do is disable interrupts and put it to sleep and it will wake up when an input port changes? -- ..::[ solarwind ]::.. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist