Overclock.net › Forums › General Hardware › General Processor Discussions › C++ Builder and USB<->RS232
New Posts  All Forums:Forum Nav:

C++ Builder and USB<->RS232

post #1 of 3
Thread Starter 
I am trying to make an application with C++Builder which communicates with a PIC16F877A which has a RS232 interface. Unfortunately my computer only has USB ports so I have bought a USB to RS232 converter cable.
Well I am a complete beginner to C++ Builder so really at this point I don't even know it will be possible to do this... Any help and advice would be really appreciated. ies
post #2 of 3
no problem at all since usb is a serial port(universal serial bus), i made a little program last year to control an irobot. i know you got to use a socket but i don't do c++ with my new job so its a bit far in my head, but i'm pretty sure i still got my program, let me know if it could help you thumb.gif
GW2 Special
(16 items)
 
Redstroyer
(14 items)
 
 
CPUMotherboardGraphicsRAM
Phenom II X2 555(unlocked to X4 B55) Biostar ta870u3+ 6950HD msi twin frozr OC 2x2gb g.skill ripjaws ddr3 1600 
Hard DriveOptical DriveCoolingOS
OCZ Solid 3 Lg combo with IDE to sata adapter H50 win 7 x64 
MonitorKeyboardPowerCase
dynex hdtv 22''(HD)/philips 19''(VGA) k260(logitech wireless combo) corsair 650tx azza orion 
MouseMouse Pad
m210(logitech wireless combo) INFOREM custom mouse pad 
  hide details  
Reply
GW2 Special
(16 items)
 
Redstroyer
(14 items)
 
 
CPUMotherboardGraphicsRAM
Phenom II X2 555(unlocked to X4 B55) Biostar ta870u3+ 6950HD msi twin frozr OC 2x2gb g.skill ripjaws ddr3 1600 
Hard DriveOptical DriveCoolingOS
OCZ Solid 3 Lg combo with IDE to sata adapter H50 win 7 x64 
MonitorKeyboardPowerCase
dynex hdtv 22''(HD)/philips 19''(VGA) k260(logitech wireless combo) corsair 650tx azza orion 
MouseMouse Pad
m210(logitech wireless combo) INFOREM custom mouse pad 
  hide details  
Reply
post #3 of 3
Quote:
Originally Posted by tornott66 View Post

I am trying to make an application with C++Builder which communicates with a PIC16F877A which has a RS232 interface. Unfortunately my computer only has USB ports so I have bought a USB to RS232 converter cable.
Well I am a complete beginner to C++ Builder so really at this point I don't even know it will be possible to do this... Any help and advice would be really appreciated. ies
I see no problem you have to face in your setup. The PC SW will know nothing about nature of RS232 port it will use. It can be a real RS232 or Virtual one via USB adapter unless you are using real time bit banging with pins of RS232 port. If you are just sending data bytes there should be no difference between UART based or Virtual COM port.
I still do not get what is the task and what is the final goal of your project?
Is it communicating with PIC from PC via RS232?
In this case why should it be C++ Builder and why should you write any SoftWare at all? Here is the easier way:
http://www.xdimax.com/sub20/sub20.html
This board is USB to RS232 (and SPI,I2C,...) adapter.
You connect it to the PC USB port and take it's RS232 output and connect it to PIC.
SUB-20 software has a GUI utility to send and receive data via RS232
BTW there is a chance you will not need PIC at all. Look over SUB-20 interfaces and perhaps it will totally suite your needs.
All of the interfaces are controlled via GUI application.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: General Processor Discussions
Overclock.net › Forums › General Hardware › General Processor Discussions › C++ Builder and USB<->RS232