beautypg.com

Matrix Orbital PK162-12 User Manual

Page 39

background image

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.

Description

This command will perform a single transaction on the 1-wire bus in this
order:

1.

Bus Reset.

2.

Transmit data onto the bus.

3.

Receive data from the bus.

The number of bits to be transmitted and read must be specified for this
command to be successful.

NOTE To determine what functions the device will respond to, consult the devices’ data
sheet.

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

1-Wire Error Codes

Code

Description

0x00

Success

0x01

Unknown 1-Wire Command

0x02

No devices on the bus

0x03

Fatal search error

Remembered

No

Matrix Orbital

PK162-12

35