SETTICK period, target [, nbr]
This will setup a periodic interrupt (or “tick”).
Four tick timers are available (‘nbr’ = 1, 2, 3 or 4). If ‘nbr’ is not specified timer number 1 will be used.
The time between interrupts is ‘period’ milliseconds and ‘target’ is the line number or label of the interrupt routine. IRETURN returns from the interrupt. A subroutine can also be specified for the interrupt target and in that case return is via EXIT SUB or END SUB.
The period can range from 1 to 4294967295 mSec (about 49 days).
This interrupt can be disabled by setting ‘period’ to zero (ie, SETTICK 0, 0, 3 will disable tick timer number 3).