Solved
Receive only 0xFF from LIS3DSH
Posted on December 08, 2017 at 06:00
The original post was too long to process during our migration. Please click on the attachment to read the original post.
The original post was too long to process during our migration. Please click on the attachment to read the original post.
Oh!! Finally, the problem is solved just by 3 lines of code:
SPI_send(0x25,0x90);
SPI_send(0x23,0x01);
SPI_send(0x20,0x67);
I think 'force reboot'ing solved my problem(first bit of register 0x25). Now it is working even if I comment it out. Strange. Really, I changed nothing else. I have been writing to 0x20 and 0x23 registers but I had not seen anything about 0x25.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.