Timing
Beavis3215
Posts: 229
In the C language using simple IDE, how can you stopwatch the time in clock ticks between 2 pulses on a propeller input pin? An even better question is besides the Simple IDE learn file, is there a comprehensive programming guide like there is for Spin? Is there a way besides running loops to make time delays shorter than what pause can?
Comments
pause_ticks uses the waitcnt instruction to delay for a specified number of clock ticks and can provide small precise time delays. If the delays are on the order of microseconds, you'll have to account for the time it takes for your code to execute.
Currently (as far as I know), there's no comprehensive programming guide like there is for Spin. There is a lot of information in "simpletools.h" and the other Propeller-specific header files.