cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

SaLa_1789541
New Contributor II

Hello Everyone,

I want to use 24 bit input from gpio and send it to usb via dma, can i use it iwth GPIF designer tool or can you suggest me any other method for achieving it?

thanks

0 Likes
1 Solution
SrinathS_16
Moderator
Moderator

Hello,

FX3 GPIF supports only 8, 16, 24 or 32 bit data bus width. In case the external device has a data bus width that is not a multiple of 8, the next higher data bus width can be chosen and either an FPGA can be used in between the external device and the FX3 to modify the data to suit the GPIF requirements or the data has to be processed on the host side using an application which would eliminate the extra data that is captured.

Best regards,

Srinath S

View solution in original post

5 Replies
SrinathS_16
Moderator
Moderator

Hello,

Please refer to the GpifToUsb firmware example that comes with the FX3 SDK.

Best regards,

Srinath S

0 Likes
SaLa_1789541
New Contributor II

But in that example 16 bit input is used and there is no mention of 24 bit input or output.

0 Likes
SrinathS_16
Moderator
Moderator

Hello,

The GpifToUsb example uses 32 bit data bus. This can be found in the continuous_read.cyfx in the project folder. The GPIF Designer can be used to open and edit this file. The data bus width can be modified to 24 bit using the GPIF Designer tool.

Best regards,

Srinath S

SaLa_1789541
New Contributor II

And what if i want to use 20 bit or any other number?

0 Likes
SrinathS_16
Moderator
Moderator

Hello,

FX3 GPIF supports only 8, 16, 24 or 32 bit data bus width. In case the external device has a data bus width that is not a multiple of 8, the next higher data bus width can be chosen and either an FPGA can be used in between the external device and the FX3 to modify the data to suit the GPIF requirements or the data has to be processed on the host side using an application which would eliminate the extra data that is captured.

Best regards,

Srinath S

View solution in original post