Datasheet
a = data address (1 byte)
n = data number (1 byte)
Dx = x-th data byte (1 byte)
k = checksum (1 byte)
Slave Command Code Operation:
'c' = check answer
'w' = word reading answer (word = 2 byte)
'W' = word writing answer (word = 2 byte)
Possible slave frames (Responses):
Nok: l # s o k (l=5)
Check: l ! s c k (l=5)
Word read: l ! s w a n D11 D10 .. Dn1 Dn0 k (l=7+2*n)
Word write: l ! s W k (l=5)
5.3.3. Communications Examples
Example 1
PC request of reading 16 words from the structure UIF_R, starting from the second position
(UIF_R.ram_tab[1], .., UIF_R.ram_tab[16]):
Byte Code Meaning
0 07 Number of bytes in the frame
1 3F Master command string indicator ("?")
2 00 Station address (it is always 0 in our boards)
3 77 word reading operation "w"
4 41 data start address
(1(address in UIF_R.ram_tab) + 40h (offset to add for ram reading/writing))
5 10 number of data words (0x10, 16dec)
6 39 checksum
Board answer: