CT600/602/610 and CT300/310 BKC-DIP Product Specific Appendices
Version 2.00.09
Updated 12/15/06
Page 46 of 48
Note 7: READ ONLY PARAMETER indicating size of the specified serial
macro. Since the macro’s size can be greater than 255 bytes,
2 bytes are required to represent the size, MSB (most
significant byte) and LSB (least significant byte). To form
the size, perform the following calculation:
Size = (MSB Value * 256) + LSB Value
As an example, assume the MSB and LSB return values were 10h
and F3h respectively.
Size = (10h * 256) + F3h
Size = (16 * 256) + 243 = 4339 bytes
The other way to form the complete size is to concatenate the
MSB and the LSB hexadecimal characters. Using the above
example:
Size = 10F3h = 4339 bytes
Note 8: READ ONLY PARAMETER indicating remaining free space in the
serial macro area. Since the free space in the serial macro
area can be greater than 255 bytes, 2 bytes are required to
represent the size, MSB (most significant byte) and LSB (least
significant byte). To form the size, perform the following
calculation:
Size = (MSB Value * 256) + LSB Value
Or by concatenating the MSB and LSB hexadecimal characters
together. See Note 6 above for examples.
Commenti su questo manuale