FXOS8700 SPI or I2C

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

FXOS8700 SPI or I2C

2,051 次查看
eduardrazumovsk
Contributor III

Hello,

What are the considerations for working with the FXOS8700 at I2C or SPI ?

What are the advantages\disadvantages between the two protocols ? if any..

Thanks & Regards,

Eduard

标签 (2)
1 回复

1,611 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Eduard,

For a general description of both I2C and SPI protocols and their advantages/limitations I would refer to the following article:

http://components.about.com/od/Theory/a/Selecting-Between-I2c-And-Spi.htm

As for the FXOS8700CQ, you need to take into consideration that it only supports a point-to-point SPI protocol, with only one master (MCU) and one slave device (FXOS8700CQ) present on the bus. FXOS8700CQ does not tri-state the MISO pin when the CS_B pin is deasserted (logic high), which can lead to a bus conflict if multiple slave devices are present on the bus. So if you have more devices to connect, then I2C is the interface you will have to use. Also note that the FXOS8700CQ has two I2C address selection pins (SA0 and SA1) allowing connection of four FXOS8700CQ sensors on the same I2C bus.

I hope this helps.

Regards,

Tomas


PS: If my answer helps to solve your question, please mark it as "Correct" or “Helpful”. Thank you.