beautypg.com

4 general purpose output, 5 dallas one-wire – Matrix Orbital LK404-25 User Manual

Page 23

background image

19

6.4 General Purpose Output

4.1 General Purpose
Output On

Dec
Hex
ASCII

254 87

FE 57

■ W

Number
Number
Number

v5.0

Turns the specified GPO on, sourcing current from an output of five volts.

Number

Byte

GPO to be turned on.


4.2 General Purpose
Output Off

Dec
Hex
ASCII

254 86

FE 56

■ V

Number
Number
Number

v5.0

Turns the specified GPO off, sinking current to an output of zero volts.

Number

Byte

GPO to be turned off.


4.3 Set Start Up
GPO State

Dec
Hex
ASCII

254 195

FE C3

■ ├

Number State
Number State
Number State

v5.0

Sets and saves the start up state of the specified GPO in non volatile memory. Changes will be seen on start up.

Number

Byte

GPO to be controlled.

State

Byte

1 for on or 0 for off.


6.5 Dallas One-Wire

5.1 Search for a
One-Wire Device

Dec
Hex
ASCII

254 200 2

FE C8 02

■ ╚

SOT

v5.0

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.

Response

Bytes [14]

Dallas One-Wire identification packet as shown below.

Table 13: Dallas One-Wire Packet Information

Offset Length Value

Description

0

2

9002

Preamble

2

1

138

Another device packet will follow

OR

10

Last device packet

3

1

49

Packet Type

4

1

0

Error Code (0 indicates success)

5

8

Device Address

13

1

0

CRC8 address check (0 indicates validity)