USB CDC Communications for Dummies!


Closed Thread
Results 1 to 40 of 105

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Posts
    6

    Default

    OK, I was finally able to get this working.

    I was using the USBTEST files above.

    I added the extra configs for the write protect stuff that was not in the code and VOILA!!!, it works now.

    It seems to be an issue with the PicKit2. It barks at you if those configs are not included, it usually isnt an issue as long as the important ones are defined. However in this case I assume since they were missing , the PicKit2 changed some of the needed configs to something incompatible for some reason.

    This should not be the issue, however it works. I removed the extra configs and it doesnt work, add them and its just fine!!!

    Now to figure out how to get data INTO the pic.

  2. #2
    Join Date
    Jan 2009
    Posts
    6

    Default

    Also, for 20mhz crystal/resonator, you MUST change the osc type to HS instead of XT.

    HS will not work on 4Mhz, and vise versa.


    SO,
    here is what to do to get it working, "for sure". It seems to work for some with different setting however.

    Ensure PPLDIV is 1 for 4Mhz, 5 for 20MHz
    Ensure osc type is XT for 4MHz and HS for 20MHz
    Include ALL config options.

    After experimenting fpr days on end these seem to be the things that affect it most, for me anyway.

Similar Threads

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

Members who have read this thread : 2

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