3 dallas 1-wire transaction – Matrix Orbital VK204-25 Legacy User Manual

Page 38

Advertising
background image

Description

This command will allow you to begin communicating with the devices
on the 1-wire bus by returning a packet containing device information
for each 1-wire device on the bus in the form of:

Search Return Packet

Offset
(Bytes)

Offset
(Bytes)

Description

0

2

0x232A Preamble

2

1

0x8A Packet is 10 bytes long, an-

other address will follow

0x0A Packet is 10 bytes long, this

is the last address

3

1

0x31 - 1-Wire Packet Type

4

1

Error Code (0x00 for success)

5

8

1-Wire Address

13

1

CRC8 0x00 means the last address

was valid

Remembered

No

8.3

Dallas 1-Wire Transaction

Syntax

Hexadecimal

0xFE 0xC8 0x1 [flags] [SndBits] [RcvBits] [Data]

Decimal

254 200 1 [flags] [SndBits] [RcvBits] [Data]

Parameters

Parameter

Length

Description

flags

1

Flags to control optional
components of the transaction.

SndBits

1

The number of bits you will be
transmitting on the bus.

RcvBits

1

The number of bits you will be
reading on the bus.

Data

variable

Data to be transmitted, LSB to
MSB.

Matrix Orbital

VK204-25

34

Advertising