This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

USB descriptor for serial comm port

Hello,

I'm using a c8051F321 and I want to have a simple communication interface to this µC over USB.
Therefore I thought that a virtual serial comm port will be the right solution.
I know that I have to define the rigth usb descriptors, but I didn't find anything which matchs my intention.

Can anybody tell me how I can create a simple program for serial communication between the c8051f321 and my PC over usb.

thankyou.

  • I posted a CDC example to SiLabs Forum.

    USB CDC (Communication Device Class) implementation for 'F32x and 'F34x
    www.cygnal.org/.../000945.html

    Tsuneo

  • Thanks for that, I will test it as soon as possible.

    Thomas

  • Hi Tsuneo Chinzei.

    The code you have posted works very well, but I have a problem with the "CDC_ACM.inf".
    My laptop has windows 7 x64, but this driver is for x86. Is there a x64 driver. Otherwise I have to work with a virtual pc what is a little bit laborious.

    Thomas

  • Here is an INF file of CDC, tested both on Win7 x64 and x86
    http://www.keil.com/forum/17039/
    20-Jun-2010 21:26 GMT Posted by Tsuneo Chinzei

    Copy mcb2300-vcom.inf (Revised), and modify "Device List" and "String" section, as follows.

    ;------------------------------------------------------------------------------
    ;  Device list
    ;------------------------------------------------------------------------------
    
    [DeviceList]
    %DESCRIPTION%=MCB2300USB, USB¥VID_c251&PID_1705
    %COMPOSITE%  =MCB2300USB, USB¥VID_FF28&PID_0001&MI_01
    %MYDEV000%   =MCB2300USB, USB\VID_16C0&PID_06EA   ;;;; <---- add this line
    
    [DeviceList.ntamd64]
    %DESCRIPTION%=MCB2300USB, USB¥VID_c251&PID_1705
    %COMPOSITE%  =MCB2300USB, USB¥VID_FF28&PID_0001&MI_01
    %MYDEV000%   =MCB2300USB, USB\VID_16C0&PID_06EA   ;;;; <---- add this line
    
    ...
    ...
    ;------------------------------------------------------------------------------
    ;  String Definitions
    ;------------------------------------------------------------------------------
    
    [Strings]
    Keil       = "Keil - An ARM Company"
    DRIVER.SVC = "MCB2300 USB VCom Driver"
    DESCRIPTION= "MCB2300 USB VCom Port"
    COMPOSITE  = "MCB2300 MSC-CDC COM Port"
    MYDEV000 = "CDC ACM example device"       ;;;; <---- add this line
    

    Tsuneo