On Sun, Dec 7, 2008 at 8:45 PM, Bob Ammerman wrote: > Added step 1A to the following: > >>> So, you want to do the following: >>> >>> 1: Make sure you properly initialize your inputs as digital as opposed to >>> analog (often controlled by a port called ANSEL, but this varies amoung >>> several different PICs). > > 1A: You may also have to disable the built-in comparator(s) on some PICs. > >>> 2: Make sure your inputs are set up as inputs rather than outputs (this >>> is >>> the default condition, check out TRIS registers for this). >>> >>> 3: Make sure that interrupts are globally disabled (often a flag bit >>> called >>> GIE). This is the default condition. >>> >>> 4: Make sure the interrupt-on-change interrupt is enabled (another flag >>> bit). >>> >>> Now a SLEEP should be terminated when the input bit changes, but no >>> interrupt handler is needed. > > [notice the mixed "TOP POSTING" and "MIDDLE POSTING", hope nobody flames me > on this :-) > > > -- Bob Ammerman Ok, I tried it with step 1A added. Still no luck. I honestly tried and read the datasheet. Here's my code. I don't know what I'm doing wrong. http://pastebin.com/f286b7121 -- ..::[ solarwind ]::.. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist