175
(c) Data packet structure
1 byte is composed of 2 ASCII code bytes.
1 byte is composed of 2 ASCII code bytes.
The length of n words is equal to the one of 2n bytes.(n<=29)
So, there are 4n ASCII code bytes.
1 byte is composed of 2 ASCII code bytes.
Communication data formats are described below.
STX
“ : ” character
ADR
The address code is from 1 to 32. For example,the expression of number 18(hexadecimal 12h) is
divided into “1” and “2” in ASCII code. The address code 18 is expressed as 31h and 32h.
CMD and DATA
The DATA are varied according to different Command codes. To read 2 words which start address is
0100h from device number 1 as an example is described below.
Command code: 03h, read data
Command(host): Response(slave):