Jinx escribi=F3: > Another way is XOR. When two bit patterns are the same the result is 0 > = Carolina, take into consideration that Jinx sample is for a 18F device = and you will use a 16F. = You should catch the 'idea' rather than copy/paste the code literally. Good Luck -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist