
PNI Sensor Corporation
DOC#1014688 r09.2
TCM User Manual
Page 60
Set
kAccelCoeffCopySet
to be copy 2
0x00 0x0A 0x06
0x13 0x00 0x00
0x00 0x02 0xB4
0x65
0x00 0x05 0x13 0xDD
0xA9
kGetConfig
(frame ID)
AccelCoeffCopySet
(config ID)
Value
(UInt32)
Examples
Command
Bytes
TCM Response
0x07
0x13
get
kAccelCoeffCopySet
value which is
currently used in
TCM
0x00 0x06 0x07
0x13 0x09 0x65
0x00 0x0A 0x08 0x13
0x00 0x00 0x00 0x??
CRC1 CRC2
Examples
Example 1:
Save Magnetic Calibration result to Coeff Copy Set 4.
Set the kCoeffCopySet to copy 4 by sending the following command.
0x00 0x0A 0x06 0x12 0x00 0x00 0x00 0x04 0x7E 0xF2
Get the kCoeffCopySet to verify by sending the following command. (Optional)
0x00 0x06 0x07 0x12 0x19 0x44
Send kSave command to save the kCoeffCopySet to flash so that it will be still available
after power cycle. The kSave command is as following.
0x00 0x05 0x09 0x6E 0xDC
Start a user calibration, when completes, save calibration coeffs to TCM. The coeffs have
been saved into coeff set copy 4.
Example 2:
Use Magnetic Coeff Copy Set 1 in TCM. (The assumption is user has saved
calibration coeffs to set 1 before)
Set the kCoeffCopySet to copy 1 by sending the following command.
0x00 0x0A 0x06 0x12 0x00 0x00 0x00 0x01 0x2E 0x57
Get the kCoeffCopySet to verify by sending the following command. (Optional)
0x00 0x06 0x07 0x12 0x19 0x44
Send kSave command to save the kCoeffCopySet to flash so that it will be still available
after power cycle. The kSave command is as following.
0x00 0x05 0x09 0x6E 0xDC