Mission example: prepare and start a new mission, Step 1 – Rainbow Electronics DS2422 User Manual

Page 46

Advertising
background image

DS2422

46 of 48

STOP MISSION WITH PASSWORD

RST

PD

Select

STP

<PW/dummy>

FFh

FF loop

To verify success, read the General Status Register at address 0215h. If MIP is 0, the command was executed
successfully.

MISSION EXAMPLE: PREPARE AND START A NEW MISSION

Assumption: The previous mission has been ended by using the Stop Mission command. Passwords are not
enabled.

Starting a mission with the DS2422 requires three steps:

Step 1: clear the data of the previous mission
Step 2: write the setup data to register page 1
Step 3: start the mission

STEP 1

Clear the previous mission.

With only a single DS2422 connected to the bus master, the communication of step 1 looks like this:

MASTER MODE

DATA (LSB FIRST)

COMMENTS

TX

(Reset)

Reset pulse

RX

(Presence)

Presence pulse

TX

CCh

Issue “skip ROM” command

TX

96h

Issue “clear memory” command

TX

<8 FFh bytes>

Send dummy password

TX

FFh

Send dummy byte

TX

(Reset)

Reset pulse

RX

(Presence)

Presence pulse

Advertising