Quantcast
Channel: Cypress Semiconductor - PSoC 5 Known Problems and Solutions
Viewing all articles
Browse latest Browse all 264

PSoC 5lp Dual SPIM module don't working

$
0
0

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

 


Viewing all articles
Browse latest Browse all 264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>