Arduino as serial port or lpt

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Arduino as serial port or lpt

Postby ashley van steenacker » Tue Jul 12, 2011 1:13 pm

hello

is there a way to emulate a com or a lpt port with an arduno (uno).
it is for interfacing with programmers i dont have an com or lpt port (macbook)
and the usb to serial adaptors dont work.

can you help me?

kind regards

Ashley
ashley van steenacker
 
Posts: 1
Joined: Sun Feb 13, 2011 12:51 pm

Re: Arduino as serial port or lpt

Postby adafruit_support_bill » Tue Jul 12, 2011 1:31 pm

There is a USB to serial converter built into the Arduino. If you can talk to the Arduino then you have a working converter. Just take the TTL level serial signals from digital pins 0 and 1 (RX & TX).
User avatar
adafruit_support_bill
 
Posts: 16055
Joined: Sat Feb 07, 2009 9:11 am

Re: Arduino as serial port or lpt

Postby cstratton » Tue Sep 27, 2011 11:02 am

The comment that USB serial/parallel converters don't work (in an application one assumes) suggests that the one on the arduino board probably won't accomplish the need either.

Legacy systems that fail with USB converters tend to do so either because they attempt to do register-level access to a legacy port, require a particular fine-grained control feature of the legacy port which the USB does not emulate, or cannot cope with the quite high latency of the USB interface (USB is fast at moving a lot of data, but each packet takes a surprisingly long amount of time, so it's pathetically slow for rapid interchanges of short message).

Sometimes the solution to the latency problem is to refactor the application so that the high level software does not attempt to do bit-level I/O, but instead makes requests of an external controller such as an arduino that has low-latency I/O. So for example, the mac/pc says "run this jtag sequence" as a single packet - perhaps a serial message delivered to the driver in one write() or at least without any intervening reads. The arduino then bit bangs dozens to hundreds of clock cycles on whatever it's talking to, and then maybe it delivers a summary result back over the usb to the computer.

But solving problems in that way requires that the ultimate software be open to modification (or have a mode of talking to a network-remote device server or something like that), and it requires understanding the task at a fine level of detail in order to split out the low-latency part of the problem and implement it on the external controller.
User avatar
cstratton
 
Posts: 246
Joined: Wed Sep 29, 2010 2:52 pm


Return to Microcontrollers

Who is online

Users browsing this forum: No registered users and 3 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [103]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[61]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]