You are here

Problems with Xfer data | Cypress Semiconductor

Problems with Xfer data

Summary: 1 Reply, Latest post by Madhu Sudhan on 05 Apr 2016 07:00 PM PDT
Verified Answers: 0
Last post
Log in to post new comments.

Hi all,

I have the following doubts regarding xfer data and buffers.


1. I am sending Xfer data from the pc and I have set buffer count to 6. If i send 1 xfer command,how many buffers do i get(will I get the 6 buffers or only 1 buffer). 

2.What is the minimum time between xfer commands.

3. Maximum How many buffers can I use 

4.What happens If i send xfer data command too fast and buffer is not available 




mady's picture
Cypress Employee
964 posts

Hi Arun,

1) I assume that here by buffer count, you mean the DMA Buffer count in FX3. Assume that the size of each buffer in FX3 is 1 KB. You tatally have 1KB * 6 = 6 KB of buffer space.

The number of bytes you transfer in XferData will give the number of buffers you fill. Assume if you send 5000 bytes, you will get 5 Buffers filled (4 full buffers and one  buffer partially filled but wrapped)

2)  This has not been characterized, But you can call Xferdata continuously in yous host application, without any delay inbetween. It would support the USB datarate.

3) The size of the DMA in FX3 really matters. You need to make sure that DMA Buffer Size * DMA Buffer Count is less than around 250 KB. For exact details, please refer the TRM.

4) Xferdata returns false and the transfer is Nacked.


-Madhu Sudhan

Log in to post new comments.