Making a square wave by pwm with variable frequency

reza hakimi_20486
reza hakimi_20486 Altair Community Member
edited August 2023 in Community Q&A

Hello
I am going to make a square wave with a duty cycle of 0.5 using pwm so that the frequency of this wave is determined by another part of the circuit.
I will send the basic circuit diagram
What solution do you suggest to implement this program?

Tagged:

Answers

  • Rhonda_20369
    Rhonda_20369 New Altair Community Member
    edited August 2023

    Hi, Reza,

    Many of your questions can be answered by clicking PSIM's "Help >> Index" and search for the keyword.

    There is a PSIM element: "Variable Frequency PWM" in every target of SimCoder. This element can be used to control the frequency of a PWM block.

     

    In this element, you can specify which PWM block is controlled. The input of this block will control the frequency of the PWM block.

     

    The frequency range is from 0.25 to 4 times of the sampling frequency specified in PWM block parameters. If the input of the "Variable Frequency PWM" is outside this range, the values would be clamped.

    image