Valerio Campomaggiore

Generating six-channel PWM using LPC824's SCT/PWM

Discussion created by Valerio Campomaggiore on Sep 5, 2017

Hello everybody,

this is my first ever discussion on NXP Community. I'm a bachelor student from Italy and I'm facing a few problems with my final project.

I need to generate a six-channel PWM with the SCT provided by LPC824 (LPCXpresso824-max board) but, even if the LPCXpresso IDE signals no errors, my oscilloscope detects no PWM wave at the output of my board.

 

I'll link my code so you can better understand what I did. Just as an example, in the code, duty cycle values are set to 50%

Is there anything I can do to fix it?

 

Thank you for your help

Original Attachment has been moved to: sct.c.zip

Original Attachment has been moved to: main.c.zip

Outcomes