This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to Read/Write few Bytes of data from a Microcontroller using USB ?

Hi, I am new to USB.

My basic requirement is that the microcontroller (TI LM4F232H5QD) has few bytes of data (13 bytes as of now).

The outside world should be able to read those Bytes when ever it needs.

Say, The outside world (Master) requests data, then the controller will fetch the data and return to the Master.

I implemented the same functionality using UART, I2C and ModBus so far.

But how do i do it using USB ?

I am confused between so many classes in the USB.

A little guidance will help me a lot.

Thanks in advance.

  • Anyone ?

    Just a little guidance would be great...

  • Feroze Mohamed said:

    I am confused between so many classes in the USB.

    Feel you pain.  Might your choice/effort "simplify" by focusing upon those USB "classes" w/in the capability of your MCU - and modeled w/in various code examples?  Appears that this method provides, "self-limiting" USB class selection - which at this early stage may work well to your advantage.

    May further serve you to search under keyword USB - both Stellaris & newer forum - and check for code details w/in those MCUs which provide USB functionality.

    Further - often helpful to examine "near, commercial based products" - see what/how/why (if possible) they implement their USB schemes.  Armed w/this new knowledge - your selection & subsequent development efforts may be both strengthened & eased...

  • Feroze,

    Maybe this project on my site will be useful for you: http://wiki.kucia.net/doku.php?id=projects:qtusb

    Unfortunately USB is not straightforward. I would focus on CDC for a first steps. 

    Regards,
    Maciej