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.

grittinjames

Advanced Member level 1
Joined
Jun 1, 2006
Messages
479
Helped
44
Reputation
90
Reaction score
32
Trophy points
1,308
Location
bangalore india
Activity points
3,985
what is program counter in 8051

hai

how we can find out present present value of program counter in program
 

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top