完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我想了解I2C代码是如何在和声框架中实现的。我使用的是IASCII中断代码作为BASYS。我尝试使用PIC32 MX975 F512H作为主机,并将I2C总线转换成USB通过CH34 1A转换器。我如何检查我的Windows PC中的I2C通信?我需要像UART实时控制台之类的东西,有人能帮我吗?非常感谢你。
以上来自于百度翻译 以下为原文 Hi,. I am trying to understand how the I2C code can be implemented in HARMony Framework. I am using the exemple code I2C_interrupt code as basys. I am trying to use PIC32MX975F512H as Master and convert I2C bus to USB throught CH341A converter. How can I check the I2C communication in my Windows PC? I need something like UART Realterm Console. Anyone can help me? Thank you a lot |
|
相关推荐
8个回答
|
|
HI,DRVIII2CYBuffRyEngEnter是“枚举”数据类型的名称,它是I2C传输操作的可能状态或结果的列表。AppHyI2CyDRIVRIGHORD句柄和AppHyI2CYBuffrHead句柄都被用来作为驱动对象的不透明句柄类型。它们有点像美联储前包裹的追踪号码。您应该使用句柄作为一个没有其他含义的数字,作为标识实际传输的标签。您已经在头文件中找到的“TyPulfUntPrTrt”,显示它实际上是一个使用的内存地址,指向某个关于传输峰的信息。你不应该用任何其他方式来使用这个句柄,而不是作为一个函数的参数,它要求传输的命运,它是否在等待,在传输中,已经成功到达,或者已经崩溃。
以上来自于百度翻译 以下为原文 Hi, DRV_I2C_BUFFER_EVENT is the name of a 'Enumeration' data type, that is a list of possible states or outcomes for a I2C transfer operation. APP_I2C_DRIVER_HANDLE and APP_I2C_BUFFER_HANDLE are both meant to be used as the type of opaque handles to driver objects. They work somewhat like a tracking number to a Fed-EX package. You are supposed to use the Handle as a number with no other meaning than as a label to identify the actual transport. The 'typedef uintptr_t' that you have located somewhere in a header file, reveal that it is actually a memory address used, pointing to somewhere information about the transfer might be stored. You are still not supposed to use the handle in any other way, than as a argument to a function asking for the fate of the transfer, whether it is waiting, is in transport, have arrived successfully, or have crashed. Regards, Mysil |
|
|
|
这是你方的一个很好的解释。非常感谢。现在,我尝试使用PIC32 MX975 F512H作为主机,并将I2C总线转换为USB通通TFT222H转换器。我如何检查我的Windows PC中的I2C通信?我需要像UART实时控制台之类的东西。有可能吗?有人能帮我吗?
以上来自于百度翻译 以下为原文 That was a very good explanation from your side. Thank you a lot. Right now, I am trying to use PIC32MX975F512H as Master and convert I2C bus to USB throught FT2232H converter. How can I check the I2C communication in my Windows PC? I need something like UART Realterm Console. Is it possible? Anyone can help me? |
|
|
|
我使用我的微微范围或我的逻辑分析仪解码UART/SPI/I2C流-它便宜,快速,它是一个第三方“看”的比特。LogiPART-低成本逻辑分析仪,成本= MeimPoPoTeCo -低成本范围(W/解码),成本=高成本=便宜!有可能像皮卡2一样(大约10美元),但我没有一个(你仍然可以在易趣网上购买)。
以上来自于百度翻译 以下为原文 I use my Pico Scope or my Logic Analyzer for decoding USART/SPI/I2C streams - it's cheap, fast and it is a third party 'look' at the bits. LogicPort - Low cost Logic Analyzer, Cost = Medium PicoTech - Low cost Scopes (W/Decoding), Cost = High For Cost = Cheap! It is possible to something like a PicKit 2 also (Around $10 USD), but I don't have one of those (You can still buy them on ebay). HTH |
|
|
|
你是说Pickit 2能够分析这些溪流吗?关于皮卡3?非常感谢你。
以上来自于百度翻译 以下为原文 Do you mean that Pickit 2 is capable to analyse the streams? And about Pickit 3? thank you a lot |
|
|
|
嗨,Both PICkit 2和匹克特3有相同的可能性被用作一个简单的逻辑分析器,但不是在同一时间作为调试使用。有一个线程2天前:http://www. McCys/Founs/FindPost /99069Eddi:然后,有程序,如虚拟分析仪,可以我们在你的PC中的声卡中的ADC,以2个频道观看数字或模拟信号,采样率高达大约100千赫。仅仅一些电阻作为分压器连接,以及从废弃耳机上剪下的插孔插头。HTTP://www. SelaNunuSt.Org/MysIL
以上来自于百度翻译 以下为原文 Hi, Both PICkit 2 and PICkit 3 have the same possibility to be used as a simple Logic analyzer, but not at the same time as beeing used for Debugging. There was a thread just 2 days ago: http://www.microchip.com/forums/FindPost/999069 Edit: Then, there are programs such as Virtual Analyzer, which may use the ADC in the sound-card in your PC to watch Digital or Analog signals for 2 channels with sampling rate up to about 100 kHz. Just some resistors connected as voltage dividers, and a snipped-off jack plug from a discarded headset? http://www.sillanumsoft.org/ Mysil |
|
|
|
谢谢MysIL-你慢跑我的记忆我实际上是在思考皮卡2串行分析器-它仍然是可用的并且有直接解码GUI。我提到的范围和逻辑分析器也有直接解码GUI的意思,你不必将1和0转换成十六进制格式(甚至ASCII格式),这是由解码器完成的。正如在链接中指出的,PIKITK2和3需要I2C的保护,因为它们里面有下拉电阻。你还必须用手解码比特流——“哦,麻烦…”;
以上来自于百度翻译 以下为原文 Thanks Mysil - You jogged my memory I actually was thinking of the PICKIT 2 Serial Analyzer - It is still available and has a direct decoding GUI. The Scope and Logic Analyzer I mentioned also have direct decoding GUI's meaning you don't have to convert the 1's and 0's to hex format (or even ASCII format) as that is done by the decoder. PICkit Serial AnalyzerPart Number: DV164122As noted in the links the Pikkit2 and 3 require care with I2C because they have pull down resistors inside. Also you have to decode the bit stream by hand - "Oh Bother..." ;-) |
|
|
|
|
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
5238 浏览 9 评论
2028 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3204 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
774浏览 1评论
664浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
592浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
674浏览 0评论
574浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 19:43 , Processed in 1.298389 second(s), Total 61, Slave 54 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号