I am testing a basic timer example in keil (8051 )
when I debug this code
org 0
MOV TH0,#76
MOV TL0,#01
MOV TMOD,#01
SETB TR0
JNB TF0,$
end
I get the error
error 65 access violation at c: 0x000e no execute read permission
Please I need help to solve this problem
Best Answer
You have a classical mistake here. You have made no provisions as to what your program should be executing after you get to address 0x000E.
Here take a look:
Just because you put an "end" statement in your assembly language source code means nothing to the run time 8051 core trying to fetch instructions.