usb to microcontroller

Discussion in 'Programmer's Corner' started by vais, Mar 13, 2013.

  1. vais

    Thread Starter New Member

    Jan 27, 2008
    3
    0
    hey every one.
    i have a question that i saw countless times over the internet but didnt found good answer: how do i make good real time communication between a controller to a pc.

    although in some controllers the datasheet explains great how to program to open the usb port of the chip

    but non info on how to program a program in .net or matlab to communicate through this port.

    and one have good info on this?
     
  2. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
    That depends on what your USB device looks like. When I do real time comms I typically make the USB look like a COM port, known in USB-speak as a CDC for Communications Device Class.

    This lets you use the methods that talk once talked to serial ports.

    But... it depends on what your device looks like. If you make your own class you may need your own drivers.
     
  3. nigelwright7557

    Senior Member

    May 10, 2008
    487
    71
    There is a full USB project at www.waitingforfriday.com including PIC and PC code.

    It starts off as just turning an LED on and off via USB but you then have the basis for other projects.
     
Loading...