COUNT -- Obsolete PBASIC routine
 
Syntax


#include <PULSE.bas>   ' PBASIC library, these routines were written for ARMexpress, and included for general reference

FUNCTION COUNT ( pin, milliseconds )

Description

Count the number of pulses low-high-low or high-low-high on pin over a duration of milliseconds, returning the value to variable.
Example

#include <PULSE.bas>
'Report the number of transition cycles on pin 7 during a 10 second interval

ct = COUNT ( 7, 10000 )
PRINT "Pin 7 transitioned "; ct; " times"

Pin 7 transitioned 3 times

Differences from other BASICs

See also