×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Using microcontrollers to pass values through USB to computer

Using microcontrollers to pass values through USB to computer

Using microcontrollers to pass values through USB to computer

(OP)
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?

RE: Using microcontrollers to pass values through USB to computer

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 www.microcontrollers.com 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

RE: Using microcontrollers to pass values through USB to computer

(OP)
I'm hoping that for my application, I can use basic, otherwise I'll be using C

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources