PULSE pin, width
Will generate a pulse on ‘pin’ with duration of ‘width’ mS.
‘width’ can be a fraction. For example, 0.01 is equal to 10 µS This enables the generation of very narrow pulses.
The generated pulse is of the opposite polarity to the state of the I/O pin when the command is executed. For example, if the output is set high the PULSE command will generate a negative going pulse.
Notes:
‘pin’ must be configured as an output.
For a pulse of less than 3 mS the accuracy is ± 1 µS.
For a pulse of 3 mS or more the accuracy is ± 0.5 mS.
A pulse of 3 mS or more will run in the background. Up to five different and concurrent pulses can be running in the background.
A background pulse can have its time changed while it is running by issuing a new PULSE command or it can be terminated by issuing a PULSE command with zero for ‘width’.
See also:
PIN
PWM
PWM STOP
SETPIN
Leave a Reply