This is a very naive question, but I can not find an answer which I fully understand and can feel confident about, when writing my first piece of code. This is despite Searching through the Forum. It concerns bits, bytes, words and variables.
A word consists of two 8bit bytes. The manual calls these b1 (upper, most significant 8 bits) and b0 (lower, least significant 8 bits), of word w0. Looking through several programs, bytes are referred to as b?, and are used as counters and for general control and conditional stepping. A very often used one, is b0. The manual for the 28X1 I am using for my first programming effort says it has 31 individual bits, called bit?, which can be set and read.
My question: If I set or reset bit1 (the second of the available 32 individual bits), does this change the value of the second least significant bit of byte called b0, or the second least significant bit of the lower byte of word w0?
As part of trying to understand the memory structure, I am also puzzled by the entry for the 28X1 on Page 9 of Section 2 of the manual. Referring to the 28X1, it says it has words w0-13 (28 8-bit bytes), bytes b0-27 (28 bytes), bits0-31 (4 bytes), giving 60 bytes in total. But, the first column says it has 28 bytes.
Is this part of the same question above, or am I fundamentally missing something?
A references to an answer about this in past Forum answers would be welcome as a less effort answer.
Thank you.
A word consists of two 8bit bytes. The manual calls these b1 (upper, most significant 8 bits) and b0 (lower, least significant 8 bits), of word w0. Looking through several programs, bytes are referred to as b?, and are used as counters and for general control and conditional stepping. A very often used one, is b0. The manual for the 28X1 I am using for my first programming effort says it has 31 individual bits, called bit?, which can be set and read.
My question: If I set or reset bit1 (the second of the available 32 individual bits), does this change the value of the second least significant bit of byte called b0, or the second least significant bit of the lower byte of word w0?
As part of trying to understand the memory structure, I am also puzzled by the entry for the 28X1 on Page 9 of Section 2 of the manual. Referring to the 28X1, it says it has words w0-13 (28 8-bit bytes), bytes b0-27 (28 bytes), bits0-31 (4 bytes), giving 60 bytes in total. But, the first column says it has 28 bytes.
Is this part of the same question above, or am I fundamentally missing something?
A references to an answer about this in past Forum answers would be welcome as a less effort answer.
Thank you.