
Originally Posted by
cncmachineguy
Don't quote me on this just yet, but I think the 18's use a word for the data, so then it would make sense.
Oops, just quoted you .....
If that is true, then we should be good with the standard 32 bytes (if it is in bytes for 16F's) of data, then adding the 5 bytes for:
Code:
DATA_BUFF VAR BYTE[37] ' Start of receive buffer SAME ADDRESS AS COMMAND
COMMAND VAR DATA_BUFF[0] ' Data mapped in receive buffer SAME ADDRESS AS DATA_BYTE
DATA_COUNT1 VAR DATA_BUFF[1]
ADDRESS_L VAR DATA_BUFF[2]
ADDRESS_H VAR DATA_BUFF[3]
ADDRESS_U VAR DATA_BUFF[4]
PACKET_DATA VAR DATA_BUFF[5-36] 'THIS SHOULD BE AN ARRAY I THINK**************
would be 37 bytes for 12F and 16F devices, leaving more room for variables in case we want more PBP bells and whistles later. Then for the 18F's, they all use the 128 words (maybe).
Bookmarks