Matrix Orbital PK202-24-USB User Manual
Page 31

Table 15: 1-Wire Transaction
Offset
(Bytes)
Length
(Bytes)
Name
Description
0
1
Flags
The flags byte controls the optional
components of the transaction.
1
1
Send Bits
The number of bits that will be
transmitted onto the bus. The actual
bits to be transmitted are held in the
Send Data section.
2
1
Recieve Bits
The number of bits to read off the
bus after the data to be put on the
bus has been sent.
3
Variable
Send Data
The data to be transmitted onto the
bus. The data is transmitted MSB
to LSB in the order that they are re-
ceived.
Table 16: 1-Wire Flags
Bit
Description
7
6
Unused
5
(0 for future compatibility)
4
3
Add a CRC8 to the end of the transmitted data
2
(0 for future compatibility)
1
Assume last received byte is a CRC8 and validate it
0
Reset bus before transaction
The received data is sent back using the “Display return protocol”.
Table 17: 1-Wire Error Codes
Code
Description
0x00
Success
0x01
Unknown 1-Wire Command
0x02
No devices on the bus
0x03
Fatal search error
Matrix Orbital
PK202-24-USB
27