Sensors
NXP Semiconductors 37
MMA26xx
4.2.1.8 Clear Command
The Clear command is supported in the following command formats:
Standard Long Command
Standard Short Command
Enhanced Long Command as configured by the Format Control Command (Reference Section 4.2.1.11)
Enhanced Short Command as configured by the Format Control Command (Reference Section 4.2.1.11)
When the device successfully decodes a Clear Command, and the address field matches either the assigned device address
(PA[3:0]) or the DSI Global address of ‘0000’, the bus switch is opened within T
BSOPEN
, and the device logic is reset. Reference
Section 3.6 for the initialization sequence following a Clear Command. The data bits D[7:0] in the command are only used in the
CRC calculation. There is no response to the Clear Command.
4.2.1.9 DSI Command #8
DSI Command ‘1000’ is not implemented. The device ignores all command formats with a command ID of ‘1000’.
Table 33. Clear Command
Data Address Command
CRC
D[7] D[6] D[5] D[4] D[3] D[2] D[1] D[0] A[3] A[2] A[1] A[0] C[3] C[2] C[1] C[0]
A[3] A[2] A[1] A[0] 0 1 1 1 0 to 8 bits
Table 34. Clear Command Bit Definitions
Bit Field Definition
C[3:0]
Clear Command = ‘0111’.
When a Clear Command is successfully decoded and the address field matches either the assigned device address or the DSI Global
Device Address of ‘0000’, the bus switch is opened within t
BSOPEN
, and the device logic is reset. Reference Section 3.6 for the initialization
sequence following a Clear Command.
A[3:0]
DSI device address. This field contains the device address. This field must match the internal programmed address field or the Global
Device Address of ‘0000’. Otherwise, the command is ignored.
D[7:0] Used for CRC calculation only
Sensors
38 NXP Semiconductors
MMA26xx
4.2.1.10 Write NVM Command
The Write NVM command is supported in the following command formats:
Standard Long Command
Enhanced Long Command as configured by the Format Control Command (Reference Section 4.2.1.11)
The device ignores the Write NVM command if the command is in any other format, or if the DSI device address is set to the
DSI Global Device Address of ‘0000’.
The Write NVM command uses the nibble address definitions in Tab le 3 and summarized in Table 40.
Writes to OTP occur only if the NV bit is set. The NV bit is set by the Initialization Command (reference Section 4.2.1.1). If the
NV bit is cleared when the command is executed, the mirror registers addressed by WA[3:0] are updated with the contents of
RD[3:0] and the DSI Device Address is returned regardless of the WA[3:0] value. If the Write NVM command is a request to
change the Device Address, the new Device Address is returned.
The DSI Bus idle voltage must exceed the minimum V
PP
voltage when programming the OTP array. No internal verification of
the VPP voltage is completed while writing is in process. To verify proper writes, it is recommend that the registers be read back
after writes to verify proper contents. The total execution time for the Write NVM command is t
PROG_BIT
times the number of bits
being programmed (1 - 4 bits). Inter-frame spacing between the Write NVM command and the subsequent DSI command must
accommodate this timing.
Writes to the User Programmable OTP array using the Write NVM Command will update the mirror registers and result in a
change to the error detection calculation regardless of the state of the NV bit and the LOCK_U bit. An error detection mismatch
can only be detected if the LOCK_U bit is active (reference Section 3.2.2).
Table 35. Write NVM Command
Data Address Command
CRC
D[7] D[6] D[5] D[4] D[3] D[2] D[1] D[0] A[3] A[2] A[1] A[0] C[3] C[2] C[1] C[0]
WA[3] WA[2] WA[1] WA[0] RD[3] RD[2] RD[1] RD[0] A[3] A[2] A[1] A[0] 1 0 0 1 0 to 8 bits
Table 36. Write NVM Command Bit Definitions
Bit Field Definition
C[3:0] Write NVM Command = ‘1001’
A[3:0]
DSI device address. This field contains the device address. This field must match the internal programmed address field. Otherwise, the command is
ignored.
RD[3:0] RD[3:0] contains the data to be written to the OTP location addressed by WA[3:0] when the NV bit is set.
WA[3:0] WA[3:0] contains the nibble address of the OTP register to be written to when the NV bit is set.
Table 37. Long Response - Write NVM Command (NV = 1)
Data
CRC
D[15] D[14] D[13] D[12] D[11] D[10] D[9] D[8] D[7] D[6] D[5] D[4] D[3] D[2] D[1] D[0]
A[3] A[2] A[1] A[0] WA[3] WA[2] WA[1] WA[0] 1 1 Bnk[1] Bnk[0] RD[3] RD[2] RD[1] RD[0] 0 to 8 bits
Table 38. Long Response - Write NVM Command (NV = 0)
Data
CRC
D[15] D[14] D[13] D[12] D[11] D[10] D[9] D[8] D[7] D[6] D[5] D[4] D[3] D[2] D[1] D[0]
A[3] A[2] A[1] A[0] 0 0 0 0 1 1 1 1 A[3] A[2] A[1] A[0] 0 to 8 bits
Table 39. Write NVM Response Bit Definitions
Bit Field Definition
Bnk[1:0] These bits provide the bank address selected in the Initialization command.
A[3:0]
DSI device address. This field contains the device address. This field must match the internal programmed address field. Otherwise, the command is
ignored.
RD[3:0] RD[3:0] contains the contents of the registers addressed by WA[3:0] after the execution of the NVM write.
WA[3:0] WA[3:0] contains the nibble address of the OTP register to be written to when the NV bit is set.
Sensors
NXP Semiconductors 39
MMA26xx
Table 40. OTP Register Nibble Address Assignments
Bank Address Register Address (Nibble)
Register Description
Bnk[1] Bnk[0] WA[3] WA[2] WA[1] WA[0]
x x0000
UNUSED No Write to NVM executed, Normal Response: RD[3:0] = Device Address ADDR[3:0]
x x0001
x x0010
x x0011
x x0100
x x0101
0 00110
0 00111 DEVCFG2[7] Only RD[3] is written to the LOCK_U bit
0 0 1 0 0 0 TYPE[7:6] Only RD[3:2] is written to LPF[1:0]
0 0 1 0 0 1 UNUSED No Write to NVM executed, Normal Response: RD[3:0] = Device Address ADDR[3:0]
0 01010 DEVCFG[7:4] Only RD[3] is written to the DEVID bit
0 01011
UNUSED No Write to NVM executed, Normal Response: RD[3:0] = Device Address ADDR[3:0]
0 01100
0 01101
0 01110
0 01111
0 10110 DEVCFG1[3:0] Only RD[1:0] is written to AT[1:0]
0 1 0 1 1 1 DEVCFG2[3:0] RD[3:0] is written to ADDR[3:0]
0 1 1 0 0 0 UD01[3:0] RD[3:0] is written to UD01[3:0]
0 1 1 0 0 1 UD02[3:0] RD[3:0] is written to UD02[3:0]
0 1 1 0 1 0 UD03[3:0] RD[3:0] is written to UD03[3:0]
0 1 1 0 1 1 UD04[3:0] RD[3:0] is written to UD04[3:0]
0 1 1 1 0 0 UD05[3:0] RD[3:0] is written to UD05[3:0]
0 1 1 1 0 1 UD06[3:0] RD[3:0] is written to UD06[3:0]
0 1 1 1 1 0 UD07[3:0] RD[3:0] is written to UD07[3:0]
0 11111
UNUSED No Write to NVM executed, Normal Response: RD[3:0] = Device Address ADDR[3:0]
1 00110
1 0 0 1 1 1 DEVCFG2[5] Only RD[1] is written to the PCM bit
1 0 1 0 0 0 UD01[7:4] RD[3:0] is written to UD01[7:4]
1 0 1 0 0 1 UD02[7:4] RD[3:0] is written to UD02[7:4]
1 0 1 0 1 0 UD03[7:4] RD[3:0] is written to UD03[7:4]
1 0 1 0 1 1 UD04[7:4] RD[3:0] is written to UD04[7:4]
1 0 1 1 0 0 UD05[7:4] RD[3:0] is written to UD05[7:4]
1 0 1 1 0 1 UD06[7:4] RD[3:0] is written to UD06[7:4]
1 0 1 1 1 0 UD07[7:4] RD[3:0] is written to UD07[7:4]
1 0 1 1 1 1 UD08[7:4] RD[3:0] is written to UD08[7:4]
1 10110
UNUSED No Write to NVM executed, Normal Response: RD[3:0] = Device Address ADDR[3:0]
1 10111
1 11000
1 11001
1 11010
1 11011
1 11100
1 11101
1 11110
1 11111

MMA2612KGCWR2

Mfr. #:
Manufacturer:
NXP / Freescale
Description:
Accelerometers DSI2.5 Accelerometer, QFN 16
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet