I believe I have resolved the issue. I changed the test_bit line to simply be while(adc_go == 1). I think the issue was that the test_bit macro was choking on the volatile bit redef I I was using. When I swapped out the adc_go for a 1 in the test_bit call, it seemed to work. Thx for the help guys. Hopefully this part is resolved. On 9/18/06, John Chung wrote: > > > > 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 (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