2 single-axis measurement (sam) operation, 1 sam spi activity sequence, Single-axis measurement (sam) operation – PNI RM3000-F Sensor Suite User Manual

Page 31: Sam spi activity sequence

Advertising
background image

PNI Sensor Corporation

Doc #1016102 r04

RM3000-f & RM2000-f Sensor Suite User Manual

Page 31

Start with SSN set HIGH, then set SSN to LOW.

Send 0x83 (this is the Write Command Byte to address the MSB for the X axis)

Send 0x00 (value for the MSB for the X axis)

Send 0x64 (value for the LSB for the X axis - pointer automatically increments)

Send 0x00 (value for the MSB for the Y axis - pointer automatically increments)

Send 0x64 (value for the LSB for the Y axis - pointer automatically increments)

Send 0x00 (value for the MSB for the Z axis - pointer automatically increments)

Send 0x64 (value for the LSB for the Z axis - pointer automatically increments)

Set SSN to HIGH

5.2 Single-Axis Measurement (SAM) Operation

The SAM Command Byte initiates a sensor measurement on a single sensor, and

automatically sets up the 3D MagIC to output the measured values on the MISO line. SAM

operation is less efficient than MAM operation, except when only one sensor is to be

measured.

5.2.1 SAM SPI Activity Sequence

The SPI activity sequence for SAM operation is given below. SPI timing is discussed in

Section 4.4. The Return Byte is 0x9A. Three (3) data bytes will be clocked out for a

single-axis measurement. The Command Byte is discussed below.

Figure 5-1: SPI Activity Sequence Diagram for SAM Operation

Advertising