3 Replies Latest reply on Aug 8, 2017 4:53 AM by user_504416177

    Why status register take the program into forever chk mode?

    user_504416177

      Hello Every body,

         

      I am doing SPI communication between Pi and PSOC 5LP.

         

      I placed a command

         

      while(!(SPIS_ReadTxStatus() & SPIS_STS_SPI_DONE));

         

      But by doing this, my program just takes too long to fulfill the condition and when I replace the above condition with just:

         

      while(!(SPIS_STS_SPI_DONE));

         

      It does not!

         

      I wonder why it is behaving so wierd?

         

      Looking forward to your answers!