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.

[50 pts for real help]PC interfacing using USB

Status
Not open for further replies.

mouzid

Full Member level 5
Joined
Jun 22, 2007
Messages
248
Helped
9
Reputation
18
Reaction score
0
Trophy points
1,296
Activity points
2,876
I'm familiar with PC to Pic interfacing using the serial Port. Now I'm learning how to do the same thing but with the USB port. I build a USB to serial converter for this purpose.
Before I used to use VB/delphi for designing my GUIs. With Delphi I use the Comport component to send my data to the Pic using the serial port.
I'm very curious to know how guys do for sending data via the USB ports.
Are there any component to use with VB or delphi ?
How to use them ?
 

My approach is based on the FTDI chip. On one side it connects to the uC through UART. On the other side it connects to USB. It comes with a drive for the PC, which will present a chip as virtual comm port (VCP). Then the VB6 application uses MSComm component to connect to the serial port.

Another approach is to use a uC with a built-in USB peripheral (e.g. PIC18F4550).
 

    mouzid

    Points: 2
    Helpful Answer Positive Rating
It is very easy to control a PIC controller using vb.net or other languages.Just compile programs in ccs compiler because it has a header called ''usb_cdc'' which will create virtual serial port and you can access it as usual.

I were tried it with PIC18F2550 microcontroller you can use any microcontroller which has built in USB.(also usb interface ICs)....

I think this information is useful to you....




+
In vb.net a serial port control is included which can be used for direct access to serial port...
 

    mouzid

    Points: 2
    Helpful Answer Positive Rating
kender said:
My approach is based on the FTDI chip. On one side it connects to the uC through UART. On the other side it connects to USB. It comes with a drive for the PC, which will present a chip as virtual comm port (VCP). Then the VB6 application uses MSComm component to connect to the serial port.

Another approach is to use a uC with a built-in USB peripheral (e.g. PIC18F4550).

Is the MSComm a free component ?
 

yes FTDI is the best and simply ic for usb to serial like FT232RL.

:p
 

If you are going to use a "Virtual Serial Port", you can use the USB to RS232 converters. For myself, I used this converter and it worked perfectly with my Laptop.
Check this website:
https://www.usbgear.com/usb-serial.html

If you want to use the USB protocol, then you will have to go through drivers and some other issues.

Good Luck
 

seadolphine2000 said:
If you are going to use a "Virtual Serial Port", you can use the USB to RS232 converters. For myself, I used this converter and it worked perfectly with my Laptop.
Check this website:
https://www.usbgear.com/usb-serial.html

If you want to use the USB protocol, then you will have to go through drivers and some other issues.

Good Luck

Thank you all folr replying.
Actualy, my goal is to comminicate via the 485 line. If I use the ready made USB to 232 converter will have to use a MAx 232 to convert the data again to TTL and then use a max485. For the prototype I'm using an USB To 232 ready made converter. But doesn't this affect bandwidth ?
 

HI

For using a PIC (with USB interface) directly with PC you will need to use PIC CDC lib segment (down loaded from miceochip site)

And to use the same communication API with PC (OPEN FILE , CLOSE FILE )depend on the level of use (whether you are using a DLL,library,or source code) to communicate -it should work

All the best

Bobi
The microcontroller specialist
 

    mouzid

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top