Hot!Library functions for using USB in PIC18F4550

Author
BlackOps
Junior Member
  • Total Posts : 105
  • Reward points : 0
  • Joined: 2007/09/04 00:04:58
  • Location: AZERBAIJAN
  • Status: offline
2009/12/12 21:46:04 (permalink)
0

Library functions for using USB in PIC18F4550

I am now looking through the peripheral documentation found in my doc folder of MPLAB C18 compiler... and it says nothing about USB!

so, does that mean i have to write my own functions needed to send data over USB or what?

could you say me please typical flow of processes/actions i have to perform in order to begin working with USB? I looked at some codes from internet, but did not notice any pattern and also it was unknown are some of the files they used standard or each time u have to write them urself?

thank you,
#1

13 Replies Related Threads

    Kiwi Mike AZ
    Super Member
    • Total Posts : 2044
    • Reward points : 0
    • Status: offline
    RE: Library functions for using USB in PIC18F4550 2009/12/12 21:51:04 (permalink)
    0

    Download the USB library - it is not part of the C18 compiler.

    www.microchip.com/usb

    #2
    BlackOps
    Junior Member
    • Total Posts : 105
    • Reward points : 0
    • Joined: 2007/09/04 00:04:58
    • Location: AZERBAIJAN
    • Status: offline
    RE: Library functions for using USB in PIC18F4550 2009/12/12 22:37:54 (permalink)
    0
    heh...cannot find it at all!

    i have clicked on that link, and then i clicked on the libraries, and finally got here:
    http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2651&param=en534494#P24_220

    but i cannot find any USB libraries here! there is a big file with different projects, including USB, but there was no library...

    maybe im looking in wrong direction?
    #3
    clark.leach
    Super Member
    • Total Posts : 361
    • Reward points : 0
    • Joined: 2008/09/17 10:55:43
    • Location: Maine USA
    • Status: offline
    RE: Library functions for using USB in PIC18F4550 2009/12/12 23:16:32 (permalink)
    0
    Trying to find anything on Microchip's website can be infuriating.
    Try this url and see if you find it:

    http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2035

    I saw the USB Framework near the bottom of the list.  Also if you grab the Application Libraries near the top, that should include about all of the available libraries (it's a big .zip file).


    Aut Viam Inveniam Aut Faciam
    #4
    clark.leach
    Super Member
    • Total Posts : 361
    • Reward points : 0
    • Joined: 2008/09/17 10:55:43
    • Location: Maine USA
    • Status: offline
    RE: Library functions for using USB in PIC18F4550 2009/12/12 23:30:41 (permalink)
    0
    That link is apparently a dud as well.  The Microchip webmaster should be flogged!
    I have two copies of the Application Libraries updated 11-18-20009.
    Do you think I can just go to the website and find it again? No!

    If you go to the USB Library link found at the above mentioned link, you can find the Application Libraries way at the bottom!
     [:'(]

    post edited by clark.leach - 2009/12/12 23:42:35

    Aut Viam Inveniam Aut Faciam
    #5
    Kiwi Mike AZ
    Super Member
    • Total Posts : 2044
    • Reward points : 0
    • Status: offline
    RE: Library functions for using USB in PIC18F4550 2009/12/13 00:56:15 (permalink)
    +2 (1)

    Download the big file that has almost ALL the librarys.

    Open one of teh sample USB projects... and you will see the Library files in the Project list.


    The Actual Library source and header files are under the following Directory if you have installed them.

    C:\Microchip Solutions\Microchip


    #6
    BlackOps
    Junior Member
    • Total Posts : 105
    • Reward points : 0
    • Joined: 2007/09/04 00:04:58
    • Location: AZERBAIJAN
    • Status: offline
    RE: Library functions for using USB in PIC18F4550 2009/12/13 02:09:06 (permalink)
    0
    yes i see them! thanks a lot...i'll study all that stuff+code if some more questions will post it here!
    #7
    mechanic_2@charter.net
    Starting Member
    • Total Posts : 77
    • Reward points : 0
    • Joined: 2013/08/04 15:29:51
    • Location: 0
    • Status: offline
    Re: RE: Library functions for using USB in PIC18F4550 2017/11/14 03:44:24 (permalink)
    0
    Hello all,
     . . . . I have tried this link and I can't find the USB Library. I have also tried the other two links and I receive an access denied error message. Any help would be greatly appreciated.
    Thanks,
    rich!
     
    mimemike
    Download the USB library - it is not part of the C18 compiler.

    www.microchip.com/usb




    #8
    qhb
    Superb Member
    • Total Posts : 6255
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: RE: Library functions for using USB in PIC18F4550 2017/11/14 03:51:42 (permalink)
    +1 (1)
    Did you notice you are in an eight year old topic?
    These days Microchip want you to use MCC to generate code for USB access.
     
    Note, USB isn't a small library you tack onto your application.
    Your whole program has to implement the full USB protocol, then you tack your customised code on top.
     
    #9
    mechanic_2@charter.net
    Starting Member
    • Total Posts : 77
    • Reward points : 0
    • Joined: 2013/08/04 15:29:51
    • Location: 0
    • Status: offline
    Re: RE: Library functions for using USB in PIC18F4550 2017/11/14 04:01:20 (permalink)
    0
    GHB,
     . . . . Does the MCC apply to 18F4520 processor?
    Thanks,
    rich!
     
    qhb
    Did you notice you are in an eight year old topic?
    These days Microchip want you to use MCC to generate code for USB access.
     
    Note, USB isn't a small library you tack onto your application.
    Your whole program has to implement the full USB protocol, then you tack your customised code on top.
     





    #10
    qhb
    Superb Member
    • Total Posts : 6255
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: RE: Library functions for using USB in PIC18F4550 2017/11/14 04:04:33 (permalink)
    +1 (1)
    mechanic_2@charter.net
     . . . . Does the MCC apply to 18F4520 processor?

    No, they only target new devices, not ancient ones.
    You did not mention which PIC you are using.
     
    #11
    mechanic_2@charter.net
    Starting Member
    • Total Posts : 77
    • Reward points : 0
    • Joined: 2013/08/04 15:29:51
    • Location: 0
    • Status: offline
    Re: RE: Library functions for using USB in PIC18F4550 2017/11/14 04:11:12 (permalink)
    0
    QHB,
     . . . . I am using the 18F4520. My application is to control the Programming of EPROMs and EEPROMS. I will also be accessing an LCD display. I found an LCD Library that is straight forward to use.
    Thanks,
    rich!
     
    qhb
    mechanic_2@charter.net
     . . . . Does the MCC apply to 18F4520 processor?

    No, they only target new devices, not ancient ones.
    You did not mention which PIC you are using.
     





    #12
    mechanic_2@charter.net
    Starting Member
    • Total Posts : 77
    • Reward points : 0
    • Joined: 2013/08/04 15:29:51
    • Location: 0
    • Status: offline
    Re: RE: Library functions for using USB in PIC18F4550 2017/11/14 05:17:13 (permalink)
    0
    QHB,
     . . . . I know that the processor is from a few years ago and this thread is also from a few years ago but I could really use some help with the USB part. That is why I focused on this thread. I am going to use a FTDI USB to RS232 converter to talk to the PIC 18F4520 Through the RX and TX Pins. I want to send Configuration Code to a 24C512 serial EPROM. When I add additional devices I want to be able to update the EPROM. I also want to be able to use a Win 8.1 64bit Pro PC to control the Programmer.
     . . . . Are you willing to dig back into your vault that has this information in it? I also do a lot of searching and research on materials that I acquire from the MicroChip website. I have been reading the MC USB Device Firmware Framework User's Guide.
     . . . . I have the latest version of MpLab, and the latest versions of theX8, X18, and X32 Compilers installed. I also see that I need to install the latest versions of C30 C and C18 C Compilers and setup the proper Paths for these files. I don't mind doing the footwork. I am Disabled and retired. This gives me a lot of free time.
    Thanks,
    rich!
     
    qhb
    mechanic_2@charter.net
     . . . . Does the MCC apply to 18F4520 processor?

    No, they only target new devices, not ancient ones.
    You did not mention which PIC you are using.
     




    #13
    qhb
    Superb Member
    • Total Posts : 6255
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: RE: Library functions for using USB in PIC18F4550 2017/11/14 05:25:39 (permalink)
    +1 (1)
    mechanic_2@charter.net
    ...
    I am going to use a FTDI USB to RS232 converter to talk to the PIC 18F4520 Through the RX and TX Pins.

    Excellent idea. That makes your effort much simpler.
    However, if you do that, then the Microchip USB framework is irrelevant, you're not using it.
    All the USB protocol is handled inside the FTDI chip.
    You just talk to the PIC as if it is hanging off a COM port.
     
    . . . . I have the latest version of MpLab, and the latest versions of theX8, X18, and X32 Compilers installed. I also see that I need to install the latest versions of C30 C and C18 C Compilers and setup the proper Paths for these files. I don't mind doing the footwork. I am Disabled and retired. This gives me a lot of free time.

    All you need is XC8 and MPLAB (or MPLABX, which is what you probably meant)
    XC16, XC32, and C30 are irrelevant, they are exclusively for different PIC families.
    C18 is an old compiler that also works for PIC18F chips, but you don't need it if you have XC8.
     
    #14
    Jump to:
    © 2017 APG vNext Commercial Version 4.5