- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Receive,
In SPI communication,
# if MCU is a SPI master, SPI master transmits data to SPI slave and then SPI slave replied at the same time.
# I mean SPI master must transmit data first and SPI slave replied. SPI slave will not transmit data first to SPI slave.
I feel a little confuse about in what situation SPI master needs interrupt ?!
Thank you so much.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tim,
SPI does not require interrupts to operate.
You can use polling which has the CPU wait for each SPI transaction.
However, more CPU-efficient method would be interrupts. This reduces the load on the CPU.
Interrupts are used if you need to operate the SPI at maximum speed. Otherwise, polling should be sufficient.
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tim,
SPI does not require interrupts to operate.
You can use polling which has the CPU wait for each SPI transaction.
However, more CPU-efficient method would be interrupts. This reduces the load on the CPU.
Interrupts are used if you need to operate the SPI at maximum speed. Otherwise, polling should be sufficient.
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank you