EasyManua.ls Logo

PNI RM3100 - MagI2 C Operation; Set the Cycle Count Registers

PNI RM3100
41 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
PNI Sensor Corporation Doc 1017252 r06
RM3100 & RM2100 Sensor Suite User Manual Page 27 of 41
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
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
5.1 Set the Cycle Count Registers (0x04 – 0x09)
The Cycle Count Registers establish the number of sensor oscillation cycles (cycle counts)
that will be counted for each sensor in both the forward and reverse bias directions during a
measurement sequence. Each sensor has its own cycle count value, and each can be
different. Increasing the cycle count value increases measurement gain and resolution.
Lowering the cycle count value reduces acquisition time, which increases maximum

Table of Contents