hello, i am using the following code to generate a delay of 200ms.
while(tfcount <= 16666) { if (TF1 == 1) { tfcount++; TF1 = 0; } }
Check if you have enabled the interrupt for timer 1 and still polling it. Means this will be written in your code
. . ET1 = 1; . . EA = 1; . .
*** error 65: access violation at C:0x000B : no 'execute/read' permission Sorry... if it is 0X000B, then it is interrupt vector of timer 0. So check for ET0 = 1; in your code.And if you are making TR0 = 1; instead of TR1 = 1; Better is disable EA (EA = 0;) if you are not using interrupts. EX0 - 0X0003; ET0 = 0X000B; EX1 = 0X0013; ET1 = 0X001B; ES = 0X0023;
yup... it was the interrupt problem.. :) thnaks a lot