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

    I've used it, and if you're looking to get started with USB, then Dave's new
    EasyHID & the PIC18F4550 are definitely the way to go.

    Download & install EasyHID.
    http://www.mecanique.co.uk/products/usb/easyhid.html

    I have several projects for USB coming shortly, but in the mean time, I've
    loaded the files for a complete USB project on our website.

    The zip file contains PBP source code for a PIC18F4550, and VB source for a
    USB analog data-logger. Should be fun for anyone interested in tinkering with
    EasyHID and the new full-speed 18F USB parts.

    Here are the files: http://www.rentron.com/mcstudio/EasyHIDPrj.zip

    You'll need VB6 & SoftWire. You can download SoftWire from here. It's free.
    http://www.softwire.com/swdownload/softwiredownload.htm

    I used the activx controls in SoftWire for the analog meter interface. Really
    nice stuff.

    You'll also need PBP version 2.46 since this is the version offering support for
    the newer 18F USB parts.

    If anyone's looking for an excellent book on USB, then grab a copy of Jan
    Axelson's new 3rd edition of USB Complete. We just got them in. I spent the
    last few days reading mine, and it's awesome.

    Jan has done an outstanding job on her 3rd edition of this book. Even "I" can
    understand it now...;o]
    Regards,

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

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default

    I'm also in the middle of trying to use EasyHID. I'm just not sure where the USB18.ASM file fits in the grand scheme of things.

    I used the PIC18F4550, PBP and VB. The file is in the project PBP folder.

    I also got USB Complete as well as USB Design By Example. It's too bad they chose to use EZ-USB chips from Cypress or else I could have used their examples directly. Unfortunately I don't know enough about MPASM Assembler, let alone Cypress' version to convert things around.

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default

    Is it complicated to get the generated code to be compatible with the slower USB speed? I'd like to be able to connect to PCs that do not yet have USB 2.0.

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default

    Bruce,

    I get a LOT more files generated on the PIC side?

    It's that large Assembler file with all the VERY important USB routines that I don't know where that fits in. It doesn't seem to be linked with the PBP base program at all, or I missed something?

    Robert
    ?
    Attached Images Attached Images  
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default

    Bruce,

    Don't forget to add a README that mentions mcHID.dll and where the user can get it. Your PC-side code won't work without it.

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

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


    Did you find this post helpful? Yes | No

    Default

    Hi Robert,

    You should have 8 (PBP) files total generated by EasyHID. All this stuff is required, and included when you compile for the 18F USB part.

    Look in your PBP\USB18 directory for USB.TXT. This explains what most of
    the files are.
    Regards,

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

  7. #7
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default

    Thanks Bruce, that's the only place I hadn't looked for help.


    "The header file for the device, the files USB18.ASM, USB18MEM.ASM, USB18.INC, USBDESC.ASM and the project descriptor file, as well as any desired sample programs, should be copied to the project source subdirectory before being used."

    Ok, so we just have those files sitting there when we compile and the compiler takes care of everything, cool!


    "For low-speed USB operation, the main changes are to set the system clock postscaler to divide by 4 and change the define for UCFG_VAL in the descriptor file for the project. The sample project descriptor files show settings of UCFG_VAL for both full-speed and low-speed. With these settings, for full-speed, the PIC core runs at 48MHz. For low-speed, the PIC core runs at 24MHz."

    Ok, I haven't checked the details, but at least it's possible to adjust for low-speed USB, excellent!


    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  8. #8
    mbramwel's Avatar
    mbramwel Guest


    Did you find this post helpful? Yes | No

    Exclamation

    This is a very interesting thread. I am especially interested in the data logger. I was thinking about putting together a PIC based scope project. Something that could clip onto a few pins and display the waveforms on a PC screen. Your project looks very interesting. Any special hardware being used? How to you hookup the inputs without fear of over voltage?

    Do you get 0 to 5 volts readings or more like .7v to 4.xx readings?

  9. #9
    aman_b's Avatar
    aman_b Guest


    Did you find this post helpful? Yes | No

    Default links missing

    Hi
    I tried to access the link for zip file and the easy hid, but seems like they dont exist anymore. could you please attach them in the forum. That would very helpful
    Aman



    Quote Originally Posted by Bruce View Post
    I've used it, and if you're looking to get started with USB, then Dave's new
    EasyHID & the PIC18F4550 are definitely the way to go.

    Download & install EasyHID.
    http://www.mecanique.co.uk/products/usb/easyhid.html

    I have several projects for USB coming shortly, but in the mean time, I've
    loaded the files for a complete USB project on our website.

    The zip file contains PBP source code for a PIC18F4550, and VB source for a
    USB analog data-logger. Should be fun for anyone interested in tinkering with
    EasyHID and the new full-speed 18F USB parts.

    Here are the files: http://www.rentron.com/mcstudio/EasyHIDPrj.zip

    You'll need VB6 & SoftWire. You can download SoftWire from here. It's free.
    http://www.softwire.com/swdownload/softwiredownload.htm

    I used the activx controls in SoftWire for the analog meter interface. Really
    nice stuff.

    You'll also need PBP version 2.46 since this is the version offering support for
    the newer 18F USB parts.

    If anyone's looking for an excellent book on USB, then grab a copy of Jan
    Axelson's new 3rd edition of USB Complete. We just got them in. I spent the
    last few days reading mine, and it's awesome.

    Jan has done an outstanding job on her 3rd edition of this book. Even "I" can
    understand it now...;o]

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


    Did you find this post helpful? Yes | No

    Default

    Sorry. These files are no longer available since the support applications you would need to install to use them have been discontinued.

    Mecanique dropped the free version of EasyHID, and the VB6 version of Softwire is no longer available. Without these two applications, the .zip file would be useless.

    See Mr E's USB example here: http://www.picbasic.co.uk/forum/showthread.php?t=5418
    Regards,

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

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


    Did you find this post helpful? Yes | No

    Default

    problem now will be the .dll. Not sure if we are allowed to distribute it
    Steve

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

  12. #12
    Join Date
    Jul 2005
    Posts
    93


    Did you find this post helpful? Yes | No

    Default

    So basically now it's part of microcode studio right?

    This confused me too for a bit till i saw it in Microcode studio's "view" menu.

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


    Did you find this post helpful? Yes | No

    Default

    And those having the old black installation CD... don't have this chance 'till now (december 18/2007)

    Or once again, i still miss something... that's what happen when you're coming old.
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default

    It's an ODD one.

    Can't remember anyone UN-Releasing software that was once Free in the Public Domain.
    Till now.

    That's it, from now on, everyone must BUY Instant Interrupts. (NOT!)
    Pffft!
    <br>
    DT

  15. #15
    wjfong's Avatar
    wjfong Guest


    Did you find this post helpful? Yes | No

    Default Re: Pic 18f Usb

    Quote Originally Posted by Bruce View Post
    I've used it, and if you're looking to get started with USB, then Dave's new
    EasyHID & the PIC18F4550 are definitely the way to go.

    Download & install EasyHID.
    http://www.mecanique.co.uk/products/usb/easyhid.html

    I have several projects for USB coming shortly, but in the mean time, I've
    loaded the files for a complete USB project on our website.

    The zip file contains PBP source code for a PIC18F4550, and VB source for a
    USB analog data-logger. Should be fun for anyone interested in tinkering with
    EasyHID and the new full-speed 18F USB parts.

    Here are the files: http://www.rentron.com/mcstudio/EasyHIDPrj.zip

    You'll need VB6 & SoftWire. You can download SoftWire from here. It's free.
    http://www.softwire.com/swdownload/softwiredownload.htm

    I used the activx controls in SoftWire for the analog meter interface. Really
    nice stuff.

    You'll also need PBP version 2.46 since this is the version offering support for
    the newer 18F USB parts.

    If anyone's looking for an excellent book on USB, then grab a copy of Jan
    Axelson's new 3rd edition of USB Complete. We just got them in. I spent the
    last few days reading mine, and it's awesome.

    Jan has done an outstanding job on her 3rd edition of this book. Even "I" can
    understand it now...;o]

    good day, just tried out the easyhid & got some problems here, haha... i got the error msg: unable to locate device item.

    can anybody tell me how can i rectify this problem??

    thanks alot

Similar Threads

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

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