read device id of fxos8700,but always return 0

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

read device id of fxos8700,but always return 0

1,041件の閲覧回数
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 返答(返信)

798件の閲覧回数
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 件の賞賛

798件の閲覧回数
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 件の賞賛