At 09:24 PM 4/9/03 -0500, Dale Botkin wrote: >I have a 12F629 app using GPIF to wake the processor up from SLEEP. I >have weak pullups turned on and IOCB set properly for the pins I want to >use for wake-up. I read PORTA, clear GPIF and go to sleep. One more >inputs are momentarily grounded to wake up the proc. Here's the sleep >code: > >So 99.9% of the time it works perfectly. Once in a blue moon, though, >seemingly at random, it fails to wake up when an input goes low. I have recollection of needing to place a NOP right after the sleep instruction. Don't remember the reason or which family had this requirement. But it might be worth investigating. dwayne -- Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax Celebrating 19 years of Engineering Innovation (1984 - 2003) .-. .-. .-. .-. .-. .-. .-. .-. .-. .- `-' `-' `-' `-' `-' `-' `-' `-' `-' 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#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body