Instructions
394Libraries
© 2013 Conrad Electronic
TIM_128 (4)
1,939 µs
Table flags:
Definition
Meaning
TIMFLG_IRQ
Interrupts are generated
TIMFLG_PINA
signal is output on pin TIMERx-A
TIMFLG_PINB
signal is output on pin TIMERx-B
5.26.2.12 Timer_TickCount
Timer Functions
Syntax
dword Timer_TickCount(void);
Sub Timer_TickCount() As ULong
Description
Measures the time in 10ms ticks between two calls of Timer_TickCount() and returns the value at
the second call of Timer_TickCount(). The return value of the first call can be ignored.
Parameter
None
Return Parameter
time interval expressed in 10ms ticks
Example
void main(void)
{
word time;
Timer_TickCount();
AbsDelay(500); // wait 500 ms
time=Timer_TickCount(); // the value should be 50
}