Thanks, understand what you are saying, and it's easy to do, but, why the work around. PORTB is only an address of a register, and I haven't seen anything that says "variable = register" is required. If that's the case, then all registers must also be read to a variable to ensure correct operation. ~) Barry Gershenfeld wrote: > Nothing can beat reading PORTB into a variable and examining it. It > certainly beats "assuming" :) > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist