Note that the *port* registers aren't just like any register. They are depending on physical levels on the actual pins, reading from them are depending on analog functions beeing off and so on. *Some* problems with reading port registers or examing bits in port registers can be solved by reading them into regular "varables". And those problems are not rellevant with most other SFR's where there is no connection to the "outside"... Carl Denk wrote: > 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