Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Using FT2232H in Sync FIFO mode for streaming out data

Status
Not open for further replies.

chensx2012

Newbie level 3
Joined
Apr 16, 2015
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
25
I want to use FT2232H in fifo mode for streaming out data. The external altera FPGA reads the FT2232H at a fixed rate of 48kb/s. On my PC side, what I need to do is to continuously check the number of bytes in the transmit queue. If the bytes falls below 32, the program will feed 256 bytes using FT_write. But when I use FT_GetStatus(ftHandle,@RxBytes,@TxBytes,@EventDWord), TxBytes always return 0 (unlike RxBytes which can truthfully indicate the number of bytes in the receive buffer). Any ideas? Thanks in advance!
 

KlausST

Super Moderator
Staff member
Joined
Apr 17, 2014
Messages
18,060
Helped
4,050
Reputation
8,100
Reaction score
3,963
Trophy points
113
Activity points
119,190
Hi,

Sending out via pc has several bufferd.
Pc software buffer ... FTDI driver buffer ... FTDI transmit FIFO ... FTDI receive FIFO.

I think you read pc software buffer status. (Or FTDI drver buffer)
So as soon as you write data it is immediately in the next buffer. Mind your FTDI is a high speed USB chip with large size fifo.

Klaus
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top