On Tue, 21 Aug 2012 10:26:01 +1000 "David Meiklejohn" wrote: > 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! :-) Thanks anyway, David! The fact is that in the actual chip, the program works, but not in the simulator... Still no feedback from the bug list though. John --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .