Forum Index
USB converter cable problems

 
Author Message
spamiam



Joined: 13 Nov 2005

Posted: 16 November 2007, 17:55 PM    Post subject: USB converter cable problems

I have a USB to Serial converter cable. It has an FTDI chip inside. I had thought that FTDI made reather reliabe converter chips. The cable works fine on other devices, but totally fails to work with the ZX24.

I think I need to get a different converter, such as the one for sale here. I looked at the schematic and realized that the FTDI chip can get the I/O voltage from the destination device (e.g. 5V).

But the cable has no power connection from the destination, so what voltage do these cable-type of converters (the ones that only end in a DB9 connector) use for I/O? 3.3V from the USB bus?

How important is it to have 5V on the I/O to the ZX for communication reliability?

I'd love to have the converter PCB housed in a box with a DB9 on the side, and the USB on the other side. But then I would not be able to get the 5 volts from the ZX. Is there a solution to this?

-Tony
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Location: Portland, OR

Posted: 16 November 2007, 21:36 PM    Post subject: Re: USB converter cable problems

spamiam wrote:
I have a USB to Serial converter cable [that] totally fails to work with the ZX24.

By that do you mean that it fails when trying to download (probably timing related) or that it fails to pass characters through (probably voltage levels).

spamiam wrote:
But the cable has no power connection from the destination, so what voltage do these cable-type of converters use for I/O?
A device can draw power from the USB hub at 5 volts. Normal devices are limited to 100mA, high power device can draw more but must have low power modes as well.

A design using the FTDI FT232 chip can generate either 3.3V or 5V I/O signals; it is up to the designer to choose. Our design lets you choose the I/O voltage by way of jumpers.

spamiam wrote:
How important is it to have 5V on the I/O to the ZX for communication reliability?
The inverters used on the RxD input to the ZX-24 has a minimum Vih specification of 0.7 * Vcc or 3.5V. A signal that swings from zero to 3.3V would probably not be reliably recognized.

spamiam wrote:
I'd love to have the converter PCB housed in a box with a DB9 on the side, and the USB on the other side. But then I would not be able to get the 5 volts from the ZX. Is there a solution to this?

It is possible that the device that you have does not pass DTR through to the DB-9. It is also possible that the output voltage is too low. Both of these "deficiencies" can be detected with an oscilloscope; the former only requires a voltmeter if you use the ATN test capability of the IDE or the zload utility.
Back to top
stevech



Joined: 23 Feb 2006

Posted: 17 November 2007, 4:27 AM    Post subject:

timing of ATN (one of the RS232 lines, DTR) can be an issue with USB-serial.

FTDI has the best Windows drivers for USB, IMO. But there remains irregular and somewhat unpredictable timing of toggling ATN. And the PC side software that does so is often rather intolerant. I vaguely recall changes made to the PC software to lessen restrictions; check your version #.

However, I have a ZX24A that works reliably with a no-name USB adapter that uses an FTDI chip. So all of what I said above may be irrelevant to your situation!
Back to top
spamiam



Joined: 13 Nov 2005

Posted: 17 November 2007, 13:14 PM    Post subject:

Well, I have to check my USB adapter to see what it has in the way of voltage levels.

I had assumed that it would be outputting at the full RS232 voltages, but I have no idea what it really does. 3.3 and 5.0 volts seem possible. If I had to guess, I would assume that it would be outputting voltage at the same level as the USB power supply rails.

The only thing I really tested was trying to download, and it failed so badly that ZBasic crashed. I tried a few times before I gave up.

I ordered an adapter from Mouser that has a REAL FTDI FT232RL and has user selectable 3.3 or 5 volts on the output. It is not a cable, however, it is an in-line adapter module. $23 +shipping. Here is hoping that it will work! Shocked

-Tony
Back to top
dlh



Joined: 15 Dec 2006

Posted: 17 November 2007, 15:42 PM    Post subject:

You could have saved a bit by buying...
It comes setup for 3.3V but you can change a (soldered) jumper for 5V or other output.
Back to top
GTBecker



Joined: 18 Jan 2006
Location: Cape Coral

Posted: 17 November 2007, 18:11 PM    Post subject:

I use a modified PropPlug: http://www.zbasic.net/forum/about603-0-asc-15.html and have had no difficulties with it. It has proven to be very useful so I place a four-pin SIP alongside each processor I use.


Tom
Back to top
spamiam



Joined: 13 Nov 2005

Posted: 18 November 2007, 2:07 AM    Post subject:

I have ordered this one.
http://www.mouser.com/search/refine.aspx?Ntt=626-DLP-EVAL232R

I wil see how it works.....

-Tony
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Location: Portland, OR

Posted: 18 November 2007, 16:01 PM    Post subject:

spamiam wrote:
I wil see how it works
I expect that it will work fine if you jumper it for 5V I/O and configure it for inverted TxD, RxD and DTR#.
Back to top
stevech



Joined: 23 Feb 2006

Posted: 18 November 2007, 18:30 PM    Post subject:

here's one I use with ZXs - has FTDI chip.
It's marketed under several trade names.

Has FTDI's logo in a obscure place on the retail package; that's the clue.



P1020336.JPG
 Description:
 Filesize:  48.74 KB
 Viewed:  1840 Time(s)

P1020336.JPG


Back to top
spamiam



Joined: 13 Nov 2005

Posted: 28 November 2007, 21:59 PM    Post subject:

decided today to get a usb->serial converter working if it killed me.

I had gotten a new FTDI EVAL232R adapter. This is a fully implemented FT232RL device. If ANY converter is going to work, this one should.

Previously I had a different FTDI-based converter cable which would not work properly.

I tried my EVAL232R and it totally failed to work!!! I pulled it out and tossed it onto my shelf in disgust.

I went to the FTDI website to see what I was doing wrong. The answer is either nothing or everything.

I learned about latency in one of their AppNotes (AN232B-04) which I found on this page: http://www.ftdichip.com/Documents/AppNotes.htm

I learned about changing the advanced settings in the serial port control in the System hardware manager. The default latency is 16 milliseconds. This is almost certainly too long for the OM128 bootloader. I changed it to 1mS and then tested the EVAL232R.

It STILL did not work. Not at all. But then I realized I needed to set the proper COM port. When I did that, it worked. Perfectly. Did I have the right COM port selected when it failed the first time I tired it? I am not sure. I went back and reset the port settings back to the 16mS default. The converter STILL worked fine.

I then installed the cable converter that did not really work properly, and tried it again. It again failed. I set the letency timer back to 1mS and it this one works too!

If this had not worked, or if I have glitches in the future, I will try to adjust the "USB Transfer Size" (also in the advanced section of the port settings). It defaults to a relatively large 4096K. I would set it down to the minimum of 64 bytes and see what happens there.


I am not sure if NON-FTDI converters have the same settings, but if they do, then try it.

-Tony
Back to top
DocJC



Joined: 16 Mar 2006
Location: Cleveland, OH

Posted: 29 November 2007, 0:04 AM    Post subject:

I have been using a Keyspan USB to Serial cable converter without any difficulty, on a WinXP system. It is Model USA-19HS. I do not see a FIDI logo on the smoked black plastic case. The web site indicates that it is Windows, Mac, and Linux approved. www.Keyspan.com

JC
Back to top
spamiam



Joined: 13 Nov 2005

Posted: 29 November 2007, 2:03 AM    Post subject:

JC,

You might be able to tell if it is an FTDI chip by looking at the driver of the USB serial port. But the manufacturer could have changed the info in the standard FTDI drivers.

Also, FTDI has an EEPROM programmer utility that would be able to tell you if the chip is an FTDI device.

http://www.ftdichip.com/Resources/Utilities.htm#MProg

-Tony
Back to top
Display posts from previous:   
Page 1 of 1

 



ZBasic Microcontrollers Home
All content Copyright © 2005, 2006, 2007, 2008 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group