我打算在与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 selec
ting 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