AnsweredAssumed Answered

MMA6900KQ&SPI

Question asked by Liuliu Cai on Dec 26, 2019
Latest reply on Jan 6, 2020 by Liuliu Cai

Hi,

I'm using MMA6900KQ accelerometer and can't read acceleration data. Because I use an 8-bit MCU, its SPI data register is also 8-bit. When sending commands, only 8-bits can be sent at a time, while the commands of MMA6900KQ are 16-bits. Can I send it twice, sending the high 8 bits first, then the low 8 bits? Or is there any other workaround? Similarly, when reading the data register of SPI to receive the data of MMA6900KQ, I can only read 8 bits at a time. Can I read the high 8 bits and then the low 8 bits?

Outcomes