You've defined x as a word. That's 16 bits. You've assigned 8 bits of X. PortB is 8 bits too. X.Byte0 chooses the lower 8 bits of X and X.Byte1 chooses the higher 8 bits of X.
You've defined x as a word. That's 16 bits. You've assigned 8 bits of X. PortB is 8 bits too. X.Byte0 chooses the lower 8 bits of X and X.Byte1 chooses the higher 8 bits of X.
Bookmarks