I did not find .1B and .0B in the manual ( web site), but .3B, .HB , .LB work in a long variable.Hi,
Clip from Manual:
.HW,.LW,.3B,.4B,
High word (composed by bytes 3 and 2) and low word (composed by bytes 1 and 0) of a Long (Single) variable can be addressed by .HW and .LW extensions. Byte 0 can be addressed by .LB and byte 1 by .HB extensions. The third and the fourth byte of Long and Single variables can be addressed by .3B and .4B extensions. Individual bits can be addressed by .0, .1, ..., .3
A Long (Single) variable can be addressed by .HW and .LW
Clip end.
The .HW can be accessed by .HB and .LB or .3B and .2B
The .LW can be accessed by .HB and .LB or .1B and .0B
So a LONG variable can be seen as
.HW [ .HB & .LB] + .LW[ .HB & .LB] or .3B .2B .1B .0B
Example:
Dim along as LONG
Dim hword as WORD
Dim lword as WORD
Dim hbyte as BYTE
Dim lbyte as BYTE
Set:
along= 0x12345678
hword =0x1234
lword = 0x5678
hbyte of hword = 0x12
lbyte of hword = 0x34
hbyte of lword = 0x56
lbyte of lword = 0x78
So this is the location of the BYTE
hword = 0x1234
lword = 0x5678
.3B = 0x12
.2B = 0x34
.1B = 0x56
.0B = 0x78
Your post says: Pressure MSB, in the PIC D/S it uses HB LB and 3B,
How can that be correct.?
E
Study the above breakdown so that you understand the 'weighting' location of the bytes in LONG add WORD
There is an example where a byte is read from a long using .LB