完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,
我正在尝试使用Verilog设计I2C地址转换器。 因此,例如当I2C主设备尝试访问0x7x从设备时,我的转换器将激活一个输出线并将该设备地址转换为0x3x。 有没有这种I2C地址转换的示例代码? 谢谢。 乔 以上来自于谷歌翻译 以下为原文 Hello all, I'm trying to design I2C address translator using Verilog. so, for example when I2C master try to access 0x7x slave device then my translator will activate one output line and translate that device address to 0x3x. is there any example code for this kind of I2C address translation? Thanks. Joe |
|
相关推荐
5个回答
|
|
我想翻译器是必需的,因为你的目标地址有前4个MSB字节为0x3对吗?
或者是因为你有多个具有相同地址的从设备?因此我们没有任何IP地址转换器的IP或示例。 然而,这看起来并不是一件非常复杂的事情。 谢谢,AnirudhPS:请将此标记作为答案,以防它有助于解决您的问题。如果帖子引导您找到解决方案,请给予赞誉。 在原帖中查看解决方案 以上来自于谷歌翻译 以下为原文 i guess the translator is needed because your destination address has the 1st 4 MSB bytes as 0x3 right? Or is it because you have mulitple slaves with the same address? As such we do not have any IP or example for the I2C address translator. However that doesn't look like a very complex thing to do.Thanks, Anirudh PS: Please MARK this as an answer in case it helped resolve your query.Give kudos in case the post guided you to a solution.View solution in original post |
|
|
|
你可以使用这个IP
http://japan.xilinx.com/support/documentation/ip_documentation/axi_iic/v2_0/pg090-axi-iic.pdf 也可以尝试使用opencores项目:http://opencores.org/project,i2c。 一个简单的主模块在这里https://www.eewiki.net/display/LOGIC/I2C+Master+(VHDL) 谢谢和RegardsBalkrishan ----------------------------------------------- ---------------------------------------------请将帖子标记为 一个答案“接受为解决方案”,以防它有助于解决您的查询。如果一个帖子引导到解决方案,请给予赞誉。 以上来自于谷歌翻译 以下为原文 you can use this IP http://japan.xilinx.com/support/documentation/ip_documentation/axi_iic/v2_0/pg090-axi-iic.pdf The can also try with opencores project at http://opencores.org/project,i2c. A simple master module is in here https://www.eewiki.net/display/LOGIC/I2C+Master+(VHDL) Thanks and Regards Balkrishan -------------------------------------------------------------------------------------------- Please mark the post as an answer "Accept as solution" in case it helped resolve your query. Give kudos in case a post in case it guided to the solution. |
|
|
|
我想翻译器是必需的,因为你的目标地址有前4个MSB字节为0x3对吗?
或者是因为你有多个具有相同地址的从设备?因此我们没有任何IP地址转换器的IP或示例。 然而,这看起来并不是一件非常复杂的事情。 谢谢,AnirudhPS:请将此标记作为答案,以防它有助于解决您的问题。如果帖子引导您找到解决方案,请给予赞誉。 以上来自于谷歌翻译 以下为原文 i guess the translator is needed because your destination address has the 1st 4 MSB bytes as 0x3 right? Or is it because you have mulitple slaves with the same address? As such we do not have any IP or example for the I2C address translator. However that doesn't look like a very complex thing to do.Thanks, Anirudh PS: Please MARK this as an answer in case it helped resolve your query.Give kudos in case the post guided you to a solution. |
|
|
|
你是对的。
我们在同一地址有一堆从设备,所以我需要设计地址转换器。 你有任何示例代码吗? 谢谢。 乔 以上来自于谷歌翻译 以下为原文 yes you are right. we have bunch of slave devices in same address so that I need to design address translator. do you have any sample code for this?? Thanks. Joe |
|
|
|
谢谢您的意见
但是,我需要地址转换器而不是i2c引擎的整个包..你能帮我解决这个问题吗? 以上来自于谷歌翻译 以下为原文 thank you for your comments but, I need address translator not a whole package of the i2c engine.. would you help me out for this?? |
|
|
|
只有小组成员才能发言,加入小组>>
2423 浏览 7 评论
2824 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2294 浏览 9 评论
3374 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
2465 浏览 15 评论
有输入,但是LVDS_25的FPGA内部接收不到数据,为什么?
1192浏览 1评论
请问vc707的电源线是如何连接的,我这边可能出现了缺失元件的情况导致无法供电
590浏览 1评论
求一块XILINX开发板KC705,VC707,KC105和KCU1500
452浏览 1评论
2006浏览 0评论
731浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-24 07:46 , Processed in 2.860150 second(s), Total 56, Slave 50 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号