square-wave

xod/core/square-wave

Generates square wave signal
square-wave
@/square-wave
Generates square wave signal
Tnumber
Time interval between switches to `true`, i.e. the period of the square wave.
DUTYnumber
Duty cycle. Ratio of `true` signal duration to the whole `IVAL`.
ENboolean
Enabled or not. When set to `false` pauses generation preserving the current phase. When set to `true` again continues counting from the saved phase.
RSTpulse
Resets the wave phase and `N` to zero.
square-wave
TTDUTYDUTYENENRSTRSTOUTOUTNN
Nnumber
The number of current cycle. Starts from 0. The cycle is considered to start with the `true` value.
OUTboolean
The signal value: `true` or `false`. When the phase is at switch boundary, the value is the same as `EN`, i.e. `false` if paused and `true` if active.