FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Author Topic: FT (2)232H in Synchronous 245 FIFO mode - data loss (problem 510) workaround  (Read 9320 times)

IanPo

  • Newbie
  • *
  • Posts: 1
    • View Profile

Hello!

Description of the problem:
External chip (say, FPGA) is writing a data into FTDI (2)232H chip.
After first ( in fact, after every ) 510 bytes TXE# suddenly goes up and you have data loss.
The document AN_130 says: "Although  the  RX  and  TX  buffers  are  4KB,  they  only  use  2x  512  bytes  for  each  buffer  under  FT245 Synchronous FIFO mode", so we would expect buffer override after 1024 bytes sent.

My workaround here is the following:
to use TXE# as WAIT signal (send new data only if TXE# is low and wait if it goes high).
After first 510 sent TXE# goes high for 10 clocks (~170 ns).
I added some diagrams taken with logic analyzer.

If you know any other solutions (driver fixed, maybe) it would be nice to see them.
Logged

FTDI Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 891
    • View Profile

Hello,

There are two status bytes sent at the start of every packet (covered by NDA) when using FT245 Synchronous FIFO mode. Thus each packet only contains 510 data bytes, and two status bytes making up the 512 byte buffer.

Best Regards,
FTDI Community
Logged