完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我们计划在我们的一个设计中使用LPS331AP。 LPS331AP将使用4线接口与MCU连接。当SPI通信终止(CS =高电平)时,我无法找到关于数据输出(引脚7)是否为三态/高阻抗的结论性信息。需要在同一SPI总线上使用更多器件。
另外,CS引脚用于将传感器置于SPI / I2C模式,因此当SPI通信需要终止时,MCU必须驱动CS =高电平,这又将传感器置于I2C模式,这是不是有冲突? 另外,INT1 / 2引脚是否需要板载外部上拉/下拉电阻? #lps331ap #spi 以上来自于谷歌翻译 以下为原文 We are planning to use LPS331AP in one of our design. LPS331AP will be interface to MCU using 4-wire interface. I could not find conclusive information on whether Data out (pin 7) is tri-stated/high impedance when SPI communication is terminated (CS = high). Need to use couple more devices on same SPI bus. Also, CS pin is used to put sensor into SPI / I2C mode, so when SPI communication needs to terminated, MCU will have to drive CS=high, this will in turn put sensor into I2C mode, is this not conflicting ? Also, do INT1/2 pins need external pull up/down resistors on board ? #lps331ap #spi |
|
相关推荐
2个回答
|
|
''此外,CS引脚用于将传感器置于SPI / I2C模式,因此当SPI通信需要终止时,MCU必须驱动CS =高电平,这又将传感器置于I2C模式,这是不是有冲突? “”
是的,这是相互矛盾的。我们发现这很困难。当CS为高电平时,器件处于i2c模式,因此如果SPI SDI上的任何数据与器件可能启动的I2C从器件地址匹配,也会驱动SDI线将数据损坏到预期的SPI器件。这是一些声称支持SPI的ST设备中的严重错误。他们真的无法共享SPI总线。 以上来自于谷歌翻译 以下为原文 ''Also, CS pin is used to put sensor into SPI / I2C mode, so when SPI communication needs to terminated, MCU will have to drive CS=high, this will in turn put sensor into I2C mode, is this not conflicting ? '' YES this is conflicting. We found this out the hard way. When CS is high, the device is in i2c mode so if any data on SPI SDI matches the I2C slave address that device may start also driving the SDI line corrupting data to the intended SPI device. This is a serious bug in several ST devices that claim support for SPI. They really can't share the SPI bus. |
|
|
|
你好Raghavani,
我们很遗憾听到您在使用我们的传感器时遇到的困难。 具体来说,我们目前的有源环境传感器产品不受影响, 一般而言,据我们所知,通过SPI总线共享问题。 由于在ST我们应用了持续改进的过程,我们希望您的问题在LPS25HB这样的新一代产品上更易于管理,在需要时,我们可以在LPS331AP上积极地提供支持,而LPS331AP现在已经过时了。 关于INT1和INT2,除非配置这些引脚,否则不需要任何上拉电阻 作为开放式排水管。关心, 阿达尔韦托 以上来自于谷歌翻译 以下为原文 Hello Raghavani, we are sorry to hear about the difficulties you have found in using our sensor. Specifically, our current set of active environmental sensor products is not affected, in general and to our knowledge, by SPI bus sharing issues. Since at ST we apply a process of continuous improvement, we expect that your problem would be easier to manage on newer product generations like the LPS25HB, on which, when needed, we can support actively and better than LPS331AP which is now an obsolete device. Regarding INT1 and INT2, you don't need any pull up resistor unless you configure those pins as open drain.With Regards, Adalberto |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2649 浏览 1 评论
3213 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1787 浏览 1 评论
3617 浏览 6 评论
5996 浏览 21 评论
944浏览 4评论
1318浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
589浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
1307浏览 3评论
1367浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-28 00:27 , Processed in 1.103091 second(s), Total 78, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号