ST意法半导体
直播中

任斌

7年用户 177经验值
私信 关注
[问答]

是否可以在与EEPROM相同的SPI总线上使用LIS2HH?

我打算在与SPI相同的SPI总线上使用LIS2HH。
但在数据表中,它说LIS3DH CS引脚选择SPI或I2C。


当LIS3DH CS引脚为高电平时(LIS3DH处于I2C模式),可以将SPI用于EEPROM吗?如果I2C地址与SPI数据匹配,我觉得它会失败。

该LIS2HH芯片组具有CTRL4寄存器,可以启用/禁用I2C模块。

因此,如果我将CS拉低并写入此CTRL4以禁用I2C模块,那么这有助于在CS拉高后避免I2C工作吗?或者,即使CTRL4 I2C模块被禁止,CS被拉高后再次使能I2C?


有人可以最早确认吗?
问候,
Shriharsh Datar

#lis2hh #issue #chipselect #spi

以上来自于谷歌翻译


以下为原文






I'm planning to use a LIS2HH on the same SPI bus as an EEPROM.

But in the datasheet it says the LIS3DH CS pin is selecting SPI or I2C.


So is it possible to use SPI to the EEPROM when LIS3DH CS pin is high (the LIS3DH would be in I2C mode)? I feel that it will fail if the I2C address gets matched with SPI data.




This LIS2HH chipset has CTRL4 register which can enable/disable the I2C module.


So if I pull CS low and write to this CTRL4 to disable the I2C module then will this help avoid I2C working after CS is pulled HIGH? Or I2C is again enabled after CS is pulled HIGH even if CTRL4 I2C module is disabled?


Can someone please confirm at earliest?

Regards,

Shriharsh Datar
  
#lis2hh #issue #chipselect #spi

回帖(1)

任斌

2019-5-30 08:36:56
来自ST的人请最早回复。我需要根据您的专家评论对硬件进行必要的修改。
 
 
问候,
Shriharsh Datar

以上来自于谷歌翻译


以下为原文





Can someone from ST please reply at earliest. I need to make necessary modifications to the hardware based on your expert comments.


Regards,
Shriharsh Datar
举报

更多回帖

发帖
×
20
完善资料,
赚取积分