Download QuickCAN User Manual

Transcript
Q-Proto System
www.qprotos.com
--------------------------------------------------------------------------------------------------------------------------------Byte 0
@
Byte 1
T
Byte 2
Command byte
Byte 3
Checksum
Command byte (refer to MCP2515 datasheet):
y
y
y
y
y
y
y
y
0:
1:
2:
3:
4:
5:
6:
7:
None.
TX0
TX1
TX0 & TX1
TX2
TX2 & TX0
TX2 & TX1
TX2, TX1, TX0
Response:
Byte 0
@
Byte 1
T
Byte 2
Checksum
Error response:
Byte 0
@
Byte 1
E
Byte 2
Error code
Byte 3
Checksum
Error code:
1
2
3
4
MCP2515 Error
Invalid QuickCAN command
Invalid Checksum
Invalid MCP2515 byte (byte 2)
9.8. Command M:
Description: Send BIT modify command
Format:
Byte 0
@
Byte 1
M
Byte 2
Address
Byte 3
Mask
Byte 4
Data
Byte 5
Checksum
Response:
Byte 0
@
Byte 1
M
Byte 2
Checksum
Error response:
Byte 0
@
Byte 1
E
Byte 2
Error code
Error code:
1
2
MCP2515 Error
Invalid QuickCAN command
- 16 -
Byte 3
Checksum