Pages

Search in This Blog

Showing posts with label computer. Show all posts
Showing posts with label computer. Show all posts

Sunday, 8 January 2012

One shot 8085

Interview question of 8085



  1. What are the various registers in 8085? - Accumulator register, Temporary register, Instruction register, Stack Pointer, Program Counter are the various registers in 8085 .
  2. In 8085 name the 16 bit registers? - Stack pointer and Program counter all have 16 bits.
  3. What are the various flags used in 8085? - Sign flag, Zero flag, Auxillary flag, Parity flag, Carry flag.
  4. What is Stack Pointer? - Stack pointer is a special purpose 16-bit register in the Microprocessor, which holds the address of the top of the stack.
  5. What is Program counter? - Program counter holds the address of either the first byte of the next instruction to be fetched for execution or the address of the next byte of a multi byte instruction, which has not been completely fetched. In both the cases it gets incremented automatically one by one as the instruction bytes get fetched. Also Program register keeps the address of the next instruction.
  6. Which Stack is used in 8085? - LIFO (Last In First Out) stack is used in 8085.In this type of Stack the last stored information can be retrieved first.
  7. What happens when HLT instruction is executed in processor? - The Micro Processor enters into Halt-State and the buses are tri-stated.
  8. What is meant by a bus? - A bus is a group of conducting lines that carriers data, address, & control signals.
  9. What is Tri-state logic? - Three Logic Levels are used and they are High, Low, High impedance state. The high and low are normal logic levels & high impedance state is electrical open circuit conditions. Tri-state logic has a third line called enable line.
  10. Give an example of one address microprocessor? - 8085 is a one address microprocessor.
  11. In what way interrupts are classified in 8085? - In 8085 the interrupts are classified as Hardware and Software interrupts.
  12. What are Hardware interrupts? - TRAP, RST7.5, RST6.5, RST5.5, INTR.
  13. What are Software interrupts? - RST0, RST1, RST2, RST3, RST4, RST5, RST6, RST7.
  14. Which interrupt has the highest priority? - TRAP has the highest priority.
  15. Name 5 different addressing modes? - Immediate, Direct, Register, Register indirect, Implied addressing modes.
  16. How many interrupts are there in 8085? - There are 12 interrupts in 8085.
  17. What is clock frequency for 8085? - 3 MHz is the maximum clock frequency for 8085.
  18. What is the RST for the TRAP? - RST 4.5 is called as TRAP.
  19. In 8085 which is called as High order / Low order Register? - Flag is called as Low order register & Accumulator is called as High order Register.
  20. What are input & output devices? - Keyboards, Floppy disk are the examples of input devices. Printer, LED / LCD display, CRT Monitor are the examples of output devices.
  21. Can an RC circuit be used as clock source for 8085? - Yes, it can be used, if an accurate clock frequency is not required. Also, the component cost is low compared to LC or Crystal.
  22. Why crystal is a preferred clock source? - Because of high stability, large Q (Quality Factor) & the frequency that doesn’t drift with aging. Crystal is used as a clock source most of the times.
  23. Which interrupt is not level-sensitive in 8085? - RST 7.5 is a raising edge-triggering interrupt.
  24. What does Quality factor mean? - The Quality factor is also defined, as Q. So it is a number, which reflects the lossness of a circuit. Higher the Q, the lower are the losses.
  25. What are level-triggering interrupt? - RST 6.5 & RST 5.5 are level-triggering interrupts.

Saturday, 31 December 2011

computers

 Positive Logic, Negative Logic Explained using Doors & Switches


In this animated AND Logic example of Doors Opening and Closing, you can see that in order for the "Light" to get through the house, the front door AND the back door must be Open. 
Same example: if either the front door OR the back door is Closed the light does NOT get through.  In this animated OR Logic example, you can see that in order to get light through the house: the left front door OR the right front door (or both) must be Open. 
Same example: in order to block the light through the house: the left front door AND the right front door must be Closed. In order for the Output of an AND Logical Function to be TRUE: input (1) AND input (2) must both be TRUE.  This is Positive Logic. Hint: TRUE is when the switch is closed,  applying power to the LED.  FALSE is when the switch is open,  NOT applying power to the LED)
     
      Truth Table->
    A & B are the Input switches
    AND TT

    C is the Output LED
Using the Same Function --It is also correct to say: If either input (1) OR input (2) (or both) is NOT TRUE the Output Will be FALSE. This is Negative Logic. In order for the Output of an OR Logical Function to be TRUE: either 
input (1) OR input (2) (or both) must be TRUE.  This is Positive Logic.
     
      Truth Table->
    A & B are the Input switches
    C is the Output LED
    OR TT
Using the Same Function --It is also correct to say: In order for the Output to be FALSE: input (1) AND input (2) must both be FALSE. This is Negative Logic.
Remember: 
1) A Positive AND gate is a Negative OR gate 
2) A Positive OR gate is a Negative AND gate


logic element symbolIn order for the Output of an XOR Logical Function to be TRUE: input (1) & input (2) must both Different  01, 10.  This is Positive Logic.
     
    Truth Table->
    A & B are the Input switches
    C is the Output LED
Using the Same Function --It is also correct to say: In order for the Output to be FALSE: input (1) & input (2) must both be Identical  11, 00. This is Negative Logic.
  


flip flop Set Reset Mode
 Toggle Mode
Data Mode


  
Decimal number generation using Binary
decimal using binary
Binary-Decimal-Real Values

Binary Codes

Number Decimal
fraction
Two's 
complement
One's
complement
Sign +
magnitude
Offset
binary
+7
+6
+5
+4
+3
+2
+1
+7/8
+6/8
+5/8
+4/8
+3/8
+2/8
+1/8
0111
0110
0101
0100
0011
0010
0001
0111
0110
0101
0100
0011
0010
0001
0111
0110
0101
0100
0011
0010
0001
1111
1110
1101
1100
1011
1010
1001
0
0
0+
0-
0000
0000)
0000
1111
0000
1000
1000
1000)
-1
-2
-3
-4
-5
-6
-7
-8
-1/8
-2/8
-3/8
-4/8
-5/8
-6/8
-7/8
-8/8
1111
1110
1101
1100
1011
1010
1001
1000)
1110
1101
1100
1011
1010
1001
1000
1001
1010
1011
1100
1101
1110
1111
0111
0110
0101
0100
0011
0010
0001
0000)