1 Reply Latest reply on Sep 21, 2015 9:58 PM by madhul_36

    Data in/out through UART



      I am building an application that would transfer data via SPI to a device connected on SPI. To start, I am trying to transfer data between host and CX3. I am using CyU3PDebugPrint to print data from CX3 to the hyperterminal. Is there a way I can transfer data from hypterterminal to CX3? 


      Also, I have to build the host application from scratch to talk to SPI slave. Are there any docs/tutorials that will be useful?







        • 1. Re: Data in/out through UART



          To talk to SPI from the host side, it is better to use vendor commands through the control endpoint. You can use the control center tool to send the vendor commands. The source code of the control center is given in the SDK. You can refer the source code to send vendor command using your own host application. 


          The example firmware in the SDK Location "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\serialif_examples\cyfxusbspidmamode" and "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\serialif_examples\cyfxusbspiregmode" use vendor commands from the host to do SPI Transfers.


          You can refer these examples for implementation of FX3 firmware.


          Also, CyU3PDebugPrint is not the correcr way of sending anf receive data from Hyperterminal. You need to have a COM Port interface in your project in addition to the existing interfaces. FX3 has been configured as a COM Port in the example project "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\serialif_examples\cyfxusbuart"


          Refer this example to add this functionality in your project also. If you have any trouble in intergration, please create a Tech Support Case




          - Madhu Sudhan