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.

PC to PIC 18F4550 USB interface

Status
Not open for further replies.

rikotech8

Member level 1
Joined
Apr 22, 2012
Messages
36
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,591
Hi every one!
How can I create a program that is interface by which PC and 18F4550 could communicate via USB (HID) communication. A simple program with three buttons(switch on/off leds) and one progress bar(for ADC signal). I mean, what is the program language that have direct access to USB port (may be C++,C#,Pascal or another program)? Just put me at the right direction, not to teach me on that language.something similar to this: Untitled.jpg
 

I assume you have looked at
**broken link removed**

if you download the MCHPFUSB framwork
**broken link removed**

there is plenty of sample code including a HID device custom demo
C:\Microchip Solutions v2012-04-03\USB\Device - HID - Custom Demos

this includes example PIC firmware USB device code and Visual C++ USB host code, e.g. using an Explorer 16 switching the LEDs ON/OFF and read a switch state. You can adapt this to suit your requirements.
it is fairly easy to implement VB.NET and C# code as well
 

hi,
I am dealing with a similar project connecting pc to card based on µcontroller via usb port i have problem making this connection please may anyone help?
thnks
 

hi,
I am dealing with a similar project connecting pc to card based on µcontroller via usb port i have problem making this connection please may anyone help?
thnks

Hi LillyMag,

What is "card based on µcontroller" ?

Try to describe your problem with more details, maybe someone can help you?



Best regards,
Peter

:wink:
 
I made my USB Device based on code this page.
Screen Shot of my device attached
**broken link removed**
 

Attachments

  • USBMM.jpg
    USBMM.jpg
    140.5 KB · Views: 115

hi,
the card is supposed to power control through vb.net interface data (time on/time off) must be sent via usb port to the card then the number of interchanges from on to off will be displayed on lcd display .
this is what my project is about hope that someone can help :) .
thanks
 

thanks for the reply,
the Isis simulation does not work because of the virtual usb driver installation ;i have already installed it but the same error is over and over displayed.
 

hi,
it's fine with isis simulation now i am facing problem with the vb.net interface i am not able yet to send data through usb to pic??
any suggestions?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top