Unlike PWM or HPWM modes, single pulses are not generated continuously. They can be sent on demand of your application. You can specify the length and logical level of the pulse. You can also choose the pin to send the pulse on. Note, that single pulses can be generated on any of the 24 pins.
The pulse settings can be configured with GPIO_SET_PULSE_CFG command.
You can set:
To send a single pulse, send GPIO_MAKE_PULSE command.
If you set Byte 6: MODE to 1, the pulse will be generated using the settings previously configured by GPIO_SET_PULSE_CFG command. These settings are stored in the internal memory of the GPIO-24 adapter and can be changed only with another GPIO_SET_PULSE_CFG command.
If you you want to apply other settings for the pulse, set Byte 6: MODE to 0. In this case the adapter will send the pulse using the settings specified in GPIO_MAKE_PULSE command. Parameters of Bytes 2..5 are set in perfect analogy to the same bytes of GPIO_SET_PULSE_CFG command. Unlike GPIO_SET_PULSE_CFG command, the settings, configured by GPIO_MAKE_PULSE command, aren't stored in the internal memory. So, they are applied only for the current pulse.
Both GPIO_SET_PULSE_CFG and GPIO_MAKE_PULSE commands will switch pins to pulse generation mode.
With the help of GPIO_GET_CFG and GPIO_GET_PIN_CFG commands you can check whether the pin is switched to pulse mode or not. To determine whether an
I/O pin is sending a single pulse at the moment or not, use Byte 5: EXTENDED_CFG of GPIO_GET_PIN_CFG command. Note, that this information is available only when the pin is switched to pulse mode.
Pulse settings can be retrieved with GPIO_GET_PULSE_CFG command.