Mam spi activity sequence, Mam command byte, 1 mam spi activity sequence – PNI RM3000 Evaluation Board User Manual
Page 17: 2 mam command byte

RM3000 Evaluation Board User Manual
– June 2011
Page 17 of 19
5.3.1 MAM SPI Activity Sequence
The SPI activity sequence is given below for MAM operation. SPI timing is discussed in
Section 4.3. The Return Byte is 9A
H
. The number of data bytes will be determined by
the number of axes that are to be measured. Each axis is comprised of 3 bytes of data, so
for a 3 axis measurement 9 total bytes would be clocked out to receive all the data. The
Command Byte and Axes Select Byte are discussed below.
Figure 5-2: SPI Activity Sequence Diagram for MAM Operation
5.3.2 MAM Command Byte
The MAM Command Byte either initiates a sensor measurement or initiates placing the
measurement results on the MISO line for the host to read. The MAM Command Byte is
82
H
to initiate a sensor measurement and is C9
H
to retrieve the data.
NOTE: Measurement results are stored in registers within the 3D MagIC. If SCLK continues to
run after the appropriate number of data bytes for the defined number of axes to be measured,
then the information on the MISO line will have little meaning. SCLK should be stopped once the
measurements are clocked out.