Hello,
I am using High Accuracy Low g Inertial Sensor (MMA690xKQ) in my project. I have read the specification but I am unable to find the use case of Register Pointer Read and Register Pointer Write in Table 3.4, 3.5, 3.6, 3.7.
Kindly let me know how to use Register Pointer Read and Register Pointer Write and also the meaning of bits A[7:0] is the same tables.
Hello Manojkumar,
The SPI protocol for the MMA690x devices does not allow for transmission of both a register address and register data in the same command. The address must be set by a previous command. This is the purpose of the Register Pointer Write command. The Register Pointer is the address at which data will be read from or written to when a Register Data Write or Register Data Read is executed. So the normal sequence for a register read or a register write will take at least 2 commands:
Note that the MISO response for each MOSI command will come on the subsequent transfer. As shown in the image below.
Here are a few examples.
I hope this is clear.
Best regards,
Tomas
Hello
For any register reading I am getting E6 or FE response
can you please help me on exact response
clock is good and CS pin also ok
Hello
register address: e register address:14 message transmitted
STATUS is 0xe0-0x00-0x00-0x00
E0 00 STATUS is 0xe0-0x00-0x00-0x00
serialNo - 0:e0
printf device status register
register address:1 register address:30 message transmitted
STATUS is 0xff-0xff-0x00-0x00
FF FF STATUS is 0xff-0xff-0x00-0x00
serialNo - 0:ff
printf device status register
register address:0 register address:20 message transmitted
STATUS is 0xe6-0x00-0x00-0x00
E6 00 STATUS is 0xe6-0x00-0x00-0x00
serialNo - 0:e6
this is the response I am getting
Please help me on the exact response