At 12:07 PM 6/11/02 +0100, Jonathan Starr wrote: >Damn, I didn't think of the fact that it will use power even when the main >core is asleep, that won't do. >I have revised the design, it will only sample the ADC when it needs to >alarm, as the ADC value only affects the alarm tone there is no point me >ever doing otherwise...whoops. >As for the wake-on-change I haven't ever used it before so I guess I did >mean RB1 :-) Actually, you need to use either RB0 (INTF) or any of RB4 thru RB7 (RBIF) for wake up. RB1 won't do it! dwayne -- Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax Celebrating 18 years of Engineering Innovation (1984 - 2002) .-. .-. .-. .-. .-. .-. .-. .-. .-. .- `-' `-' `-' `-' `-' `-' `-' `-' `-' Do NOT send unsolicited commercial email to this email address. This message neither grants consent to receive unsolicited commercial email nor is intended to solicit commercial email. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads