Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Editing the MCHPFSUSB firmware for pic18f2455

Status
Not open for further replies.

niiayi22

Newbie level 4
Joined
Mar 1, 2010
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
UK
Activity points
1,342
Hi there. I've got an absolute ton of info on USB but it's all for the pic18f4550. I'm currently trying to edit the HID Mouse example in the MCHPFSUSB firmware pack but theres quite a bit to change. Additionally, there's alot of code concerning demo board kits (which i'm not using). Has anyone successfully got this or any of the USB examples working for the PIC18f2455 or any other undefined PIC? If so a point in the righ direction would be much appreciated!

Thanks.

PS: I'm using a ECIO28p module which has a bootlader already integrated onto the PIC (i also have the edited 18f2455 linker file to make room for the bootloader) but if this too complex to change for USB firmware code then i'll use a standard 2455 attached to a USB female plug.
 

Yes!

I have done lots of USB applications using PIC24FGBXXXX though.

The code stack is almost the same though... You need to change the hardware profile first. This is where all of the Inputs/outputs are mapped. OF course, it will complain, so modify all the functions using the changed pins to comply with your code. Doing this, you will probably find out how a frame is sent exactly too.


You don't need to change the pin map for USB, since the name is the same throughout the range (not remap-able)

Once this is done, you will need to redefine the usb_descriptor.c in order to fit your application. You will mainly need to change the class definition and the HID descriptor.

If you have more questions, don't hesitate.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top