Content originally posted in LPCWare by cgroen on Fri Jan 08 04:10:33 MST 2016 I see a number of questions regarding using the SCT for generating PWM. I have a board with 24 PWM outputs (driving servos) and I thought someone else might find use of my code. I have attached two files, PWM.h and PWM,c. Code should be pretty much sef-explanatory.
Anyway, feel free to use this for whatever you see fit :)