>I changed to LATx instructions for output, fixed the silly error with >the TRIS setting and it now works! Good stuff.. Just a thought if you are getting into the PIC18s - have you tried C18? I=20 like it very much and use it for most things, and if I really need to=20 optimise something I write a function in assembler and link it in. I don't= =20 know how your C is but maybe consider giving it a go at some point... Try to ignore the standard newbie bashing... :-) One thing I agree with Oli= n=20 on though is to move on from absolute mode to relocatable as soon as=20 possible, as it will just hold you back. =20 --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .