Hi,
I just got the PIC18F4550 in an attempt to use it for communications with a PC through its USB module, but I'm finding many problems just to get started.
I looked on the internet for manuals and tutorials and found various; however, none of them are of much help for one reason or another. To start with, most wont even work in MPLAB X with the CX8 compiler, as they are based on the examples from the MCHPFSUSB 1.2; which was designed for C18 or C30 compilers. I tried to import and modify the demo projects, but after hours of dealing with a never ending number of errors and warnings, I got nowhere. And in any case, these tutorials are only meant to help you build your own bootloader demo board, or just test some CDC or HID app; none of them even attempt to explain what the necessary USB functions are or h0w to use them -they just tell you to upload a precompiled hex file and don't even touch the firmware.
These are some of the tutorials I found; in case anyone is interested in trying them:
Apart from the the MCHPFSUSB v1.3 and the MCHPFSUSB v2.2 I also downloaded the latest Microchip Libraries for Applications (MLA). I'm able to successfully compile some MLA apps -the ones that include the PICDEM FS USB demo board, as it has a PIC18F4550- but the problem is that it doesn't come with a tutorial or manual, just a reference guide; and in each project there are dozens of source files and headers.
I guess I could spend the next month going through each project's files in an attempt to figure out what each function does and how it all works, but I'm sure there has to be an easier and faster way to approach this.
Therefore, I would appreciate if anyone could direct me to an in depth manual or tutorial on how to use the PIC18F USB module, preferably using the MLA mentioned above, or explain what is the overall process and main functions that I need in order to get started.
Thanks in advance,
I just got the PIC18F4550 in an attempt to use it for communications with a PC through its USB module, but I'm finding many problems just to get started.
I looked on the internet for manuals and tutorials and found various; however, none of them are of much help for one reason or another. To start with, most wont even work in MPLAB X with the CX8 compiler, as they are based on the examples from the MCHPFSUSB 1.2; which was designed for C18 or C30 compilers. I tried to import and modify the demo projects, but after hours of dealing with a never ending number of errors and warnings, I got nowhere. And in any case, these tutorials are only meant to help you build your own bootloader demo board, or just test some CDC or HID app; none of them even attempt to explain what the necessary USB functions are or h0w to use them -they just tell you to upload a precompiled hex file and don't even touch the firmware.
These are some of the tutorials I found; in case anyone is interested in trying them:
Building a PIC18F USB device
USB Interface Board Driver Installation PIC18F4550
Simple PIC18F4550 Circuit
Implementation of a USB based PIC-to-PC communication
USB Interface Board Driver Installation PIC18F4550
Simple PIC18F4550 Circuit
Implementation of a USB based PIC-to-PC communication
Apart from the the MCHPFSUSB v1.3 and the MCHPFSUSB v2.2 I also downloaded the latest Microchip Libraries for Applications (MLA). I'm able to successfully compile some MLA apps -the ones that include the PICDEM FS USB demo board, as it has a PIC18F4550- but the problem is that it doesn't come with a tutorial or manual, just a reference guide; and in each project there are dozens of source files and headers.
I guess I could spend the next month going through each project's files in an attempt to figure out what each function does and how it all works, but I'm sure there has to be an easier and faster way to approach this.
Therefore, I would appreciate if anyone could direct me to an in depth manual or tutorial on how to use the PIC18F USB module, preferably using the MLA mentioned above, or explain what is the overall process and main functions that I need in order to get started.
Thanks in advance,
Last edited: