As expected, the harmonic content of a conventional PWM is quite high. If the down counter is replaced with a Pseudo Random Sequence, the Compare value still causes the same percent of High states, but the high states are randomly dispersed. For a compare value of 50%, the output has a probability of being High 50% of the time. The waveform of such a PRS PWM and its spectrum plot are shown below.
As seen in the above plot, the dithering of the PWM output significantly removes the harmonics. This property is very useful in applications where this will significantly reduce radiated noise.
This example project demonstrates how to configure a PRS user module as a PRS PWM. The outputs from a PRS PWM and a conventional PWM are brought out and filtered using RC Filters. For the same pulse width setting, the DC measured after the RC filters from the PWM and PRS PWM are the same. The project and documentation may be downloaded from the below link in Cypress websitePRS PWM Example Project







