3 Replies Latest reply on Jan 27, 2017 4:38 AM by user_78878863

    PSoC 5lp Dual SPIM module don't working

    ferhatyol_2020106

      Hi friends

         

      I'm using PSoC 5LP CY8C5868-AXI Psoc device. I need two spi modules in Psoc5 series. But I have a problem. 

         

      I uploaded an image as an attachment. The circuit as shown in the picture. 

         

      in this circuit the SPIM_1 module works fine, but the SPIM_2 module is not running. I use the following function to write data. 

         
          

             SPIM_2_WriteByte(0xAA);  //Write to SPIM_2 module
             while (0u == (SPIM_2_ReadTxStatus() & SPIM_2_STS_SPI_DONE)){} //wait for data send

         
         

      What could be the problem? How many SPI modules can I use in this way?

         

      Thanks