hello, i am using the following code to generate a delay of 200ms.
while(tfcount <= 16666) { if (TF1 == 1) { tfcount++; TF1 = 0; } }
yup... it was the interrupt problem.. :) thnaks a lot