Need 18f4550 usb I/O codes please (I'm going crazy)

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
aykutcanturk
Posts: 1
Joined: Fri Jul 22, 2011 11:24 am

Need 18f4550 usb I/O codes please (I'm going crazy)

Post by aykutcanturk »

Dear friends,
I need pic application to communicate with pic18f4550 over usb and on/off all output ports and another one for reading all input ports. I can write pc application if I can understand howto set output pins and howto read input pins. I'm software developer but I'm not pic nor C export. I'll use that for my hobby cnc machine, start/stop relays, engines. It should be very simple but I'm lost in documentations and samples almost for one month.

Every sample is piece by piece and it looks like evryone knows that pic stuff very well.what I need it is: "upload that file to pic and communicate like this". anyone have sample code for setting and reading 4550's 32 pins from old times ? I have ql200 development board but its obvious now that I wont learn that pic stuff without "complete working sample".

please my friend, help me. Maybe I learned so many thing about pics but I cannot put them together without a working sample.

thanks.

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: Need 18f4550 usb I/O codes please (I'm going crazy)

Post by Benj »

Hello,

You need firmware to sit on the USB Chip to then react to commands from the PC.

For example if the PC sends out a '0' then you could get the firmware to convert each I/O pin to an input and so on.

Therefore the protocol is defined by your firmware.

Do you have Flowcode or are you just hoping you will come across firmware that will already do everything you need it to?

Post Reply