PULSOUT -- Obsolete PBASIC routine
 
Syntax


  ' 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 )

Description


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.

Example

#include <PULSE.bas>

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

Differences from other BASICs

See also