hello, i am using the following code to generate a delay of 200ms.
while(tfcount <= 16666) { if (TF1 == 1) { tfcount++; TF1 = 0; } }