Hello,
Previously, our scheduler called the Lpspi_Ip_SyncTransmit() function every 10ms to perform SPI communication in polling mode, as shown below:
while True:
if 10ms_flag_on:
Lpspi_Ip_SyncTransmit();
Recently, we switched to an interrupt-driven approach using LPSPI0_IRQn with Lpspi_Ip_AsyncTransmit(), as shown below:
While True:
if 10ms_flag_on:
Lpspi_Ip_AsyncTransmit();
I would like to ask if there is any recommended or reliable method to quantitatively evaluate the efficiency difference between the synchronous and interrupt-based asynchronous transmission methods.
Thank you in advance for your support.