1

When I bit-bang the RX and TX pins on the FT232H, output is beautiful. When I repeat on the FT232R it is awful. What is causing signals to look so bad on the FT232R? Note that I'm using a FT232R breakout board (from sparkfun) and a FT232H breakout board (from ADAfruit).

enter image description here

The image above is from this C# program running on both breakout boards:

const byte PIN_TX = 0b00000001;
const byte PIN_RX = 0b00000010;

public static FTDI ftdi = new FTDI();
public static FTDI.FT_STATUS ft_status = FTDI.FT_STATUS.FT_OK;
public static UInt32 bytesWritten = 0;

static void Main(string[] args)
{

    // open and configure the FTDI device
    ftdi.OpenByIndex(0);
    ftdi.SetBitMode(0, 0);
    ftdi.SetBitMode(PIN_TX | PIN_RX, 0x01); // Asynchronous Bit Bang Mode
    ftdi.SetBaudRate(9600);

    // create some data to send
    byte[] data = new byte[1234];
    for (int i = 0; i < data.Length; i++)
    {
        data[i] = 0;
        if (i % 2 == 1) data[i] |= PIN_RX;
        if (i % 4 == 1) data[i] |= PIN_TX;
    }

    while (true)
    {
        ftdi.Write(data, data.Length, ref bytesWritten);
    }

}
SWHarden
  • 136
  • 8

2 Answers2

3

Apparently this is a known problem with FT232R. It is addressed in the FT232R errata (page 4) and demonstrated on these web pages:

SWHarden
  • 136
  • 8
  • 1
    Like everybody I can confirm that the bug was still there as 2016/2017. One thing I noticed is that if you make your own FT232R board with an external clock, the issue goes away. https://ftorres.azurewebsites.net/images/MadeInTheUSB/Devices/Nusbio.Board.Purple.jpg – Frederic Torres Nov 12 '18 at 19:23
1

This is an Errata that is supposed to only be Revision A of the FT232R. However, I can confirm that this is still broken in 2019.