Hello Muhib Rzaz,
Yes, KE SPI register just have the SPI transmit buffer empty flag, but I think it is not the problem.
If you want to detect the end of the finished shifting data, you can realize it in your code.
Take an example, define a flag to indicate the sending is in process, when the SPTEF is 1, then you send the data, set your own defined flag, it means the sending is in process, then check the SPTEF again, if your defined flag is 1, and the SPTEF is also 1, it means the sending is finished.
Actually, I don't know why you need to check the data is finished, if you really want to detect it, you also can check the SPTEF from 0 to 1 directly in your code, this also means the shift is finished.
Wish it helps you!
If you still have question about it, please kindly let me know!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------