Hi,
Please check the below examples and let me know if this helps.
Getting Started with NXP's LPC11XX Cortex-M0 ARM Microcontrollers - Microcontroller - eewiki
Have a great day,
Soledad
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------