We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hello, i am using the following code to generate a delay of 200ms.
while(tfcount <= 16666) { if (TF1 == 1) { tfcount++; TF1 = 0; } }
can u please help and tell me how to avoid this. Almost certainly not --- because we have no idea what the code following that while(), nor any other part of code that may be causing this, might look like. You'll need to post much more complete source code. Try to boil down you actual source to the smallest you can come up with that still causes this error. And look up C:0x000b in the map file and in your debugger initialization script, or use instruction trace-back to check out how you came there. According to the error message, you're trying to run code at that address, but the debugger doesn't believe that any code was ever put in that position.
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