Hi,
i am trying to generate a square wave output with a certain frequency. i would like to use "blocks" to do this for my simulation, rather than software programming, but i'm having a hard time visualling what blocks i need to implement this.
My idea is is that i would set the frequency by the length of the counter. The counter would then count up to that value, and then count back down to zero, and then await the next value to count up to. On the "zero" and "length" value(s), the square wave would be generated by setting a high or low. i drew a quick image of what i am trying to achieve.
any and all suggestions are appreciated.
i am trying to generate a square wave output with a certain frequency. i would like to use "blocks" to do this for my simulation, rather than software programming, but i'm having a hard time visualling what blocks i need to implement this.
My idea is is that i would set the frequency by the length of the counter. The counter would then count up to that value, and then count back down to zero, and then await the next value to count up to. On the "zero" and "length" value(s), the square wave would be generated by setting a high or low. i drew a quick image of what i am trying to achieve.

any and all suggestions are appreciated.