完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
PIC24FJ256GB206——MPLAB X 4.15——MCC V3.55.1-USB框架Lite V1.25.5MCC以前在这个项目中使用来建立基本的系统、I/O引脚、定时器、ADC等-所有的工作都很好。我想让我的设备与我的PC一起工作,就像用一个老式的RS232 UART链路和Ter一样。一个术语-但使用USB。如果我用Tya术语从我的电脑上发送一些USB链接的字符,我会在PIC24中看到它们。如果我从我的PIC24发送一些字符,他们会出现在特拉。(我以前使用PIC24 UART多次,并知道如何做)。添加USB串行链接:打开项目后,我启动MCC并选择“MLA USB设备Lite(USB…)”。主配置屏幕离我的计算机屏幕底部很近,没有滚动条就没有了。可到达的(已知的bug?)我决定接受默认值,不管它们是什么,所以我可以开始将USB添加到我的项目中。我想我可能会担心稍后更改设置。我点击生成,并运行到完成而不抱怨-相当多的源文件和头文件被添加到我的项目。然后我点击“构建项目”和所有构建没有错误。在我的项目中,我使用了USB代码的主机,最好有一些例子,我可以试试吗?我尝试了几次谷歌搜索没有运气。(许多微芯片页有404个错误,并提供了MRE 4.04美元的折扣。)
以上来自于百度翻译 以下为原文 PIC24FJ256GB206 -- MPLAB X 4.15 -- MCC v3.55.1 -- USB Framework Lite v1.25.5 MCC previously used in this project to set up basic system, I/O pins, timers, ADC, etc. - all working well. What I want to do is have my device work with my PC just like it would with an old-fashioned RS232 UART link and Tera Term - but using USB. If I send some characters over the USB link from my PC using Tera Term I will see them in my PIC24. And if I send a few characters from my PIC24 they will show up in Tera Term. (I've done this using the PIC24 UART many times before and know how to do it.) Adding USB serial link: After opening the project, I started MCC and selected 'MLA USB Device Lite [USB ....]'. The main configuration screen was well off the bottom of my computer screen, and with no scroll bars it was unreachable (known bug?). I decided to accept the defaults, whatever they were, so I could get started on adding USB to my project. I figured I could worry about changing settings later on. I clicked on Generate, and that ran to completion without complaining - quite a few source and header files were added to my project. Then I clicked on 'Build Project' and everything built without error. Is there some sort of tutorial on initializing and using the host of USB code I now have in my project, preferably with some examples I can try? I've tried several Google searches without luck. (Many Microchip pages were 404 errors and offered mre $4.04 discount.) |
|
相关推荐
4个回答
|
|
我觉得这个折扣很有意思。我想知道谷歌是否缓存了旧链接。
以上来自于百度翻译 以下为原文 I found this discount quite interesting. I wonder if google cached the old links. |
|
|
|
USB框架Lite V1.26现在可以在MCC中生成一个CDC示例,演示如何使用CDC设备进行简单的回环。这将产生一个额外的文件/函数,当从main main调用时,通过USB将任何字符发送到PIC并将其发送回主机终端。一般来说,MCC正在拉入项目的USB堆栈的最佳用途仍然是微芯片库。应用程序IE:HTTP://www. McCHIP.COM/MPLAB/MICHCHIP-Labor应用程序
以上来自于百度翻译 以下为原文 The USB Framework Lite v1.26 can now generate a CDC example within MCC that demonstrates how to use the CDC device for a simple loop back. This should generate an extra file/function that when called from main will increment any character sent to the PIC via USB and send it back to the host terminal incremented. In general the best place for example usages of the USB stack that MCC is pulling into projects is still the Microchip Libraries for Applications: http://www.microchip.com/mplab/microchip-libraries-for-applications |
|
|
|
我刚刚完成了所有的运行。最后使用MLA USB和CDC演示项目为Explorer 1632,这是在同一处理器家族。首先,我在探险家那里跑了出来。然后我开始了一个新的项目,复制了源文件,建立了它,让演示在我的板上运行。我必须改变LED和按钮(Button)的分配,但是其他的工作都很好。在我的板上有一组USB文件,然后我把它们复制到我的项目中。配置有一些问题:我原来的MCC配置和MLA演示配置都在那里——链接器找到了重复的地址。然后它建立了OK但没有运行。我有时钟问题:尽管已经配置了我的项目中的时钟(使用MCC)获得USB兼容的时钟设置,尽管MCC USB盒显示为检查和96兆赫的USB时钟存在,USB将不运行。我必须改变我的时钟设置,重新计算我的定时器常数,回到我所需要的其他时间。我期待中断问题,但我没有任何。USB堆栈工作良好,做我所需要的,是健全的-你可以拉动USB插头,并随时更换它和康涅狄格州。右后卫。有USB活动的LED是一个明确加上在你的项目之一。我可以在我的板上使用一个备用的LED。小问题:如果你使用一个USB端口上的TARA术语来和你的项目交谈,一个USB皮卡3在同一台电脑上进行编程和调试,两个USB驱动程序可能会发生冲突和干扰。不是100%,而是够烦人的。可以使调试有点棘手。可能这两个USB设备都是微芯片的事实是一个根本原因。非常感谢FAE米迦勒CRAY提供有用的建议、建议和鼓励。我期待着在BC上面引用的MCC内尝试USB框架Lite V1.26CDC示例。
以上来自于百度翻译 以下为原文 I just finished getting it all up and running. Ended up using MLA USB and a CDC demo project for Explorer 1632 which was on the same processor family. First I got it running 'out of the box' on the Explorer. I then started a new project, copied over the source files, built it, and had the demo running on my board. I had to change the LED and switch (button) assignments but otherwise it all worked well. With a set of USB files that worked on my board, I then copied them into my project. There were some problems with configuration: both my original MCC config and the MLA demo config were there - Symptom was linker found duplicate addresses. Then it built OK but didn't run. I had clock issues: despite having configured the clock in my project (using MCC) to get a USB compatible clock set-up, and despite the MCC USB box showing as checked and a 96 MHz USB clock present, USB would not run. I had to change my clock setup and recalculate my timer constants to get back to the same periods I needed elsewhere. I was expecting interrupt issues, but I didn't have any. The USB stack works well, does what I needed, and is robust - you can pull the USB plug and replace it at any time and it connects right back up. Having a USB activity LED is a definite plus - put one in your project. I was able to use a spare LED on my board. Small issue: if you're using Tera Term on a USB port to talk to your project, and a USB PICKit 3 for program and debug on the same PC as I was the two USB drivers can conflict and interfere. Not 100% but enough to be annoying. Can make debugging a bit tricky. Possibly the fact that both USB devices are Microchip is a root cause. Many thanks are due to FAE Michael Cray for helpful suggestions, advice and encouragement. I'm looking forward to making time to try the USB Framework Lite v1.26 CDC example within MCC referenced by 'beans' above. |
|
|
|
我已经创建了两个USB PC/PIC项目。第一个是基于一个在Pay18F450/2550.www. WaigtFrFiDayay.com上的项目。第二个是使用PIC32 MX220,我开始使用和声,并添加了来自UBSHID项目App.c和App.H的顶层。这两个工作都很好,但是PIC32具有更快的A2D。为了我的项目。
以上来自于百度翻译 以下为原文 I have created two u*** PC/PIC projects. The first one was based on a project at www.waitingforfriday.com for PIC18F4550/2550. The second one was using a PIC32mx220 which I started using Harmony and added the top layer from USB_HID project app.c and app.h. Both work great but the PIC32 had a faster a2d for my project. |
|
|
|
只有小组成员才能发言,加入小组>>
5166 浏览 9 评论
2000 浏览 8 评论
1929 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3175 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2227 浏览 5 评论
736浏览 1评论
618浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
507浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
633浏览 0评论
530浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-25 02:18 , Processed in 1.414013 second(s), Total 85, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号