完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,我已经实现了i2c模块?
Spartan 6 FPGA用作主器件和CMOS omage传感器作为从器件。 我试图在Chipscope中可视化SCL和SDA信号以及输出i2c数据信号。 我相信我发送了正确的从站地址,但传感器没有确认。 在图中,我看到双向SDA信号和仅输出数据信号之间存在细微差别。 clk是25MHz的主时钟 rst是活跃的低点 从机确认时,ACK应始终为低电平。 scl_io是100KHz,这里我把它设置为1MHz只想显示2数据信号之间的差异(因为样本深度限制,我无法可视化整个i2c信号)。 在第二张图中,scl是100KHz sda_io是biderectional位 sda_o是FPGA生成的数据信号 在约束.ucf文件中,无论我将sda位设置为i2c还是上拉它,都没有变化。 在硬件设备中,i2c总线直接连接到FPGA的引脚。 根据传感器数据表,SDATA通过1.5kΩ电阻上拉至VDD片外。 请你帮忙,谢谢! 以上来自于谷歌翻译 以下为原文 Hi all, I've implemented an i2c module? The Spartan 6 FPGA works as master and CMOS omage sensors as slave. I tried to visualise the SCL and SDA signal and the output i2c data signal in Chipscope. I believe that I sent the right slave address but the sensor does not acknowledge. In the picture, I see slight difference between the bidirectional SDA signal and the output only data signal. clk is the master clock at 25MHz rst is active low ACK should be always low when the slave acknoledge. scl_io is 100KHz, here I set it as 1MHz just want to show the difference between the 2 data signal(because of the sample depth limit, I can't visualize the whole i2c signal). In the 2nd picture, the scl is 100KHz sda_io is the biderectional bit sda_o is the data signal generated by FPGA In the constraint .ucf file, no matter I set the sda bit as i2c or pullup it, there's no change. in the hardware device, the i2c bus are directly connected to the pin of FPGA. according to the Sensor datasheet, SDATA is pulled up to VDD off-chip by a 1.5kΩ resistor. Could you pleas help me, thank you! |
|
相关推荐
29个回答
|
|
我正在使用APTINA COMS传感器。
我发现当传感器连接时,无论接收到什么数据,它都会一直拉下SDAsignal。 SCL信号仅设置为输出。 以上来自于谷歌翻译 以下为原文 I'm using APTINA COMS sensor. I found that when sensor is connected, it pulled down the SDAsignal all the time no matter what data received. The SCL signal was set to output only. |
|
|
|
COMS必须是CMOS,但它们有许多产品。
您使用的是哪种特定设备? 你怎么知道SDA一直被拉下来? 这不在您之前发送的范围图片中吗? 你有没有联系Aptina支持? ------您是否尝试在Google中输入问题? 如果没有,你应该在发布之前。太多结果? 尝试添加网站:www.xilinx.com 以上来自于谷歌翻译 以下为原文 COMS must be CMOS, but they have a number of products. Which specific device are you using? How do you know that the SDA is pulled down all of the time? This wasn't in the scope pictures that you sent previous? Have you contacted Aptina support? ------Have you tried typing your question into Google? If not you should before posting. Too many results? Try adding site:www.xilinx.com |
|
|
|
我正在使用APTINA MT9J003,我将范围上传到第2页。
我使用了IOBUF并检测到FPGA引脚输入缓冲器(sda_in)和输出缓冲器使能引脚(因为我无法将输入信号连接到芯片内窥镜ILA内核)。 输出使能引脚显示FPGA生成的信息,sda_in是传感器返回的sda信号。 传感器demobord的i2c用blackfin验证,但不用FPGA验证。 但我现在正在做的是原型。 通过2.7k电阻将SDA和SCL上拉到传感器板上。 在原型中,FPGA与PCB上的传感器连接,我真的无法将FPGA与其他i2c设备连接,也没有将原型与blackfin连接,我不是在使用FPGA入门套件,而是直接处理原型,所以我 别无选择,只能继续调试。 以上来自于谷歌翻译 以下为原文 I'm using APTINA MT9J003, I uploaded the scope in the 2nd page. I used IOBUF and I detected the FPGA pin input buffer(sda_in) and output buffer enable pin (as I could not connect th inout signal to chipscope ILA core). The output enable pin shows the information generated by FPGA, sda_in is the sda signal back from sensor. The i2c of sensor demobord is verified with blackfin but not FPGA. But what I'm doing now is on the prototype. the SDA and SCL are pulled up on the Sensor Board by 2.7k resistors. in the prototype the FPGA is connected with sensor on the PCB and I'm really not able to connect FPGA with other i2c device neither connect the prototype with blackfin, I'm not working on FPGA starter kit but directly working on the prototype so I have no choice but to continue debugging. |
|
|
|
mcgett写道:
你有没有联系Aptina支持? 祝你好运...... ----------------------------是的,我这样做是为了谋生。 以上来自于谷歌翻译 以下为原文 mcgett wrote:Good luck with that ... ----------------------------Yes, I do this for a living. |
|
|
|
回过头来看看带有注释的ChipScope屏幕截图,告诉我你有下列情况之一
1)FPGA和Aptina传感器之间的I2C连接错误 2)Aptina传感器保持复位状态,并且出于某种原因断言SDA(可能是SCL)为低电平 3)I2C总线命令被破坏,Aptina设备混乱并处于不良状态 连接Aptina传感器后,“sdain”必须是“sdaoe”线的镜像。 在电路板上电后,我会首先尝试一个简单的测试,看看FPGA是否可以在连接传感器的情况下切换PCB上的SDA网络。 ------您是否尝试在Google中输入问题? 如果没有,你应该在发布之前。太多结果? 尝试添加网站:www.xilinx.com 以上来自于谷歌翻译 以下为原文 Going back and looking at the ChipScope screen shots with your annotations says to me that you have one of the following conditions 1) The I2C connection between the FPGA and Aptina sensor is wrong 2) The Aptina sensor is being held in reset and is asserting SDA (and maybe SCL) low for some reason 3) The I2C bus commands were corrupted the Aptina device is confused and in a bad state With the Aptina sensor connected, the "sdain" must be a mirror of the "sdaoe" line. I would first try a simple test after the board power cycle to see if the FPGA can toggle the SDA net on the PCB with the sensor connected. ------Have you tried typing your question into Google? If not you should before posting. Too many results? Try adding site:www.xilinx.com |
|
|
|
为了mcgett,
请问我的配置是否有问题,sda_in应与sda相同,而sda取决于sda_oe的值,但是,在我的chipcope中,我发现sda_in si为低,这意味着双向引脚sda也很低。 但是,如果我探测连接器上的引脚(在PCB上),我可以在示波器中看到显示sda_oe值的方波,当我探测到传感器板上的引脚时,结果相同。 但是这个引脚实际上是sda。 我做了什么事吗? 以上来自于谷歌翻译 以下为原文 To mcgett, May I ask if there's anything wrong with my configuration, the sda_in should be the same with sda, and sda depends on the value of sda_oe, however, in my chipscope, I found sda_in si low which means the biderectional pin sda is also low. However, If I probe on the pin on the connector(on the PCB) , I can see the square waveform which shows valued of sda_oe in the oscilloscope, same result when I probe to the pin on sensor board. But the pin is actually sda. Did I do anything wriong? |
|
|
|
在之前的帖子中你说:
IOBUF I2Csda( .O(SDA_in) .IO(SDA), 我(1'b0), .T(SDA_OE)); 这将是开漏双向总线的正常实例。 SDA_in网应该始终显示外部总线的状态。 当SDA_OE为1时,输出将为三态,而您所说的外部2.7K上拉应该将其拉至VCC(这应该与IO bank的VCCO相同),SDA_in将为1。 当SDA_OE为0时,输出将被主动驱动为低电平,SDA_in将为0。 这在ChipScope屏幕捕获中工作正常,传感器未连接,并且在连接传感器时失败。 表明问题出在您所连接的传感器或电路板上。 。 ------您是否尝试在Google中输入问题? 如果没有,你应该在发布之前。太多结果? 尝试添加网站:www.xilinx.com 以上来自于谷歌翻译 以下为原文 In a previous post you said: IOBUF I2Csda ( .O (SDA_in) .IO(SDA), .I (1'b0), .T(SDA_OE)); and this would be a normal instantiation of an open-drain bi-directional bus. The SDA_in net should always be showing you the state of the external bus. When SDA_OE is 1 the output wil be tri-stated and the external 2.7K pullup that you said is in the system should pull it to VCC (this should be the same supply as the VCCO for the IO bank) and SDA_in will be 1. When SDA_OE is 0 the output will be actively driven low and SDA_in will be 0. This is working fine in your ChipScope screen captures with the sensor not connected and failing when the sensor is connected. Indicating that the problem is with the sensor or the board that you are attaching. . ------Have you tried typing your question into Google? If not you should before posting. Too many results? Try adding site:www.xilinx.com |
|
|
|
下拉是否可能来自某些FPGA配置/ Verilog代码?
以上来自于谷歌翻译 以下为原文 Is it possible that the pull-down comes from some FPGA configuration / Verilog code? |
|
|
|
如果它确实来自FPGA配置中的某些内容,那么当传感器未连接到I2C总线时,您会看到相同的行为。
但是,由于此错误发生的唯一时间是连接传感器时问题必须是外部的。 ------您是否尝试在Google中输入问题? 如果没有,你应该在发布之前。太多结果? 尝试添加网站:www.xilinx.com 以上来自于谷歌翻译 以下为原文 If it did come from something in the FPGA configuration then you would see the same behaviour when the sensor is not attached to the I2C bus. However, since the only time this error occurs is when you connect the sensor the problem must be external. ------Have you tried typing your question into Google? If not you should before posting. Too many results? Try adding site:www.xilinx.com |
|
|
|
嘿,我有同样的问题。
我发送从地址但我没有收到确认信号。 我不知道问题出在哪里!!!! 我在S6 LX150T开发板中使用DS3232 RTC设备。 以上来自于谷歌翻译 以下为原文 Hey, I have the same problem. I send the slave address but I don't receive the ack signal. I don't know where is the problem!!!! I use DS3232 RTC device in S6 LX150T DEVELOPMENT BOARD. |
|
|
|
只有小组成员才能发言,加入小组>>
2363 浏览 7 评论
2782 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2247 浏览 9 评论
3326 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
2414 浏览 15 评论
有输入,但是LVDS_25的FPGA内部接收不到数据,为什么?
730浏览 1评论
请问vc707的电源线是如何连接的,我这边可能出现了缺失元件的情况导致无法供电
524浏览 1评论
求一块XILINX开发板KC705,VC707,KC105和KCU1500
336浏览 1评论
742浏览 0评论
1940浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-10 13:40 , Processed in 1.067474 second(s), Total 63, Slave 58 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号