Hi, On Sun, Dec 21, 2008 at 3:19 AM, solarwind wrote: > > Sigh... I coped and pasted the example DIRECT from microchip > themselves... Same error. Stop jumping to conclusions and consider > that the simulator *could* have a bug in it? > > Ran similar code in HI-TIDE. It's working perfectly. > Then, Hi-TIDE has a bug, probably is not simulating correctly. Look at the datasheet (of 16f690), page 79, figure 4-16, it shows that if analog input mode is true, you read always a 0 from PORTC bit 7. You repeatedly failed to listen to all the advices in this list. Daniel. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist