ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Embedded Systems >> 86 Family
 
 


 

 
 86 Family interview questions  86 Family Interview Questions (53)
 VLSI interview questions  VLSI Interview Questions (200)
 DSP interview questions  DSP Interview Questions (9)
 Embedded Systems AllOther interview questions  Embedded Systems AllOther Interview Questions (24)
Question
What is a program counter? What is its use?
 Question Submitted By :: 86-Family
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
It is a 16 bit special function register in the 8085
microprocessor.It keeps track of the the next memory
adderess of the instruction that is to be executed once the
execution of the current instruction is completed.In other
words, it holds the address of the memory location of the
next instruction when the current instruction is executed by
the microprocessor.
 
Is This Answer Correct ?    324 Yes 23 No
Saptadip
 
Answer
# 2
PC [program counter] is a register holding the address of
the instruction which needs to be executed next. Its used
to keep track of current execution point - this tracking is
necessary for various reasons and some of these reasons are:
1. While branching or looping destination address is
specified with respect to the current PC value.
2. While branching to a function call current Pc value is
pushed into the stack and retrieved back when retrunign
from the function-call.
3. PC value is strored when servicing an interrupt and
restored back after execution of ISR.
http://www.vinaymk.com/tutorials
 
Is This Answer Correct ?    107 Yes 29 No
Vinay M K
 
 
 
Answer
# 3
Program counter is a sixteen bit register which holds the
address of the next instruction to b executed. Program
counter is required bec

1. It speeds up the execution of a task.
2. the detination address where answer is to be stored is
with reference to the current address in PC.
 
Is This Answer Correct ?    68 Yes 28 No
As Talwar
 
Answer
# 4
Program counter hold the address of either the first byte of
the next instruction to be fetched for execution or the
address of the next by byte of instruction. Which has been
completely fetched. In both the cases it gets incremented
automatically one by one as the instruction byte get
fetched. Also program register keeps the address of next
instruction.
 
Is This Answer Correct ?    7 Yes 1 No
Arvind
 
Answer
# 5
program counter is a 16 bit register of 8085 archiecture.It fetch the address of the next instruction.it is a tempory register 
Is This Answer Correct ?    2 Yes 0 No
Sunitha
 
Answer
# 6
The program counter, or PC (also called the instruction pointer[1], or instruction address register[2], or just part of the instruction sequencer[3] in some computers) is a processor register that indicates where the computer is in its instruction sequence. Depending on the details of the particular computer, the PC holds either the address of the instruction being executed, or the address of the next instruction to be executed.
In most processors, the instruction pointer is incremented automatically after fetching a program instruction, so that instructions are normally retrieved sequentially from memory, with certain instructions, such as branches, jumps and subroutine calls and returns, interrupting the sequence by placing a new value in the program counter.
Such jump instructions allow a new address to be chosen as the start of the next part of the flow of instructions from the memory. They allow new values to be loaded (written) into the program counter register. A subroutine call is achieved simply by reading the old contents of the program counter, before they are overwritten by a new value, and saving them somewhere in memory or in another register. A subroutine return is then achieved by writing the saved value back in to the program counter again.
 
Is This Answer Correct ?    21 Yes 20 No
Amita
 
Answer
# 7
As Anup asked, My doubt is suppose your code reside in the
memory location 9AB0 H. You initially switched on the micro
processor, Now what is the value in PC? Is it 0000H if not
what is that address? And why that address? how to load the
address where I wrote the code?
2) If during the execution of the Code we gave a Reset to
8085 where does the execution Jumps to? Does the program
return back to its normal execution after reset?
 
Is This Answer Correct ?    1 Yes 0 No
Naveen
 
Answer
# 8
who loads the program counter? an HOW? 
Is This Answer Correct ?    18 Yes 37 No
Anup
 
Answer
# 9
how is the address of first instruction got to Program Counter 
Is This Answer Correct ?    11 Yes 41 No
Anup
 

 
 
 
Other 86 Family Interview Questions
 
  Question Asked @ Answers
 
Draw a Transmission Gate-based D-Latch?   1
How do you detect if two 8-bit signals are same? Intel 5
What are the functions of RIM, SIM, IN? Wipro 9
Suppose you have a combinational circuit between two registers driven by a clock. What will you do if the delay of the combinational circuit is greater than your clock signal? Wipro 3
Return address will be returned by function to Wipro 1
What is PSW? DRDO 10
What is the difference detween ISR & function call Bosch 16
How many memory locations can be addressed by a microprocessor with 14 address lines? HCL 5
What happens during DMA transfer?   9
What are tri-state devices and why they are essential in a bus oriented system? Keane-India-Ltd 1
In a processor these are 120 instructions . Bits needed to impliment this instructions [a] 6 [b] 7 [c] 10 [d] none Wipro 2
What is the difference between MOV and MVI?   14
 
For more 86 Family Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com