''当LIS3DH CS引脚为高电平时,可以将SPI用于EEPROM(LIS3DH将处于I2C模式)?''
不,这可能会对你很糟糕(如果还没有)。多个ST器件不使用具有共享SPI总线的兼容庄园中的片选(CS)概念。未选择时,CS为高电平,同时将器件置于I2C模式。因此,如果您向EEPROM发送的任何数据看起来像LIS3DH的I2C从地址,它将驱动SDI线损坏数据到EEPROM。
我了解了硬件,不能再在共享SPI总线上使用这些ST设备。
以上来自于谷歌翻译
以下为原文
''So is it possible to use SPI to the EEPROM when LIS3DH CS pin is high (the LIS3DH would be in I2C mode)?''
NO, this will likely go badly for you (if it hasn't already). Several ST devices don't use the notion of Chip Select (CS) in a compatible manor with a shared SPI bus. When not selected, the CS is HIGH which also puts the device in I2C mode. Therefore if any data to you EEPROM happens to look like the LIS3DH's I2C slave address, it will drive the SDI line corrupting data to your EEPROM.
I learned this the hardware and can no longer use these ST devices on a shared SPI bus.
''当LIS3DH CS引脚为高电平时,可以将SPI用于EEPROM(LIS3DH将处于I2C模式)?''
不,这可能会对你很糟糕(如果还没有)。多个ST器件不使用具有共享SPI总线的兼容庄园中的片选(CS)概念。未选择时,CS为高电平,同时将器件置于I2C模式。因此,如果您向EEPROM发送的任何数据看起来像LIS3DH的I2C从地址,它将驱动SDI线损坏数据到EEPROM。
我了解了硬件,不能再在共享SPI总线上使用这些ST设备。
以上来自于谷歌翻译
以下为原文
''So is it possible to use SPI to the EEPROM when LIS3DH CS pin is high (the LIS3DH would be in I2C mode)?''
NO, this will likely go badly for you (if it hasn't already). Several ST devices don't use the notion of Chip Select (CS) in a compatible manor with a shared SPI bus. When not selected, the CS is HIGH which also puts the device in I2C mode. Therefore if any data to you EEPROM happens to look like the LIS3DH's I2C slave address, it will drive the SDI line corrupting data to your EEPROM.
I learned this the hardware and can no longer use these ST devices on a shared SPI bus.
举报