sir, i am using basic 8051 microcontroller how is it possible to get the value of the program counter through c program. i need to keep track of the program counter value. whenever it reaches certain specified value, the program execution has to be stopped.the new value may be reloaded from the user specified waiting for your reply ravikira
Hello Ravi, You can generate software interrupt. when your counter reaches the value you specified enable software interrupt and make the value read or in other way in debugger you can set a breakpoint. Hope this help. regards, Abdul Raheem