beautypg.com

Access th [a1h, Access tl [a2h – Rainbow Electronics DS1629 User Manual

Page 16

background image

DS1629

16 of 22

102299

Access TH [A1h]

If R/

W

is "0", this command writes to the TH register. After issuing this command, the next two bytes

written to the DS1629, in the format described for thermostat set-points, will set the high temperature
threshold for operation of the ALRM output and TAF/TAL flags. If R/

W

is "1", the value stored in this

register is read back.

Access TL [A2h]

If R/

W

is "0", this command writes to the TL register. After issuing this command, the next two bytes

written to the DS1629, in the format described for thermostat set-points, will set the high temperature
threshold for operation of the ALRM output and TAF flag. If R/

W

is "1", the value stored in this register

is read back.

Access Memory [17h]

This command instructs the DS1629 to access the user-SRAM array, starting with the specified byte
address. Read/write depends upon the state of the R/

W

in the 2-wire control byte. The user can read/write

all 32 bytes in succession within one command sequence, with the pointer automatically wrapping from
1Fh to 00h; if the master attempts to read/write more than 32 bytes, the address pointer will wrap to the
1

st

byte after the 32

nd

is read/written and ACK’d by the master/slave. Refer to Figure 6 for command

protocol.

DS1629 Command Set Table 8

INSTRUCTION

PROTOCOL

DESCRIPTION

2-wire bus data after

issuing protocol

NOTES

CONFIGURATION / MEMORY COMMANDS

Writes to 8-bit configuration register

1 data byte

Access
Configuration

ACh

Reads from configuration/status
register

1 or 2 data bytes

1, 5

Writes to SRAM array

Starting Address+N-

bytes

Access
Memory

17h

Read from SRAM array

Starting Address+N-

bytes

1, 2

THERMOMETER COMMANDS

Start
Convert T

EEh

Initiates temperature conversion(s)

Idle

3

Stop
Convert T

22h

Terminates continuous conversions

Idle

3

Read
Temperature

AAh

Reads Temperature Register

Read 1 or 2 data bytes

4

Read Counter

A8h

Reads COUNT_REMAIN

Read 1 data byte

Read Slope

A9h

Reads COUNT_PER_C

Read 1 data byte

Access TH

A1h

Writes to/Reads from TH register

Write 2 data bytes

Read 1 or 2 data bytes

1, 5

Access TL

A2h

Writes to/Reads from TL register

Write 2 data bytes

Read 1 or 2 data bytes

1, 5

CLOCK COMMANDS

Access Clock

C0h

Sets/Reads Clock

Starting Address + N-

bytes

1, 2

Access Clock
Alarm

C7h

Sets/
Reads Clock Alarm

Starting Address + N-

bytes

1, 2