#include "net\tick.h" void main(void) { //Second tick variables TICK16 tsec = 0; //16 Bit Second Tick, range of 0 to 65,536 sec = 0 to 18.2 hours //Infinite loop while(1) //Use 16 bit second tick, execute every second //This method uses a 16 bit second tick, which produces medium size //code, and has a range of 0 to 65,536 sec = 0 to 18.2 hours. //It has a resolution of 1 second. if ( TickGetDiffSec(tsec) >= (TICK16)1) { tsec = TickGetSec(); //Add uses code here. This code is executed every second ... } } }