完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
我读了一些例子,认为我可以通过快速测试来取得一些进步,但我似乎在第一步失败了。
我在项目中添加了一个EZI2C从模块,然后将下面的代码复制到Meal.C中: /EZI2C*/Oy的从地址定义EZI2CySLaveEAdDR(0x08U)定义BuffelySoad(0x04U)定义BuffelyRWyRaaaSe大小(0x02U) /*表示EZI2C缓冲区*/y定义的偏移量,定义SLaveId ADDRIX大小(0x01U) /*EZI2C缓冲器*/UITN8 EZI2C缓冲器[BuffelyStand ]; /*I2C缓冲器,从EZI2C*/UIT8读取I2cBuffRead读取数据[缓冲区大小]; /*I2C缓冲器,将数据写入EZI2C*/UITC8 I2CFBuffRead [SavaEdAdRuleSimule+BuffelyStand ]; int() … /*启动EZI2C*/EZI2CXSTATE();/*启用全局中断*/CyGlobal Algabess;/*初始化EZI2C缓冲器的只读数据*/EZI2cBuff[BuffryRWyRayaaSeaSe]=0xAAU;EZI2cBuff[BuffrRrWaRaaaSeSe+1U]=0xBBU; EZI2CYSET BuffeR1(BuffelySosig,BuffrrRWyRaaaLe大小,(空隙*)EZI2cFuffe); 我认为这将是足够的看到5LP上的I2C总线,甚至读取初始数据,但5LP没有出现在公共汽车上。我有2个其他设备上的板显示出来,我可以从他们读,所以I2C总线似乎正在工作。 我有什么遗漏在这里吗? 谢谢, 乔治 以上来自于百度翻译 以下为原文 I was reading some of the examples and thought I could make some quick progress by running a quick test but I seemed to have failed at step one. I added an EZI2C Slave module to my project and then copied the following code into my main.c: /* Slave address of the EZI2C */ I thought this would be enough to see the 5LP on the I2C bus and even read the initial data but the 5LP doesn't show up on the bus. I have 2 other devices on the board that do show up and I can read from them so the I2C bus seems to be working. Is there something that I'm missing here? Thanks, George |
|
相关推荐
21个回答
|
|
|
我能知道你的实际项目吗?或者你能把这个项目降低到最低限度吗?
鲍勃 以上来自于百度翻译 以下为原文 Can I have your actual project? Or can you reduce the project to its barest? Bob |
|
|
|
|
|
逻辑分析仪捕获的是您提供的示例项目。我只改变了LED引脚,并添加了P3(2)上的拨号,以确认VDdiO3是用我的跳线添加电源。 以上来自于百度翻译 以下为原文 The logic analyzer captures are with the example project you provided. I only changed the LED pin and added the toggle on P3[2] to confirm that VDDIO3 was being powered with my jumper wire addition. |
|
|
|
|
只有小组成员才能发言,加入小组>>
786个成员聚集在这个小组
加入小组cyUSB3014一直显示2.1,不能到3.0情况,谁遇到过
7088 浏览 0 评论
2477 浏览 1 评论
2166 浏览 1 评论
4031 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
2074 浏览 6 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
7568浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
6114浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
742浏览 2评论
710浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
7962浏览 2评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 16:01 , Processed in 0.548521 second(s), Total 45, Slave 38 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1402