Thanks Harold :) :) Copy/pasted and it worked fine. Eventually was going to get to segregating out the individual bits with AND/OR sort of action. At this point just am happy the hardware is working OK. Don't know why what I had doesn't work though, all the PORTB pins are pulled high, which I verified both with a DMM and logic probe. Guess, I'll have to dig into the ASM. Sure would seem that the port reports what it is in reading and the boolean would happen. Oh, I added two "0" to make the binary 8 bits. Thanks again. :) Harold Hallikainen wrote: >> but I want to check all bits! >> and this doesn't work >> >> if (PORTB != 0b11111111) >> >> > > I'd AND out the unused bits (RB7 and RB6). So, it'd be something like: > > if((PORTB & 0b111111) != 0b111111){ > > > Harold > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist