I am trying to do an A/D conversion with the PIC16C74 in SLEEP mode. I find that the MPSIM indicates that the step directly after the "SLEEP" cammand will be processed infinitely ie the PC is not being incremented, and the rest of my programme will never be executed. I'm not sure wether the MPSIM has a bug or my software is at fault. I have set the GIE and PEIE bits in the INTCON reg as well as the ADIE bit in the PIE1 reg. The ADIF bit is also clear. If anyone can think of something that I might be doing wrong or can perhaps send me some sample code I'd really appreciate it. It is quite urgent as it is for my undergrad thesis. Thanks a stack for helping a student in need!! Chow for now Norman Fick