默认情况下,大多数mems使用3线模式(详细不知道这个)。当NSS为低时,选择芯片。当NSS为高电平时,它使用I2C(因此,如果使用多个SPI从器件,请务必小心)。要激活4线模式,您可以(在3线模式下)在芯片内写入一个位以激活4线模式。然后阅读WHO_AM_I可能会有效......
希望这可以帮助。祝你好运!
以上来自于谷歌翻译
以下为原文
By default, most mems use 3 wire mode (don't know this one in details). When NSS is low, the chip is selected. When NSS is high, it uses I2C (so be careful if using multiple SPI slave devices). To activate the 4 wire mode, you may have (in 3 wire mode) to write a bit inside the chip to activate the 4 wire mode. Then reading the WHO_AM_I may work...
Hope this helps. Good luck!
默认情况下,大多数mems使用3线模式(详细不知道这个)。当NSS为低时,选择芯片。当NSS为高电平时,它使用I2C(因此,如果使用多个SPI从器件,请务必小心)。要激活4线模式,您可以(在3线模式下)在芯片内写入一个位以激活4线模式。然后阅读WHO_AM_I可能会有效......
希望这可以帮助。祝你好运!
以上来自于谷歌翻译
以下为原文
By default, most mems use 3 wire mode (don't know this one in details). When NSS is low, the chip is selected. When NSS is high, it uses I2C (so be careful if using multiple SPI slave devices). To activate the 4 wire mode, you may have (in 3 wire mode) to write a bit inside the chip to activate the 4 wire mode. Then reading the WHO_AM_I may work...
Hope this helps. Good luck!
举报