221
C-Control Pro Mega Series
PS0_8 (2)
PS0_32 (3)
PS0_64 (4)
PS0_128 (5)
PS0_256 (6)
PS0_1024 (7)
6.19.46 Timer_TickCount
Timer Functions
Syntax
word Timer_TickCount(void);
Sub Timer_TickCount() As Word
Description
Measures the number of 10ms ticks between two calls of
the first call to Timer_TickCount(). If the delay between the two calls is greater than 655.36 seconds,
the result is undefined.
Parameter
None
Return Parameter
time interval expressed in 10ms ticks
Example
void main(void)
{
word time;
Timer_TickCount();
AbsDelay(500);
time=Timer_TickCount();
}
542,5 ns
2,17 µs
4,34 µs
8,68 µs
17,36 µs
69,44 µs
// wait 500 ms
// the value should be 50
Timer_TickCount(). Ignore the return value of
© 2008 Conrad Electronic
Need help?
Do you have a question about the C-Control Pro Mega Series and is the answer not in the manual?
Questions and answers