5 magi2c operation, Magi2c operation, Table 5-1: magi2c register map – PNI RM3100 Sensor Suite User Manual

Page 28

Advertising
background image

PNI Sensor Corporation

Doc 1017252 r03

RM3100 & RM2100 Sensor Suite User Manual

Page 27 of 45

5 MagI2C Operation

The primary functions of the MagI2C are:

Set the Cycle Count Registers if the default is not desired.
Initiate either a Single Measurement or Continuous Measurement.
Confirm New Data Ready.
Read the Measurement Results Registers.

Each of these steps is discussed in detail in the following sections.

Note: The MagI2C incorporates an Idle Mode to reduce power consumption. The device automatically
idles when not exchanging data or taking a measurement. The MagI2C starts in Idle Mode at power-up.

The MagI2C’s register map is given in Table 5-1. Register addresses are 7 bits. To Write to a
register, a ‘0’ followed by the 7-bit register number should be sent, followed by the register

value. To Read from a register, a ‘1’ followed by the 7-bit register number should be sent,

effectively adding 0x80 to the register number.

Table 5-1: MagI2C Register Map

Name

Register #

(Hex)

R/W

Default

(Hex)

Payload

Format

Description

POLL

00

RW

00

[7:0]

Polls for a Single Measurement

CMM

01

RW

00

[7:0]

Initiates Continuous Measurement Mode

CCX

04

– 05

RW

00C8

UInt16

Cycle Count Register

– X Axis

CCY

06

– 07

RW

00C8

UInt16

Cycle Count Register

– Y Axis

CCZ

08

– 09

RW

00C8

Uint16

Cycle Count Register

– Z Axis

TMRC

0B

RW

96

[7:0]

Sets Continuous Measurement Mode Data Rate

ALLX

0C

– 0E

RW

000000

Uint24

Alarm Lower Limit

– X Axis

AULX

0F

– 11

RW

000000

Uint24

Alarm Upper Limit

– X Axis

ALLY

12

– 14

RW

000000

Uint24

Alarm Lower Limit

– Y Axis

AULY

15

– 17

RW

000000

Uint24

Alarm Upper Limit

– Y Axis

ALLZ

18

– 1A

RW

000000

Uint24

Alarm Lower Limit

– Z Axis

AULZ

1B

– 1D

RW

000000

Uint24

Alarm Upper Limit

– Z Axis

ADLX

1E

– 1F

RW

0000

UInt16

Alarm Hysteresis Value

– X Axis

ADLY

20

– 21

RW

0000

UInt16

Alarm Hysteresis Value

– Y Axis

ADLZ

22

– 23

RW

0000

UInt16

Alarm Hysteresis Value

– Z Axis

MX

24

– 26

R

000000

Uint24

Measurement Results

– X Axis

MY

27

– 29

R

000000

Uint24

Measurement Results

– Y Axis

MZ

2A

– 2C

R

000000

Uint24

Measurement Results

– Z Axis

BIST

33

RW

00

[7:0]

Built-In Self Test

STATUS

34

R

00

[7:0]

Status of DRDY

HSHAKE

35

RW

1B

[7:0]

Handshake Register

REVID

36

R

--

Unit8

MagI2C Revision Identification

Advertising