read device id of fxos8700,but always return 0

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

read device id of fxos8700,but always return 0

1,781 次查看
sofia_0571
Contributor II

@all

before read device id, microchip set fxos8700 rst pin to low.i cannot found issues where is it.

tks.

标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

1,538 次查看
sofia_0571
Contributor II

by the way use i2c interface to read/write data.

just now read https://www.nxp.com/docs/en/errata/FXOS8700CQER.pdf  .i2c have same issue? tks.

0 项奖励
回复

1,538 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi David,

Do you have a logic analyzer or an oscilloscope to see what is going on the bus?

Please make sure you are using a correct I2C slave address depending on the voltage on SA0 and SA1 pins:

pastedImage_1.png

In my example below, both SA0 and SA1 pins are connected to GND which translates to 0x3C (0x1E << 1) for a write and 0x3D ((0x1E << 1) | 0x01) for a read.

I2C+Read.JPG.jpg

I hope it helps.

Best regards,

Tomas

0 项奖励
回复