 |
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
Go to the documentation of this file.
19 long count(
int pin,
long duration)
31 int ctr = (10 << 26) + pin;
35 while((
input(pin) == state) && (
CNT - t < tf));
#define PHSB
Counter B phase accumulation register.
#define PHSA
Counter A phase accumulation register.
#define FRQA
Counter A frequency register.
#define FRQB
Counter B frequency register.
#define CTRB
Counter B control register.
#define CNT
The system clock count.
long count(int pin, long duration)
Count number of low to high transitions an external input applies to an I/O pin over a certain period...
#define CTRA
Counter A control register.