John Coppens wrote: > > On Tue, 21 Aug 2012 10:26:01 +1000 > "David Meiklejohn" wrote: >=20 > > Ah - silly me! Should check first and write later, not the other way > > around! There's no comparator on the 16F874... > > It seems that you're doing everything you need to, to disable > analogs. > > Sorry! >=20 > :-) Thanks anyway, David! >=20 > The fact is that in the actual chip, the program works, but not in the > simulator... Still no feedback from the bug list though. The reason I (mistakenly) pointed to comparators is that I've been caught b= y what looks like a similar issue - where the PIC's outputs are demonstrably changing on actual hardware (e.g. LEDs are blinking), but the simulator shows the same pins stuck on '0'. But when I've scratched my head over that, I've found that actually the simulator was correct - the pin was reading 0, despite working correctly as a digital output and the output being high. Not due to RWM, nor external pin loading, but because when configured as a comparator input it will read as '0', as per the data sheet= .. Anyway, good luck with it! David --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .