USBDemo, something to learn USB a little bit


Closed Thread
Results 1 to 40 of 279

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    O.K. the original code was for a 4550. You need to rebuild the project in EasyHid for a 2550. There's a load of needed files.

    I've uploaded the 2455 and 2550 stuff here. let me know what happen now. The 2550 have been tested... but i don't have any handy 2455.

    I've also uploaded the schematic, if some need it.

    NOTE: If your going to use LONG variables, you MUST copy the PIC18Xxxxx.BAL file in your source directory as well, unless you'll receive some compilation errors.

    The .BAL file is located in \PBP\USB18 directory.
    Attached Images Attached Images
    Attached Files Attached Files
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    OK i received those 2455 today, the files i sent work as suppose to.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3


    Did you find this post helpful? Yes | No

    Smile

    I downloaded the 2550 zip, then the 4550 zip.

    compiled the 2550 example, blew it, plugged it in, nothing, then remembered the crystal speed (I'm on a 16) so went into programmer software and changed div from none to 4, nothing.

    changed all fuse setting in programmer software to what I usually have, worked first time!

    Ran the VB demo, picked it up and worked a treat!

    I was going to update one of my toys with the fake comport CDC but this, well, so much better!

    Thanks a million for showing me it can be done without expensive development kit, this thread should be tagged as a sticky at the top of the forum!

    (yes I had it working in about 20 minutes, this from me that usually has all kinds of problems!) (And I dont even have a proper dev board, just a homebrew with leds etc)

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default



    Welcome in the USB world

    Glad to hear you like it.

    Enjoy!
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Like it I love it!


    just about to start a little project with it now, or at least block one out, so I have a quick question.....

    If I was to use hserin to receive a string of long slow bytes, say 160chars at 1200, would it cause a problem with the USB not being serviced while hserin recieved the bytes, especially if say the incoming data was short, say only 10 chars sent, hserin would have a timeout but if it sat there for 2 seconds, would it drop the USB?

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    yes or not, i would recommend to use the POST 148 version with Darrel Taylor instant interrupt instead of ON INTERRUPT.

    See that link...
    http://www.picbasic.co.uk/forum/show...&postcount=148
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    Join Date
    Sep 2006
    Posts
    42


    Did you find this post helpful? Yes | No

    Default Error

    hi,

    getting these errors: PBP 2.47, Microcode Studio 3.0.0.0 and MPASM 7.31

    ERROR: Macro USBINIT? not found in macro file.
    ERROR: Macro USBSERVICE? not found in macro file.
    ERROR: Macro USBIN?CBBL not found in macro file.
    ERROR: Macro USBOUT?CBBL not found in macro file


    Thank you,

    Regards..
    Last edited by naga; - 22nd August 2007 at 12:10.

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 07: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, 10:38
  3. Replies: 9
    Last Post: - 31st July 2008, 08:56
  4. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 00:55
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01: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