P30P-09A 51 User's manual
Single register writing (code 06h)
Example:
Writing the value 543 (0x021F) to the register 4001 (0x0FA1)
Request:
Table 30
Device
address
Function
Register address
Register value
CRC
checksum
B1
B0
B1
B0
01h
06h
0Fh
A1h
02h
1Fh
9B94h
Response:
Table 31
Device
address
Function
Register address
Register value
CRC
checksum
Hi
Lo
Hi
Lo
01h
06h
0Fh
A1h
02h
1Fh
9B94h
Writing to n-registers (code 10h)
Example:
Writing two registers starting with the register address 1DB0h (7600)
Writing the values 20, 200.
Request:
Table 32
Device
address
Function
Addres
s reg.Hi
Addre
ss
reg.Lo
No. of
registe
rs Hi
No. of
regist
ers Lo
Numb
er of
bytes
Value for the
register 1DB0
(7600)
Value for the
register 1DB1
(7601)
CRC checksum
B1
B0
B3
B2
B1
B0
B3
B2
01h
10h
1Dh
B0h
00h
02h
08h
41h A0h 00h
00h
43h
48h
00h
00h
C9E2h
Response:
Table 33
Device
address
Function
Register address
Number of registers
CRC
checksum
B1
B0
B1
B0
01h
10h
1Dh
B0h
00h
02h
4643h
Device identification report (code 11h)