Author: HemanthR_06 Version: **
Translation - Japanese: FX3でのSPI転送にAutoチャネルを使用する - KBA230715 - Community Translated (JA)
Question: How to use Auto channel with SPI as the producer and USB as the consumer?
Answer: The firmware project attached with this article has few modifications done on UsbSpiDmaMode example, available in FX3 SDK in the following path, to implement Auto channel:
C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\serialif_examples\cyfxusbspidmamode
Note:
Testing procedure is as follows:
With the attached firmware, reading data length(wLength) > 0x200 is not supported as the Auto channel has only one buffer of size 0x200. The functionality when there are multiple buffers in the Auto channel with SPI as the producer is not in the scope of present discussion.
Refer to the attached firmware, only when the 0x200 bytes are read out of the Bulk IN endpoint by the USB Host. This event CY_U3P_DMA_CB_XFER_CPLT is received in the DMA callback.