PULSOUT -- Obsolete PBASIC routine

  ' PBASIC library, these routines were written for ARMexpress, and included for general reference

#include <PULSE.bas>                 ' source in /Program Files/Coridium/BASIClib

SUB PULSOUT (  pin, microseconds )


Generate an output pulse on pin for microseconds.

The IO direction of pin will be set to output. The level of the output will be switched, driven for microseconds, then switched back to its initial level. The minimum pulse period is 1 microseconds.


#include <PULSE.bas>

' Generate a 1 second high pulse on pin 4.
PULSOUT (4, 1000000)

Differences from other BASICs

See also