xTaskGetTickCount() erroneously skips ahead after every 65536 ticks. So when calculating timing using values returned by xTaskGetTickCount(), there are problems! vTaskDelay() has no problems. The problem is with xTaskGetTickCount()... For example:Cod...