Hi,
I'm using MMA6900KQ accelerometer and can't read acceleration data. I'm using SPI to read it.
First I'm trying to init accelerometer. Here commands which I send via SPI and answers on it:
1) MOSI: 0x1410; MISO: 0xEA00; (Command: Set pointer to Device Status Register; answer: Critical/Reset Exception Response)
2) MOSI: 0x2000; MISO: 0xF281; (Command: DEVSTAT register data read; answer: 2 errors (IDE and DEVRES)
3) MOSI: 0x140E; MISO: 0xEA00; (Command: Set pointer to DEVCTL register; answer: Critical/Reset Exception Response)
4) MOSI: 0x3020; MISO: 0xFA0E; (Command: Register data write, data: Clear Error; answer: Critical/Reset Exception Response)
5) MOSI: 0x1410; MISO: 0xEA00; (Command: Set pointer to Device Status Register; answer: Critical/Reset Exception Response)
6) MOSI: 0x2000; MISO: 0xF680; (Command: DEVSTAT register data read; answer: 1 error (IDE)
And after it I'm trying to read acceleration data. As answer I've got 0x2047 acceleration always.
Help me, please, how to deal with this problem?