> I feel like a dummy for not seeing that. I just noticed that you have pull-ups on the BCD lines, => the XOR is complementing an inverted input. So AND is not appropriate, unless you are incrementing a loop up to 0x0f (or 0 by adding 0xf0) -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist