This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

debugging of digital systems

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

Parents
  • This sounds like a job for assembler, not 'C'.

    You need to explain what you're trying to achive and why you want to do this - without that information, what you describe just sounds bizarre!

    From the title of your post, it sounds like you actually just need to set a breakpoint in the debugger?!

Reply
  • This sounds like a job for assembler, not 'C'.

    You need to explain what you're trying to achive and why you want to do this - without that information, what you describe just sounds bizarre!

    From the title of your post, it sounds like you actually just need to set a breakpoint in the debugger?!

Children
No data