Dec 17, 2013
05:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 17, 2013
05:45 AM
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
}
Solved! Go to Solution.
Labels
- Labels:
-
SPI
- Tags:
- 20732
- academic
- blocking
- calling
- calls
- code
- delay
- exist
- function
- insert
- interfaces
- ms_delay100
- non-blocking
- purposes
- repeatedly
- shown
- spi
- spi1
- spi2
- spiffy1
- spiffy2
- spiffy2_slave_receive_send_byte
- successive
- tight-loop
- versus
- while1
- writing
1 Solution
Dec 17, 2013
05:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 17, 2013
05:46 AM
Answer: All SPIFFY function calls are blocking so no delays are needed.
1 Reply
Dec 17, 2013
05:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 17, 2013
05:46 AM
Answer: All SPIFFY function calls are blocking so no delays are needed.