Microchip Technology ARD00330 データシート

ページ / 62
Communication Protocol
© 2011 Microchip Technology Inc.
DS51964A-page 60
4.1.1.4
“W” WRITE: WRITE STARTING AT SPECIFIED ADDRESS
Write the specified bytes.
Example: ‘W030000102030405060708090A0B0C0D0E0FX’.
Returns: ‘W030000102030405060708090A0B0C0D0E0FX’. 
 
FIGURE 4-1:
WRITE Command Protocol.
4.1.1.5
“R” READ: READ STARTING AT SPECIFIED ADDRESS
Example: ‘R03010X’ (read 16 bytes starting at address 30h). 
Returns: ‘R030000102030405060708090A0B0C0D0E0FX’.
FIGURE 4-2:
READ Command Protocol.
Note: If the number of data characters is odd, the last character (the one just prior 
to the ‘X’) will be ignored.
Command Byte
7 6 5 4 3 2 1 0
3 Address Bytes (ASCII)
7 6 5 4 3 2 1 0 7 6 5
4
3 2 1 0
7 6 5 4 3 2 1 0
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
 ASCII Data 
TABLE 4-1:
WRITE COMMAND EXAMPLES
Description
Command ASCII
Command Hex
WRITE of 255d to 
OFFSET_POWER_ACT 
Register
“W 170 00 F F X”
57 31 37 30 30 30 46 46 58
“X” (ASCII)
7 6 5 4 3 2 1 0
Note: For 16 bytes, there are 32 ASCII characters returned, or two characters per 
byte.
Command Byte
7 6 5 4 3 2 1 0
3 Address Bytes (ASCII)
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
7 6 5 4 3 2 1 0
7 6 5 4 3 2 1 0
# Bytes to Read (2 Bytes ASCII)
7 6 5 4 3 2 1 0
7 6 5 4 3 2 1 0
“X” (ASCII)
TABLE 4-2:
READ COMMAND EXAMPLES
DESCRIPTION
COMMAND ASCII
COMMAND HEX
READ on RAW_ENERGY_ACT Register
“R 0D4 06 X”
52 00 44 34 30 36 58