Dear Shifu,
I'm try to read the WHO AM I register of MPU6500 in SPI way. The situation and question are:
1. I transfer the address 0xF5, and got the data from MPU6500, but the data is not 0x70, the data is not any constant, it changes all the time. I don't know whether my SPI software is not ok or the MPU6500 is broken.
2. It said in the detasheet, the SPI read and write operation are completed in 16 or more clock cycles(two or more bytes). Do it means, if I want to read WHO AM I, I should transfer the address 0xF500? Is the received data also is 16 bits? I tried in this way, but the data is complete craze.
3. If my software is ok, when i got the WHO AM I data different with 0x70, does it mean the MPU6500 is broken.
I hope somebody can give me some feedback. Thanks verymuch in advance.
LiXiang