1 Reply Latest reply on Dec 17, 2013 5:46 AM by ShawnA_01

    Are SPI function calls blocking or non-blocking?

    ShawnA_01

      When writing code that uses the SPI interfaces on 20732, can you have a tight-loop repeatedly calling the function, or must we insert a delay between successive calls?

       

       

      For example:

       

       

             while(1)

       

             {

       

               spiffy2_slave_receive_send_byte();

       

             }

       

       

      versus

       

       

             while(1)

       

             {

       

               spiffy2_slave_receive_send_byte();

       

               ms_delay(100);     // function may not actually exist, but shown for academic purposes only

       

             }