如何通过USB总线将数据发送到微控制器

如何通过USB总线将数据发送到微控制器

本文介绍了如何通过USB总线将数据发送到微控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

我有两个主要问题要问专家.现在,这是情况.

我有一个微控制器,它是pic 18f2550. 18f2550支持USB,可通过PC进行高速数据传输.

首先,我想问的问题是:

我如何将数据通过数据发送到pic,以便它可以进行简单的I/O操作(如led闪烁)……据我所知,.Net框架不支持轻松实现代码的类.那我该怎么办?

第二个问题:例如,如果我想制作一个数据采集卡通过USB来获取数据,我是否需要为该设备编写驱动程序?如果是这样,我该怎么做?用C ++创建库并将它们嵌入C#项目中?

我需要任何建议,所以任何想法都会受到赞赏.

最好的问候...

Hey everyone.

I have 2 main questions to ask to the experts. Now, here is the situation.

I have a micro controller which is a pic 18f2550. 18f2550 supports USB to communicate in high rates of data transfer over PC.

First, question I want to ask is:

How can I send data over data to pic, so that it can make simple i/o operations such as led blinking... As far as I know, the .Net framework doesn''t support a class to implement code easily. So What should I do?

Second question: if I want to make, for example a data acquisition card, that gets data over USB, do I have to write a driver for that device? if so, How can I do that? Making libraries in C++ and embed them in C# project?

I need any kind of suggestions guys, so any idea will be well appreciated.

My best regards...

推荐答案



这篇关于如何通过USB总线将数据发送到微控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 23:00