Electrical – Need help understanding this PWM Generator

MATLABpwmsimulink

PWM Generator

From what I was told, this is a PWM generator. I am not exactly sure how this works. Can someone explain to me how this works? Whats the use of the repeating sequence and sine wave going into the relational operator? etc.

Best Answer

Sine wave and a repeating wave generates waves of respective nature continuously. They are fed to a relational operator. This relational operator compares both the input values and outputs TRUE(high) if sine wave magnitude is more than the repeating wave magnitude else FALSE(low). The NOT gate generates the complement of these. They are fed to a MUX. Its output is series of TRUE/FALSE (high/low) values based on the input sine and repeating wave values.

Probably the repeating1, 2 and 3 are of different of different frequencies and duty cycle and so PWM waves of different frequencies and duty cycle