OK, I get that (though it took a minute or two to work out that | is a bitwise OR). So in PBP how do I set a nibble ? There isn't a variable type for nibbles - just bits, byte and words unless i've missed something. But I suppose it doesn't really matter if I use a whole byte, if the high nibble is all zeros the OR will just keep whatever it found in the Read PORTB and AND operation.
So is it "better" programming to do it this way rather than just four consecutive single bit operations ?


I'm leaving now!)



Bookmarks