beautypg.com

Ktakeusercalsample (frame id 31, Kfactoryaccelcoeff (frame id 36, Kfactoryaccelcoeffdone (frame id 37 – PNI TCM User Manual

Page 62: Ksetsyncmode (frame id 46, 31 ktakeusercalsample (frame id 31, 32 kfactoryaccelcoeff (frame id 36, 33 kfactoryaccelcoeffdone (frame id 37, 34 ksetsyncmode (frame id 46

background image

PNI Sensor Corporation

DOC#1014688 r06

TCM User Manual

– July 2013

Page 57

7.3.31 kTakeUserCalSample (frame ID 31

d

)

This frame commands the TCM to take a sample during user calibration. The frame has

no payload.

7.3.32 kFactoryAccelCoeff (frame ID 36

d

)

For the current designated kAccelCoeffSet, this frame clears the accelerometer

calibration coefficients and loads the original factory-generated coefficients. The frame

has no payload. This frame must be followed by the kSave frame to save the change in

non-volatile memory.

7.3.33 kFactoryAccelCoeffDone (frame ID 37

d

)

This frame is the response to kFactoryAccelCoeff frame. The frame has no payload.

7.3.34 kSetSyncMode (frame ID 46

d

)

When the TCM operates in Sync Mode the module will stay in Sleep Mode until the
user’s system sends a trigger to report data. When so triggered, the TCM will wake up,
report data once, then return to Sleep Mode. One application of this is to reduce power

consumption. Another use of the Sync Mode is to trigger a reading during an interval

when local magnetic sources are well understood. For instance, if a system has

considerable magnetic noise due to nearby motors, the Synch Mode can be used to take

measurements when the motors are turned off

Note: When Sync Mode is selected, the TCM will acknowledge the change in mode and
immediately trigger the Sync Mode and send a data frame.

This frame allows the module to be placed in Sync Mode. The payload contains the

Mode ID requested, as given below.

Mode ID

UInt8

Payload

If the module is in Sync Mode and the user desires to switch back to Normal Mode, an
“FFh” string first must be sent, followed by some minimum delay time prior to sending
the kSetSyncMode frame. The minimum delay time is dependent on the baud rate, and

for a baud rate equal to or slower than 9600 there is no delay. For baud rates greater than

9600 the minimum delay is equal to:

Minimum delay after sending “FF

h

” (in seconds) = 7E-3 – (10/baud rate)

Mode ID:

Normal Mode = 0

Sync Mode = 100