Instructions

392Libraries
© 2013 Conrad Electronic
5.26.2.8
Timer_CPUCycles
Timer Functions
Syntax
dword Timer_CPUCycles(void);
Sub Timer_CPUCycles() As ULong
Description
Measures the CPU cycles between two calls of Timer_CPUCycles() and returns the value at the
second call of Timer_CPUCycles(). The return value of the first call can be ignored.
Since the processor is clocked at 66Mhz, only periods of up to 65 seconds can be measured.
Parameter
None
Return Parameter
CPU cycles between two calls
5.26.2.9 Timer_Disable
Timer Functions
Syntax
void Timer_Disable(byte timer);
Sub Timer_Disable(timer As Byte)
Description
The function turns off the selected Timer or Counter.
Parameter
timer number of timer (0 - 5)
5.26.2.10 Timer_GetCounterVal
Timer Functions
Syntax
word Timer_GetCounterVal(byte timer);