Using a PRS Generator as a PWM - KBA83077

Version: **

 

Question: How do I use a Pseudo Random Sequence (PRS) generator as a Pulse Width Modulator (PWM) in PSoC® Designer?

 

Answer:

Answer : The PRS generator uses a Linear Feedback Shift Register (LFSR) to generate a pseudo-random bit stream. You can configure the PRS to output the LSB of the bit stream in order to implement a PRS PWM. Using a PRS PWM spreads the signal energy over the complete spectrum and significantly lowers EMI.

The PRS Pulse Width Modulator example project demonstrates how to implement a PRS PWM. It also compares the frequency spectrum of a PRS PWM with a conventional PWM.

PRS Pulse Width Modulator Project Documentation
PRS Pulse Width Modulator PSoC Project Files