Pic 18f Usb


Closed Thread
Results 1 to 40 of 135

Thread: Pic 18f Usb

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Private Const VendorID = 6017
    Private Const ProductID = 2000

    Check to make sure the vendor & product ID numbers in your VB source match the vendor/product ID #'s in the PIC framework files generated by EasyHID. If these don't match, the VB app will never respond.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  2. #2
    Join Date
    Feb 2005
    Location
    Essex, UK
    Posts
    154


    Did you find this post helpful? Yes | No

    Default

    Although i have changed the ProductID from 2000 to 2005, the device is recognised.

    The VB program displays a text box which says USB Device Connected or indeed Disconnected, depending on its status.

    So, i think this bit is OK.

    Steve

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    What exactly is happening? Are you getting nothing on the label caption? Have you verified your hardware with something simple like reading the A/D input, and displaying the result on an LCD, serial terminal, etc?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  4. #4
    Join Date
    Feb 2005
    Location
    Essex, UK
    Posts
    154


    Did you find this post helpful? Yes | No

    Default

    Basically i'm putting 5v on the PORTA.0 pin and just gettin 'label1' in the label of VB.

    Should VB always be updating and looking at the USBinput or should there be a READ button thats calls the procedure?

    Also on the VB side it has:

    Code:
    MyText = (CStr(BufferIn(1)) + Chr$(BufferIn(2)) + CStr(BufferIn(3)) + CStr(BufferIn(4)) + CStr(BufferIn(5)) + "V")
    Most of it contains CStr but the bit thats contains Chr$, i presume thats for the "." as sent from the PIC.

    I've tried playing around with it, but still no joy. If you have it, is it worth sending me the vb source file you have just for this bit?

    Are you on messenger, i am, i thought it might be easier to converse?

    Thanks again,

    Steve

  5. #5
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    I'll be happy to send you the working source for one example. Email me directly at tech@rentron
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. USB CDC Communications for Dummies!
    By Squibcakes in forum USB
    Replies: 104
    Last Post: - 15th January 2014, 14:43
  2. Reading a slave USB with a pic
    By pcaccia in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 25th October 2008, 13:00
  3. Replies: 15
    Last Post: - 30th October 2007, 20:25
  4. USB communication with pic
    By Shamir in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 15th August 2006, 00:43
  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 : 1

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