Hi,
Which LPC device are you using?
Maybe you can use LPCOpen, LPCOpen is an extensive collection of free software libraries (drivers and middleware) and example programs that enable developers to create multifunctional products based on LPC microcontrollers. You can download it from the following link:
LPCOpen Libraries and Examples|NXP
You will find some examples that you can use as reference. I hope this helps,
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------