Are SPI function calls blocking or non-blocking?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
ShawnA_01
Employee
Employee
10 questions asked 5 comments on KBA First comment on KBA

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

       }

0 Likes
1 Solution
ShawnA_01
Employee
Employee
10 questions asked 5 comments on KBA First comment on KBA
Answer:  All SPIFFY function calls are blocking so no delays are needed.

View solution in original post

0 Likes
1 Reply
ShawnA_01
Employee
Employee
10 questions asked 5 comments on KBA First comment on KBA
Answer:  All SPIFFY function calls are blocking so no delays are needed.
0 Likes