> 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 -- FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist