can you load the program into the mplab simulator and determine where the loop occurs, the page and bank bit? It maybe pointing to the WRONG bank or page. Better still use the ICD2 if you own one to do real-time debugging. John --- Shawn Wilton wrote: > Gave that a shot, still no go. I would not think > that the wait would really > matter. It seems like the chip would just not > return until the acq. had > been performed, or the result would just be invalid. > > Either way, I have added a 1 ms delay and still does > not return. > > > On 9/18/06, Tamas Rudnai > wrote: > > > > You do not wait 10us, Shawn... > > > > Tamas > > > > > -- > > Shawn Wilton (b9 Systems) > http://b9Systems.com <- New web page > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist