Hi,
That is correct, the most significant bit is to the left - just like it is when we type the same value in decimal: TRISB = 75 (same thing as TRISB = %01001011). See, the most significant digit is to the left. However, if you say TRISB = %10 (which I think is bad practice) then the left most bit is NOT bit 7, it's bit 1 because what you're really doing is setting the TRISB register to the value 2.
One little detail though, TRISB isn't really a command. It's a register in the PIC, the "command" in this case would be "=" sign meaning "assign" or "set" or something like that. You are assigning a value TO the register TRISB in the same way as you assign values to any other variable.
/Henrik.
Bookmarks