Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

accessing program counter in 8051

Status
Not open for further replies.
There is no way to read the value of PC (internal Program Memory) ..
But, if you, for example, trigger an interrupt you can read (within interrupt routine) the very first two byes from the Stack - they will be PCH and PCL ..
This would be like asking: What address are you about to execute next (after returning from interrupt) ..

Regards,
IanP
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top