在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 2869|回复: 3

关于iic的一个问题

[复制链接]
发表于 2004-4-28 11:36:34 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
Every byte put on the SDA line must be 8-bits long. The
number of bytes that can be transmitted per transfer is
unrestricted. Each byte has to be followed by an
acknowledge bit. Data is transferred with the most
significant bit (MSB) first (see Fig.6). If a slave can’t
receive or transmit another complete byte of data until it
has performed some other function, for example servicing
an internal interrupt, it can hold the clock line SCL LOW to
force the master into a wait state. Data transfer then
continues when the slave is ready for another byte of data
and releases clock line SCL.
以上是iic规范里的一段话,请问如果用vhdl的话怎么实现这个功能,主设备怎么去得到scl上的信号,我是过将scl管脚定义为input,可是无法仿真,请高手指教,谢谢!
发表于 2004-4-28 13:32:30 | 显示全部楼层

关于iic的一个问题

SCL信号是主设备发出的
 楼主| 发表于 2004-4-28 14:27:48 | 显示全部楼层

关于iic的一个问题

首先谢谢版主回复!
我的意思是当从设备忙时它会拉低scl,由于线与的原因scl会变为低,根据协议这是
主设备要进入等待状态,这样的话它就必须能够采样到scl上的电平,我现在采用的方法是使用两个模块,一个负责基本的iic收发,一个用来采样scl上的电平,当采样到一定时间的低电平后,通知收发模块进入等待状态,请问这样做会不会造成其他问题
,例如会不会对采样scl的那个管脚造成损坏,我记得在这里看过一篇文章说的是接到同一个输入管脚的两个管脚不要同时输出
发表于 2004-4-28 15:20:50 | 显示全部楼层

关于iic的一个问题

对于3态输出脚,是没有影响的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

×

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-5-11 18:18 , Processed in 0.024679 second(s), 10 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表