完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好!
我有一件事,我想我们将讨论这一点。 它是: 示例:SLA的范围:0x00 -0xFF。 如果我真的不知道SLA设备,请你告诉我检查SLA的设备解决方案通过I2C协议? 多谢! 以上来自于百度翻译 以下为原文 Hi every body! I have a matter that I want we will discuss about that. It is: Example: Range of SLA: 0x00 - 0xFF. If I don't known SLA of device, can you please tell me solutions to check SLA of that device via I2C protocol? Many thanks! |
|
相关推荐
19个回答
|
|
在程序开始时,尽可能地抽出所有可能的地址。?
以上来自于百度翻译 以下为原文 poll all possible address at the beginning of the program with time out. ? |
|
|
|
|
|
|
|
嗨,我,
请详细说明你的解决方案好吗? 因为:0x00 -0xFF,大约有256次检查。 谢谢。 以上来自于百度翻译 以下为原文 Hi H L, Can you detail your solution, please? Because : 0x00 - 0xFF, have about 256 times check. Thanks. |
|
|
|
嗨,鲍伯,
我是按照你的建议去做的。我扫描了DS1307的SLA。 但2 SLA:0x68,0x59出现(发现)! DS1307的SLA仅为0x68。我不明白为什么0x59找到了! 你认为DS1307的2个SLA出现了吗? 多谢! 以上来自于百度翻译 以下为原文 Hi Bob, I did that you advised. I scanned SLA of DS1307. But 2 SLA: 0x68, 0x69 appeared (found)! SLA of DS1307 only is 0x68. I can't understand why 0x69 found! How do you think about 2 SLA of DS1307 appeared? Many thanks! |
|
|
|
如果你有很多设备,如果你得到ACK,你需要发出地址并等待来自奴隶的ACK。然后使用地址。(不要扫描保留地址)
但是,如果您只有一个设备,我认为可以使用一些特殊的保留地址。但需要检查一下。 以上来自于百度翻译 以下为原文 If you have a lot of devices, you need to issue the address and wait for the ACK from the slave, if you get an ACK. then the address is used. ( Don't scan the reserved address) However if you have only one device, I think there is a few special reserved address that can be used. But need to check. |
|
|
|
下面的代码被修改(main .txt)!
MI2.2.TXT.ZIP 782字节 以上来自于百度翻译 以下为原文 Below code was modified (main.txt)!
|
|
|
|
BTW正常I2C设备只有7位地址。(有10位版本,但不常见)。
以上来自于百度翻译 以下为原文 BTW normal I2C device only has 7 bit address. (There are 10bit version around but not as common). |
|
|
|
你们能告诉我奴隶寻址的概念吗?我使用PSoC 1和CY8C20434,因为我有一个用于5个按钮的代码;对于它们,我有一个预先分配的SLA,但是我不知道如何做更多的传感器。
请帮帮我。 我在这里附上我的计划。谢谢。 问候--- 阿米特 检查1.rar 509.7 K 以上来自于百度翻译 以下为原文 guys can you tell me the concept of slave addressing? I'm using PSoC 1 & CY8C20434, in that I have a code working for the 5 buttons; for them I have a pre-assigned SLA but I don't get it how to do that & for the more no. of sensors. please help me with it. I'm attaching my project here. Thanks. Regards--- Amit
|
|
|
|
扫描所有120地址应在12ms左右,正常100kHz率,不要太长。
以上来自于百度翻译 以下为原文 scanning all 120 address should be around 12mS at the normal 100kHz rate, not too long |
|
|
|
这应该有帮助。
HTTP://www. CyPress?COM/?RID=34486 AN5098-从PSoC®1中的I2C开始 问候,Dana。 以上来自于百度翻译 以下为原文 This should help - http://www.cypress.com/?rID=34486 AN50987 - Getting Started with I2C in PSoC® 1 Regards, Dana. |
|
|
|
|
|
|
|
|
|
|
|
这是一种使用草图一起把代码丢在一起的方法。
容易(ARDUINO) HTTP://toDBOT/COM/BUG/200 9/11/29 /I2CSCNANER PDE-ARDUION-AS-I2C-BUS扫描仪/CalpAG-PAGE 2/ 问候,Dana。 以上来自于百度翻译 以下为原文 Here was an approach using sketch to throw code together easily (Arduino) - http://todbot.com/blog/2009/11/29/i2cscanner-pde-arduino-as-i2c-bus-scanner/comment-page-2/ Regards, Dana. |
|
|
|
“素描”应该是“麻省理工学院的划痕”
HTTP//SurcCH.MIT.EDU/ 问候,Dana。 以上来自于百度翻译 以下为原文 "sketch" should be "MIT Scratch" http://scratch.mit.edu/ Regards, Dana. |
|
|
|
无需重新发明车轮。请务必不要扫描8保留地址。
以上来自于百度翻译 以下为原文 No need to re-invent the wheel. Just make sure not to scan the 8 reserved address. |
|
|
|
嗨,我,Dana!我用PSOC1 CY8C24123A对DS1307的SLA进行了扫描,但不能正常工作。我使用I2CHW用户模块为I2C协议,I2CHWYFSDESTART()函数来检查SLA,TRUE或VALL!如果我使用代码(这个代码在项目中被注释)://StasuSLa=I2CHWY11fsEntRead(104, 0);/S1307的SLA为0x68=104;0作为I2CHWWI写入TX8OL PutsHyxByter(StasuSLa);Tx8PoTrCLFF();DelayMsUnsignedInt(5);//StassSLA=1(TRUE,检查SLA DS1307)出现一次(1次),而不是更多。我认为StutsSLA的值总是等于1。我不知道为什么!如果我通过代码扫描SLA来获得真正的SLA,即:(i=0;i;lt;128;i++){StasuSLa=I2CHWY1FFSENSTART(i,0);DelayMsUnsignedInt(2);IF(StassSLA=0){TX8Y-cPutScript(“失败”);TX8YPATCRLFE();否则{TX8Y-cPoScTrn(“SLA=”);Tx8PoStuxByter(I);TX8YCCPStUnk(“找到”!“”TX8YPUTCRLFE();}//i不能检查DS1307的SLA,StasuSLA=0(不变化)。我想,当i=104时,我会真正地检查DS1307的SLA(找到)。我希望在扫描DS1307的SLA时,我会找到它。你能帮我检查一下项目吗?下面是我的计划。多谢!
PSOC117DS1307SCAN 365.8 K 以上来自于百度翻译 以下为原文 Hi H L, Dana! I have done a sample project to scan SLA of DS1307 with PSoC1 CY8C24123A. But it can't work well. I'm using I2CHW user module for I2C protocol, I2CHW_fSendStart() function to check SLA , true or fail! If I use code ( this code is commented in project): // statusSLA = I2CHW_1_fSendStart(104, 0);//SLA of DS1307 is 0x68 = 104; 0 as I2CHW_WRITE TX8_PutSHexByte(statusSLA); TX8_PutCRLF(); DelayMsUnsignedInt(5); // statusSLA = 1 (true, checked SLA DS1307) appear once ( 1 time), not more. I think value of statusSLA always equal 1. I don't why! If I scan SLA to get true SLA of DS1307 by code: // for (i = 0; i < 128; i++) { statusSLA = I2CHW_1_fSendStart(i,0); DelayMsUnsignedInt(2); if (statusSLA == 0) { TX8_CPutString("Fail"); TX8_PutCRLF(); } else { TX8_CPutString("SLA = "); TX8_PutSHexByte(i); TX8_CPutString("FOUND!"); TX8_PutCRLF(); } } // I can't check SLA of DS1307, statusSLA = 0 (not vary). I think , when i = 104, I'll checked SLA of DS1307 truly (FOUND). I want while I scanning SLA of DS1307, I'll found it. Can you check project for me, please? Below is my project. Many thanks!
|
|
|
|
我建议关闭I2C主控器,在I2CHWW11sEnDistCar()之后失败。我不太确定当你做i2CHWY1ssEnthStor()时会发生什么,但我也会尝试这样做。
另外,我将使用I2CHWG11Read作为SeNestSistar()的第二个参数,而不仅仅是0(0),这将指示您尝试写入设备。 鲍勃 以上来自于百度翻译 以下为原文 I would suggest to shut down the I2C master after an unsuccessful I2CHW_1_SendStart(). I am not quite sure what will happen when you do an I2CHW_1_SendStop(), but I would try that as well. Additionally I would use I2CHW_1_READ as the second parameter to SendStart(), not just 0 (zero) which would indicate that you try to write to the device. Bob |
|
|
|
|
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2105 浏览 1 评论
1851 浏览 1 评论
3669 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1786 浏览 6 评论
1536 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
568浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
423浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
437浏览 2评论
383浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
915浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 10:25 , Processed in 1.250849 second(s), Total 83, Slave 77 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号