Hi Rajiv,
You may use simple interrupt catcher example code for your inspiration:
https://community.nxp.com/docs/DOC-330312
I hope it helps you.
Have a great day,
Radek
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------