
38 Command Summary
6.9 Dallas One-Wire
9.1 Search for a
One-Wire Device
254 200 2
FE C8 02
■ ╚ SOT
Sends a search query to each of the up to 32 devices on the one wire bus. Any connected device will respond with
an identification packet.
Dallas One-Wire identification packet as shown below.
Table 32: Dallas One-Wire Packet Information
Another device packet will follow OR
Error Code (0 indicates success)
CRC8 address check (0 indicates validity)
9.1 Dallas One-Wire
Transaction
254 200 1
FE C8 01
■ ╚ STX
Flags Send Bits Receive Bits Data
Flags Send Bits Receive Bits Data
Flags Send Bits Receive Bits Data
Performs a single Dallas 1-Wire transaction. Consult your device documentation for information regarding device
specific protocols. If an error is encountered, a corresponding value will be returned by the device.
Flags for transaction, see below.
Number of bytes to be sent to the device.
Number of bytes expected to be received from the device.
Data to be transmitted LSB to MSB.
Table 33: Dallas One-Wire Flags
Read CRC8 from transaction
Reset Bus prior to transaction
Table 34: Dallas One-Wire Errors
Komentarze do niniejszej Instrukcji