USB of PIC 18F4550

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
MIKE_31
Posts: 15
Joined: Wed Aug 08, 2007 12:11 pm
Location: FRANCE
Contact:

USB of PIC 18F4550

Post by MIKE_31 »

Hello,

I want to communicate with PIC18F4550 with it's USB interface.
Is there any specific Component to have direct access of USB (like RS232 component ) in Flowcode ?
Someone has a exemple to program USB of PIC18F4550 ?

Thanks.


MIKE

User avatar
Steve
Matrix Staff
Posts: 3424
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: USB of PIC 18F4550

Post by Steve »

There is a HID USB example on this page:
http://www.matrixmultimedia.com/Flowcode_Components.php

At the moment, that is all we have for USB. But we are looking into it and might be doing some more USB work soon.

MIKE_31
Posts: 15
Joined: Wed Aug 08, 2007 12:11 pm
Location: FRANCE
Contact:

Re: USB of PIC 18F4550

Post by MIKE_31 »

Thank Steve,

MIKE

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: USB of PIC 18F4550

Post by kersing »

Hi Steve,

I'm looking at the HIB USB example, however it includes usb_defs.h which can't be found on my system. Is there anything I need to install to get this file (and probably other parts needed for USB as well) ??

Best regards,

Jac
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: USB of PIC 18F4550

Post by Benj »

Hello

Im not sure if the external usb_defs file is needed. I have attached it here just incase.
Attachments
usb_defs.h
(4.03 KiB) Downloaded 425 times

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: USB of PIC 18F4550

Post by kersing »

Hi Ben,

Thank you for supplying the file.

The USB example code in the beta components section did not compile when I commented the references to usb_defs.h. After copying the file to C:\Program Files\Matrix Multimedia\Flowcode V3\boostc\include flowcode generates the hex file succesfully.

Best regards,

Jac
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

Post Reply