完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我在带有串行闪存芯片的公共SPI总线上遇到LIS3DH器件问题。我想知道我是否可以做一些我不应该做的事情。
这两个器件共用一个公共SPI总线(SPC,SDI和SDO)。 LIS3DH和存储器各自具有单独的CS线。 一切正常,直到我尝试访问串行闪存中的特定内存位置。似乎LSI3DH虽然它的CS很高,但是它会监听SPC和SDI线,并将它们视为I2C SCL和SDA线。然后在非常特殊的模式条件下,当我希望LIS3DH保持“静音”时,它会检测到I2C启动条件。因此,在一些时钟周期之后,我看到SDI(SDA)线被拉低(与微控制器作斗争,而微控制器试图在此时保持高电平。) 我在想,因为LIS3DH上的“CS”线实际上是一个接口模式选择器(I2C / SPI),所以在公共SPI总线上使用LIS3DH器件是不安全的(使用任何其他器件) 对此情况的任何评论/意见将不胜感激。 以上来自于谷歌翻译 以下为原文 I am having a problem with an LIS3DH device on a common SPI bus with a serial flash memory chip. I am wondering if I may be doing something that I should not. The two devices share a common SPI bus (SPC, SDI and SDO). The LIS3DH and the memory each have individual CS lines. All works fine until I try to access particular memory locations in the serial flash. It seems as if the LSI3DH is, while it's CS is high, listening to the SPC and SDI lines and treating them like I2C SCL and SDA lines. Then under very particular pattern conditions, when I would have liked the LIS3DH to remain "silent", it detects an I2C Start condition. And so, some number of clock cycles later, I see the SDI (SDA) line being pulled down (fighting against the microcontroller, which was trying to keep it high at that point.) I am thinking that, because the "CS" line on the LIS3DH is really an interface mode selector (I2C/SPI), it is unsafe to use LIS3DH devices on a common SPI bus (with ANY other device) Any comments/observations on this situation would be much appreciated. |
|
相关推荐
2个回答
|
|
SPI通信看起来不应该像I2C,但我已经在论坛上看到了这个问题。
请查看此常见问题解答:https://community.st.com/s/article/FAQ-How-can-I-disable-I2C-of-LIS2DH12 您可以对LIS3DH使用相同的过程并禁用I2C接口,这应该可以解决您的问题。 以上来自于谷歌翻译 以下为原文 SPI communication should not looks like I2C, but I already saw this issue on the forum some time ago. Please check this FAQ: https://community.st.com/s/article/FAQ-How-can-I-disable-I2C-of-LIS2DH12 You can use the same procedure for LIS3DH and disable the I2C interface, this should solve your issue. |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2632 浏览 1 评论
3208 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1783 浏览 1 评论
3607 浏览 6 评论
5987 浏览 21 评论
939浏览 4评论
1315浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
582浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
1302浏览 3评论
1357浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 06:03 , Processed in 4.570220 second(s), Total 79, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号