Hi,
I suggest downloading the MCUXpresso SDK for the LPC54628. After download it, you will find some examples that you can use as reference.
In addition, I suggest download the SDK documentation in order to check the API references.

I hope this helps, have a nice day!
Regards
Soledad