beautypg.com

2 single-axis measurement (sam) operation, 1 sam spi activity sequence, 2 sam command byte – PNI RM3000-F Evaluation Board User Manual

Page 15: Single-axis measurement (sam) operation, Sam spi activity sequence, Sam command byte

background image

PNI Sensor Corporation

Doc #1016391 r04

RM3000-f Evaluation Board User Manual

Page 14

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 RM3000-f Evaluation Board 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.3. 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

5.2.2 SAM Command Byte

The SAM Command Byte is given below, and the definitions for AS1 and AS0 follow in

Table 5-2:

Bit #

7

6

5

4

3

2

1

0

Value

0

0

0

0

0

0

AS1 AS0