Datasheet

Migrating from EZ-USB
®
FX2LP™ Based Design to EZ-USB FX3 Based Design
www.cypress.com Document No. 001-76348 Rev. ** 11
CyFxBulkLpApplnStop ();
}
break;
default:
break;
}
}
DMA Setup
The DMA channel transfer is enabled:
/* Set DMA Channel transfer size */
apiRetStatus = CyU3PDmaChannelSetXfer
(&glChHandleBulkLp,
CY_FX_BULKLP_DMA_TX_SIZE);
if (apiRetStatus != CY_U3P_SUCCESS)
{
CyU3PDebugPrint (4,
"CyU3PDmaChannelSetXfer Failed, Error code
= %d\n", apiRetStatus);
CyFxAppErrorHandler(apiRetStatus);
}
We do not have any CyFxBulkLpDmaCallback function
as we are using the Auto commit mode. But if you are
going to use the manual channel then we need to commit
the buffer in CyFxBulkLpDmaCallback function using
the below mentioned code.
if (type == CY_U3P_DMA_CB_PROD_EVENT)
{
/* This is a produce event
notification to the CPU. This notification
is
* received upon reception of every
buffer. The buffer will not be sent
* out unless it is explicitly
committed. The call shall fail if there
* is a bus reset / usb disconnect or if
there is any application error. */
status =
CyU3PDmaChannelCommitBuffer (chHandle,
input->buffer_p.count, 0);
if (status != CY_U3P_SUCCESS)
{
CyU3PDebugPrint (4,
"CyU3PDmaChannelCommitBuffer failed, Error
code = %d\n", status);
}
}
You can download USBBulkLoopAuto.img (.img is the file
that you get after the project is built) to FX3 using
CyControl and test this bulkloop example using CyControl
or BulkLoop.exe.
For more details on the FX3 software development kit,
refer to the documents available in the path Cypress\EZ-
USB FX3 SDK\1.0\doc. (1.0 in this path is version of the
SDK, it may change in future).
Available Collateral
Development Kit
CYUSB3KIT-001 EZ-USB
®
FX3™ Development Kit
Datasheet
CYUSB3014
SDK
EZ-USB FX3 Software Development Kit
GPIF II Designer
GPIF™ II Designer
Application Notes
AN75705 - Getting Started with FX3
AN68829 - Slave FIFO Interface for EZ-USB
®
FX3™:
5-Bit Address Mode
AN65974 - Designing with the EZ-USB® FX3 Slave
FIFO Interface
AN70707 - EZ-USB
®
FX3 Hardware Design
Guidelines and Schematic Checklist
AN70193 - EZ-USB
®
FX3 SPI Boot Option
AN73304 - Booting EZ-USB
®
FX3 over Synchronous
ADMux Interfaces
AN73150 - Booting EZ-USB
®
FX3 over High-Speed
USB
AN68914 - EZ-USB
®
FX3 I2C Boot Option
Go to http://www.cypress.com to download the latest
version of the product collateral
About the Author
Name:
Rama Sai Krishna V
Title:
Applications Engineer Sr.
Background:
Rama Sai Krishna holds an M.Tech in
Systems and Control Engg. from IIT
Bombay. He is currently working on
Cypress USB peripherals.
Contact:
rskv@cypress.com