USBDemo, something to learn USB a little bit


Closed Thread
Results 1 to 40 of 279

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Done!  
    DT

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    Done!  
    $20 says a dozen people miss the 18Fxxxx.BAL note...

  3. #3
    Join Date
    Jun 2008
    Posts
    3


    Did you find this post helpful? Yes | No

    Unhappy Couple of Questions

    Ok so first of THANK YOU to everyone.

    I'm much further than I was a year ago already...which is a device windows enumerates....
    Now for the problem

    So i have a 2550. I commented out the old .inc file lines updated the ASM line to reflect the proper PBP version i have, implemented the corrected Fuse settings for the 20mhz crystal. and When I plug up the device to Windows I get "USBDemo" then it changes to two different things Hid compliant device and USB Human Interface Device. Then The HID compliant one disappears...then the USB Human Interface Device Gets an ! over it...

    If i run the USB demo VB program the Device Manager Updates and sometimes It will remove teh USB device all together...or sometimes just change to a USB Unknown Device.

    WTF?!

    Earlier I plugged it in and the DEMO vb Recognized it and displayed the RX data for like...20 loops....then then everything stopped. it didnt recognize the usb device anymore as the Mister_E USBdemo that the program previously displayed...

    Other than the ASM changes, "DEFINE OSC 20" and fuse changes ....i haven't changed anything software side. Hardware I have a .33uf because well...the store had a .47uf in 300volts size..and that was to large for the board..and kinda ridiculous. PBP version is 2.46
    Is there a setting in MELABS programmer for the internal pull ups? I saw there was on in the code..but maybe it was being overwritten?


    I've been toying for 3 days now...re reading the thread and looking at others...

    Also...I dont have a .BAL file...*.bal search turned up nothing.. GR....

    Anyone?
    Last edited by UnaKRon; - 7th June 2008 at 03:53.

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by UnaKRon View Post
    Other than the ASM changes, "DEFINE OSC 20" and fuse changes
    Which are rather large changes considering you have to have the right freq for the USB to run right in the first place.

    PBP version is 2.46
    Don't know if it'll fix your problem or not, but there is a 2.46 patch, and a few updates for $25 that gets you up to PBP 2.50A. A few fixes for USB and PIC18F types. Might help, might not.

    Is there a setting in MELABS programmer for the internal pull ups?
    Internal pullups on Port B are described in the datasheet for the particular PIC.

    Also...I dont have a .BAL file...*.bal search turned up nothing.. GR....
    And you won't unless you're using PBP 2.50A.

  5. #5
    Join Date
    Jan 2007
    Location
    Brazil
    Posts
    108


    Did you find this post helpful? Yes | No

    Default

    Hello..

    I'm using 18F2550 and USB is working very well... I've been trying to increase the buffer size from 8 to 16 but it do not work.

    On Pic's code, I've only changed this:
    Code:
    BufferSize      con 16
    ' BufferSize      con 8
    On VB's code, this:
    Code:
    Private Const BufferInSize = 16
    ' Private Const BufferInSize = 8
    Any idea of what is the problem?

    Thanks!!
    Sylvio,

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    The IN/OUT "Report" length is usually set in one of the easyHID dialogs.
    Or it can be changed manually in the Descriptor file.

    If you re-run easyHID for the same project, it will wipe out any changes you've made. So create a new project, set everything the way you want it in easyHID, then just copy the descriptor file to your existing project.

    hth,
    DT

  7. #7
    Join Date
    Jan 2007
    Location
    Brazil
    Posts
    108


    Did you find this post helpful? Yes | No

    Default

    Done! Perfect Darrel!

    Thanks a lot!
    Sylvio,

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 08:55
  2. How to receive stream of bytes using PIC USART
    By unifoxz in forum mel PIC BASIC Pro
    Replies: 34
    Last Post: - 20th June 2009, 11:38
  3. Replies: 9
    Last Post: - 31st July 2008, 09:56
  4. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 01:55
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 02:07

Members who have read this thread : 1

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

Tags for this Thread

Posting Permissions

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