Microchip
直播中

崔丽

7年用户 231经验值
私信 关注
[问答]

怎么用PIC3MX220F03B和PICIT 3使用PIC的ADC获得ECG信号

你好,我想用PIC3MX220F03B和PICIT 3使用PIC的ADC获得ECG信号,并通过USB发送数据,尽可能简单。我用MCC写了一个代码,使用ADC,但是我不能写任何代码给USB(我用PIC32 MX读取了很多关于USB的东西,但是没有帮助我)。我问关于使用和声,然后,有人建议我看HID设备在传统的MLA,但有这么多的文件,我不能理解的代码。有人能帮助我说我应该寻找什么样的文件,以及我需要改变什么?我已经花了3个星期的时间来解决这个问题。我没有任何启动工具包,也没有USB协议的经验。欢迎任何帮助,谢谢!亚历山大

以上来自于百度翻译


      以下为原文

    Hi, I'd like to use PIC3MX220F032B and PicKit 3 to get an ECG signal using the pic's ADC and send the data, something as simple as possible, by USB. I used MCC to wrote a code usind the ADC, but I couldn't write any code to USB (I read many things about USB using PIC32mx, but nothing helped me). I asked about using HARMony, then, someone suggested me to look at HID device on Legacy MLA, but the are so many files, and I cant undestand the codes. Could someone help me saying what exactly file should I look for and, what I need to change on it? I've already lost 3 weeks trying to solve this by myself. I don't have acess to any start kit, neither USB protocol experience.
Any help is welcome, Thanks!

Matheus Alexandre

回帖(6)

陈晨

2019-3-12 09:42:40
你可以用和声。2。下载MLA的最后版本。无论是哪种方式USB都不是超级简单的。对于MLA,你会选择一个匹配YouTube的示例项目。HID?疾病预防控制中心?什么样的USB。并且识别PIC32 MX设备,还是主机?如果你很忙,这是一个项目,你可以使用一个FTDI或微芯片USB串行IC。或者是FTDI智能电缆。

以上来自于百度翻译


      以下为原文

    You can either
1.Use Harmony.
 
2. Download the last Version of MLA.
 
Either way USB is not super simple.
For the MLA you would choose a Sample Project that matched yous needs.
HID? CDC? what kind of USB. And id the PIC32MX the Device, or Host?
 
If you are in a rush and this is a one of project, you can use an FTDI or Microchip USB to serial IC.  Or an FTDI Smart Cable.
 
举报

王焕树

2019-3-12 09:47:51
“简单”和“USB”不一致。USB不是一个简单的外围设备,就像一个UART,在那里你可以把数据扔到它并把它放在PC中(如果你想要的话,把一个FT23 2RC芯片添加到你的项目中),否则,你的代码必须包括作为USB接口出现的所有支持例程。LVE设备,这正是NKurzman刚刚建议你怎么做的。

以上来自于百度翻译


      以下为原文

    "Simple" and "USB" do not go together.
USB is not a simple peripheral like a UART, where you can just throw data at it and have it come out in the PC.
(If that's what you want, add an FT232R chip to your project)
 
Otherwise, your code has to include all the support routines required to appear as a USB slave device, which is what NKurzman has just advised you how to do.
举报

陈晨

2019-3-12 09:56:05
或者CabelHTTP://www. ftdiiq.COM/Studis/CabLeS/UBTTLILALAL.HTMMIC芯片,因为这是它们的Fuur.HTPp//www. McCHIP.COM/WWWORDSTMS/En/En66923。

以上来自于百度翻译


      以下为原文

    Or the cable 
http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm
 
Microchips offering ,since it is their forum.
 
http://www.microchip.com/wwwproducts/en/en546923
举报

王焕树

2019-3-12 10:07:56
同意。注意,你可以在易趣网上获得非常便宜的电缆,这是“类似的”工作。他们将使用FTDI驱动程序作为一个基本串行端口,但是你不能以任何方式重新配置它们,因为车载EEPROM是只读的。

以上来自于百度翻译


      以下为原文

   


Agreed.
Note, you can get very similar cables on eBay much cheaper, which "sort of" work the same.
They will work as a basic serial port using the FTDI drivers, but you cannot reconfigure them in any way because the on board EEPROM is read-only.
 
举报

更多回帖

发帖
×
20
完善资料,
赚取积分