USB CDC Communications for Dummies!


Closed Thread
Results 1 to 40 of 105

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: USB CDC Communications for Dummies!

    The VUSB cap is a must.
    I have not used the chip you are using. do you have a 4550 or 2550?
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869

    Default Re: USB CDC Communications for Dummies!

    In case any one wants to look, here is the schematic and "manual" seeing how I am having trouble with anything tonight, (the pullups do not exist on the board), Maybe I should give this one a break for a bit.

    No, I don't have any of those chips. I was hoping to be able to get this to work on a premade board. Seems like it should be possible. One thing I don't like, with the ready made code provided by melab, It takes more time to chase down what is ( or is not) going on.

    Does it make sense that if I can use microchips USB bootloader, the hardware side of things are ok?
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: USB CDC Communications for Dummies!

    Looks like that board can be powered from the USB port. Is that what you are doing? If so, try powering it from another source.

    Are you connecting the board for testing to the same machine PBP is on? If not, did you copy mchpcdc.inf to the PC?
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869

    Default Re: USB CDC Communications for Dummies!

    So far I have tried powered from USB, and powered from PK3. It is on the same PC as PBP, but it is a win7/64 machine. I see earlier you posted an update for win 64 machines and that file. While I haven't downloaded that yet, I would still expect to get the de-dum when I plug in the cable. Even if win can't figure out what to do with it.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: USB CDC Communications for Dummies!

    If the correct driver is not there the PC will not ding dong. It will just sit there or if you are lucky it will say it does not know what is plugged in. If you have PBP 2.6 you hqve the file needed for win 64. I think.
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869

    Default Re: USB CDC Communications for Dummies!

    Well I have PBP 2.6C, So I think I must have all the proper files. I copied the entire contents of the USB18 folder to a new folder. started MCS, selected PIC18F67J50. Opened cdc_demo.pbp from the new folder. Hit compile, all was fine. programed chip. plugged in USB and waited. for at least 10 seconds. no indication from PC that I had plugged it in.

    Now I listed these step just to be clear that is ALL I did. If I need to move a .inf file somewhere, or anything else like that, I have not done it.

    On a side note, thought I would distract myself by installing VB 2010 express. Well that has also been FAIL! I am thinking I need to throw all this new crap in the trash and bust out an old dos machine. (yes I have some) I bet PBP will even run on that.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  7. #7
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869

    Default Re: USB CDC Communications for Dummies!

    Found this on another forum:
    The Microchip pic67j50 has a different USB ram location to standard USB devices. I know Les did do a conversion of the USB code for me and I got it to work with basic hid and CDC
    Not sure if this could have anything to do with this. But at least I have a new place to look. Here I come RAM
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

Similar Threads

  1. Simple USB Comms Problem
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th January 2010, 21:17
  2. One USB keyboard to Two USB Ports
    By picnaut in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th June 2009, 01:04
  3. USB CDC help..
    By jchandir in forum USB
    Replies: 6
    Last Post: - 22nd November 2008, 22:23
  4. Replies: 4
    Last Post: - 5th November 2008, 17:21
  5. USB PIC without USB Connection
    By Tissy in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 26th December 2005, 18:39

Members who have read this thread : 3

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts