Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using microcontrollers to pass values through USB to computer

Status
Not open for further replies.

AlanTheWoo

Electrical
Nov 11, 2002
7
For my current project, I'm reading off many discrete samples of a waveform and then plotting them on a computer. Would it be efficient to simply latch each sample, then immediately transfer it through the USB to the computer? Or should I first store it in chunks of some kind? Can someone with experience recommend a USB microcontroller and maybe even include some sample code?
 
Replies continue below

Recommended for you

I would first store the data as the data may come in faster than the microcontroller can send it. If your microcontroller can handle simultaneous interrupts, I would use one interrupt to poll the incoming data and another to generate the serial timing to send the data to the USB device. For information on interfacing USB to a microcontroller you can pick up a book titled "USB Complete" written by Jan Axelson, Author of the best selling books "Parrallel Ports Complete and Serial Ports complete. I'm not sure which if any microcontrollers have built in USB capability. You can try Before attempting to find a microcontroller I would first purchase the book USB Complete. What language do you intend to program in?

best regards, PLCSAVVY
 
I'm hoping that for my application, I can use basic, otherwise I'll be using C
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor