A rectangular pulse generator with a period equal to the sum of the variables duration hi
and duration lo
.
When the input enable
is a logical 0, the generator is off, and all outputs are set to zero.
When the input enable
is a logical 1, the generator operates as follows:
count hi
and count lo
alternate counting from zero up to the values of duration hi
and duration lo
, respectively.
count hi
counter is active, the output
is 1.count lo
counter is active, the output
is 0.Function Menu | Block Diagram |
---|---|
![]() |
![]() |
Name | Type | Description |
---|---|---|
enable |
bool |
Enable signal |
duration hi |
int32 |
Duration of the logical 1 state, in ms |
duration lo |
int32 |
Duration of the logical 0 state, in ms |
Name | Type | Description |
---|---|---|
output |
bool |
Output. It is in the logical 1 state while the count hi counter is active, and in the logical 0 state while the count lo counter is active. |
count hi |
int32 |
Counter for the logical 1 state, in ms. Resets simultaneously with the count lo counter. |
count lo |
int32 |
Counter for the logical 0 state, in ms. Resets when it reaches the value of duration lo . |
Not available