Content originally posted in LPCWare by jgorsk on Fri Oct 12 09:05:36 MST 2012
Hello Antony,
If you want to operate SGPIO PWM at high speed don't use SGPIO interrupt. That takes
to much CPU time. In my opinion you should implement DMA transfers instead. I tried using interrupts,
it doesn't make much sense. The CPU is just too busy with SGPIO ISR.
Apart from that SGPIO based PWM should work fine.
Is it going to be single or multichannel PWM?
If you don't need great accuracy, you can also use any timer to generate the timing and toggle
the PWM pin in that timer interrupt handler but I guess you considered that already.