Hello Valerio Campomaggiore,
I think you can test the official sample code at first, whether it works on your side.
You can download the code bundle :
http://www.nxp.com/downloads/en/software/LPC824_Example_Code_Bundle_LPCXpresso_r1.0.zip
The SCT_PWM project, whether it works on your side, if it works, you can modify the official code, then check it again.
Please try it at first.
If you still have question, please let me know!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------