#include "net\tick.h" void main(void) { //The default tick period is 10ms TICK16 t16Bit = 0; //Has 16 Bits, range of 0 - 65535 = 65535 x 10ms // = 655 seconds = 10.9 minutes //Infinite loop while(1) //Use 16 bit tick, execute every half a second //This method uses a 16 bit tick, which produces medium size code and //has a range of 0 - 655 seconds. It has a resolution of 10ms. if ( TickGetDiff16bit(t16Bit) >= ((TICK16)TICKS_PER_SECOND / (TICK16)2) ) { t16Bit = TickGet16bit(); //Add uses code here. This code is executed every half a second ... } } }