Академический Документы
Профессиональный Документы
Культура Документы
GOPINATHAN/PHYSICS/SBWASC P a g e |1
5. What is a bus?
Bus is a group of conducting wire/lines that carries data, address and control signals.
11. What is the need for system clock and how it is generated in 8085?
The system clock is necessary for synchronizing various internal operations or devices in the
microprocessor and to synchronize the microprocessor with other peripherals in the system.
13. List the four operations commonly performed by MPU( Micro processing Unit)?
• Memory Read : Reads data (or instructions) from memory.
• Memory Write: Writes Data (or instructions) into memory.
• I/O Read: Accepts data from input devices.
M. GOPINATHAN/PHYSICS/SBWASC P a g e |2
19. List out the five categories of the 8085 instructions. Give examples of the instructions for each
group.
• Data transfer group – MOV, MVI, LXI.
• Arithmetic group – ADD, SUB, INR.
• Logical group –ANA, XRA, CMP.
• Branch group – JMP, JNZ, CALL.
• Stack I/O and Machine control group – PUSH, POP, IN, HLT.
20. Explain the difference between a JMP instruction and CALL instruction.
A JMP instruction permanently changes the program counter. A CALL instruction leaves
information on the stack so that the original program execution sequence can be resumed.
22. What is the difference between the shifts and rotate instructions?
A rotate instruction is a closed loop instruction. That is, the data moved out at one end is put back in
at the other end. The shift instruction loses the data that is moved out of the last bit locations.
24. List the four instructions which control the interrupt structure of the 8085 microprocessor.
a. DI ( Disable Interrupts )
b. EI ( Enable Interrupts )
c. RIM ( Read Interrupt Masks )
d. SIM ( Set Interrupt Masks )
Interrupts Priority
TRAP 1
RST 7.5 2
RST 6.5 3
RST 5.5 4
INTR 5
37. Mention the categories of instruction and give two examples for each Category?
The instructions of 8085 can be categorized into the following five
47. What operation is performed during first T -state of every machine cycle in 8085?
In 8085, during the first T -state of every machine cycle the low byte address is latched into an
external latch using ALE signal.
49. How the 8085 processor differentiates a memory access (read/write) and I/O access
(read/write)?
The memory access and 1/0 access is differentiated using 10 I M signal. The 8085 processor asserts
10 I M low for memory read/write operation and 10 I M is asserted high for 1/0 read/write operation.
59. When the 8085 processor will disable the interrupt system?
The interrupts of 8085 except TRAP are disabled after anyone of the following operations
1. Executing El instruction.
2. System or processor reset.
3. After reorganization (acceptance) of an interrupt.
60. How the vector address is generated for the INTR interrupt of 8085?
For the interrupt INTR, the interrupting device has to place either RST opcode or CALL opcode
followed by l6-bit address. I~RST opcode is placed then the corresponding vector address is generated by
the processor. In case of CALL opcode the given l6-bit address will be the vector address.
61. How clock signals are generated in 8085 and what is the frequency of the internal clock?
The 8085 has the clock generation circuit on the chip but an external quartz crystal or L C circuit
or RC circuit should be connected at the pins XI and X2. The maximum internal clock frequency of
8085A is 3.03 MHz.
73. Give some examples of port devices used in 8085 microprocessor based system?
The various INTEL I/O port devices used in 8085 microprocessor based system are 8212, 8155, 8156,
8255, 8355 and 8755.
82. Why EPROM is mapped at the beginning of memory space in 8085 system?
In 8085 microprocessor, after a reset, the program counter will have the address 0000H. The
monitor program is a permanent program for Initialization and configuring of peripherals and it is stored in
the EPROM memory. If EPROM memory is mapped at the beginning of memory space, i.e., at 0000H,
then the monitor program will be executed automatically after a reset of the processor. This is why
EPROM is mapped at the beginning of memory space.
83. What is Tri-state logic?
A device can reside in three states, which are a) On-state b) Off-state and c) High impedance-state.
The high impedance state is a state in which the output of a device is physically connected to a bus, but
electrically isolated through high impedance.
84. Define Stack and Stack Pointer.
Stack is a portion of RAM memory which is used for temporary storage of register contents using PUSH
and POP instructions. Stack Pointer (SP) is a 16-bit register that holds the memory address of the stack top.
Stack pointer gets decremented by 2, for every push operation and vice versa.
2. The I/O devices are accessed by 2. The I/O devices are accessed by I/O
Memory Read or Memory Write Read or I/O write machine cycles
machine cycles.
4. Large number of I/O devices can 4. Only small number of I/O devices
be interfaced. can be interfaced.
5. Data transfer can be made between 5. Data transfer can be made only
all registers and I/O devices. between Accumulator and I/O
devices.
6. This scheme is used when memory 6. This scheme is used when complete
requirement is less. memory space is required.
When low byte address (A0-7) comes out of AD0-7 lines, the processor asserts HIGH in the ALE pin,
enabling the latch to separate the low byte address.
M. GOPINATHAN/PHYSICS/SBWASC P a g e | 11
Execution of an OUT instruction will transfer one byte of data from Accumulator of microprocessor to an
Output device.
97. Compare System bus and CPU bus.
Bus is a set of conducting wires in a microprocessor based system, which helps to carry various
information like DATA, ADDRESS and CONTROL signal.
Bus
System Bus CPU Bus
It will not be
Internal External It will be directly
directly connected
connected to CPU
to CPU
There will be
The data and
separate data,
CPU bus System Bus address may be
address & control
multiplexed
buses
In 8085, if the external clock frequency applied through X1 & X2 pins are 6 MHz; then the internal clock
frequency is 3 MHz (since, Fint = Fext / 2).Therefore, one T-State equals to
T = 1/F = 1/3MHz = 0.333µs.
104. What is Processor (machine) cycle? List the various machine cycles with its T-states.
The machine cycles are the basic operations performed by the processor, while instructions are executed.
The time taken for performing each machine cycle is expressed in terms of T-states.
The various machine cycles are
1. Opcode fetch …………….. - 4 /6T
2. Memory Read ……………. - 3T
3. Memory Write ……………. - 3T
4. I/O Read ………………….. - 3T
5. I/O Write …………………. - 3T
6. Interrupt Acknowledge …… - 6 / 12 T
7. Bus Idle …………………… - 2 /3T
M. GOPINATHAN/PHYSICS/SBWASC P a g e | 13
107. The various addressing modes in 8085 with two examples in each.
Addressing is the method of specifying the location of data in an instruction. The different
types of addressing modes in 8085 are,
I. Direct:
The data is stored in memory and 16 bit address of data in memory location is specified in the
instruction. Eg.: LDA 4500, LHLD 4200
II. Immediate:
The required data for processing is given next to the Opcode, in the instruction itself.
Eg.: MVI A, 55 CPI 64, ADI 0A
III. Register:
The data is placed in a register and the register name is given in the instruction to access
the data. Eg.: MOV A,B ADD B, SUB C
_________
_________ RET
JMP Instruction
Execution of a JMP instruction will transfer the program control from one location to another location
within the same program. Time taken for its execution is 7 / 10 T
Main _________
_________
_________
JMP addr16
_________
_________
addr16:_________
_________
The counter is an arrangement to keep track of a process. This consists of three operations which are a)
count initialization b) decrement count value and c) check whether count value has reached zero.
The count operation can be either Up-count or Down-count. A Counter is used for repeated processing,
time delay generation, counting of events.
112. Write an 8085 program to generate a time delay of 0.4sec; assuming crystal frequency as
5MHz.
Internal frequency = 5MHz/2 = 2.5MHZ.
Time for one T-state = 1/ 2.5MHz = 0.4msec.
Number of T-states required for delay= Delay time/Time for1Tstate=0.4sec/0.4msec
= 1 x 106 T-states
Delay program:
LXI B, Count ……………..….… 10T
Loop : MOV A, C …………….............. 4T
ORA B ……………………….… 4T
DCX B …………………….…… 6T
JNZ Loop …………………….… 10T
113. Identify the no. of address lines needed for interfacing 8KB memory.
Where, N is number of address lines. ∴The no. of address lines for 8 KB is equal to 13.