Hi Parth Modi,
I don't have the direct SPI code for K20D72M now, but there has a K40 spi code for your reference, you can modify it and add it to your K20D72M project.
Please find the source file in the attachment
Wish it helps you!
if you still have question, please contact me!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------