Microprocessors
Microprocessors
1. Define microprocessor?
A microprocessor is a multipurpose, programmable, clock-driven, register-based
electronic device that reads binary instructions from a storage device called memory
accepts binary data as input and processes data according to instructions, and provides
result as output.
2. Define microcomputer?
A computer that is designed using a microprocessor as its CPU. It includes
microprocessor, memory, and I/O.
3. Define ROM?
A memory that stores binary information permanently. The information can be
read from this memory but cannot be altered.
4. What is an ALU?
The group of circuits that provides timing and signals to all operation in the
computer and controls data flow.
6. What is an instruction?
An instruction is a binary pattern entered through an input device in memory to
command the microprocessor to perform specific function.
15. Why are the program counter and the stack pointer 16-bit registers?
Memory locations for the program counter and stack pointer have 16-bit
addresses. So the PC and SP have 16-bit registers.
17. Specify the number of registers and memory cells required in a 128 x 4 memory
chip?
Number of registers = 128
Memory cells required is 128 x 4=512
18. Explain the function of ALE and IO/M signals in the 8085 architecture?
The ALE signal goes high at the beginning of each machine cycle indicating the
availability of the address on the address bus, and the signal is used to latch the low-
order address bus. The IO/M signal is a status signal indicating whether the machine
cycle is I/O or memory operation.The IO/M signal is combined with the RD and WR
control signals to generate IOR, IOW, MEMW,MEMR .
19. If the 8085 adds 87H and 79H, specify the contents of the accumulator and the
status of the S, Z, and CY flag?
The sum of 87H and 79H =100H. Therefore, the accumulator will have 00H, and
the flags will be S =0, Z = 1, CY = 1
23. What is a transparent latch? Why is it necessary to latch with output devices
such as LED’s?
A transparent latch is a flip-flop; its output changes according to input when the
clock signal is high, and it latches the input on the trailing edge of the clock. The latch is
necessary for output devices to retain the result; otherwise the result will disappear
6. Write instructions to load the hexadecimal numbers 65H in register C, and 92h in
the accumulator A .Display the number 65H at PORT0 and 92H at PORT1?
MVI C, 65H
MVI A, 92H
OUT PORT1 ; DISPLAY 92H
MOV A, C ; COPY C INTO A FOR DISPLAY
OUT PORT0 ; DISPLAY 65H
HLT
8.What operation can be performed by using the instruction SUB A? Specify the
status of Z and CY?
The instruction SUB a will clear the accumulator. The flag status will be
CY = 0 and Z = 1.
9. Write instructions to a) load 00H to accumulator
b) Decrement the accumulator
c) Display the answer
MVI A, 00H (A = 0 0 0 0 0 0 0 0
DCR A - 00000001
OUT PORT# 1 1 1 1 1 1 1 1 = FFH)
HLT
2. If an input and output port can have the same 8-bit address how does the 8085
differentiate between the ports?
In The 8085 differentiates between the input and output ports of the same address
by the control signal. The input port requires the RD and the output port requires the WR
signal.
3. What are the control signals necessary in the memory mapped I/O?
RD, WR, I/O (low)
4. Why a latch is used for the output port and a tri-state buffer is used for the input
port?
A latch is necessary to hold the output data for display. The input data byte is
obtained by enabling a tri-state buffer and placed in the accumulator.
6. How will the port number be affected if we decode the high-order address lines A15 –
A8 rather than A7 – A0?
The port address will remain the same because the I/O port address is duplicated
on both segments of the address bus.
13.What is RIM?
RIM: Read Interrupt Mask. Used for three functions
a. To read interrupt mask
b. To identify the pending interrupt
c. To receive serial data
14. What the two categories of an interrupt?
Four Maskable interrupt
One Non Maskable interrupt
3. Specify the bit of a control word for the 8255, which differentiates between the
I/O mode and the BSR mode?
BSR mode D7= 0, and I/O mode D5 = 1
D7 D6 D5 D4 D3 D2 D1 D0
4. Write instructions for the EXEC module,assuming the memory address where
execution begin is in register DE?
EXEC: PUSH
RET
5. What are the functions of a single-board micocomputer?
Check the keyboard fro data or functions
Display memory address, data, and results.
Execute programs
7. What is BHE?
BHE is Bus High enable. This is an active low signal used only in the
8086 microprocessor to enable the high order byte of 16-bit data.
11. When a key closure is found, the microprocessor waits for 10 to 20 ms before it
accepts an input? Write a delay routine for the above?
DBONCE: PUSH B
PUSH PSW
LXI B,COUNT
DCX B
MOV A,C
ORA B
JNZ LOOP
POP PSW
POP BC
RET
14. Write the data transfer from Master MPU to Slave MPU?
The master mpu reads the status
The master writes the data into port A
The slave checks the OBF signal
The slave MPU reads the data from port A
15. Give the status word format for the bi-directional data transfer?
D7 D6 D5 D4 D3 D2 D1 D0
OBFA INTE1 IBFA INTE2 INTRA X X X
Long Answers
UNIT I
1. Explain the architecture of 8085 microprocessor?
Logic pin out of 8085 microprocessor
Address bus: unidirectional bus, used as high order bus
Data bus: bi-directional bus, used as low order address bus and
data bus
Control and status signals: two control signals, RD and WR
Three status signals: I/O, S1, and S2
Power supply and clock frequency: The signals are Vcc, Vss, X1,
X2, and CLK
Externally initiated signals, including frequency: five signals
INTA, RESET, HOLD, READY, INTR
Serial I/o ports: two signals, SID, SOD
UNIT II
1. Explain the instruction Classification?
♦ Define the instruction set
♦ Classification of the instruction
• Data transfer operation: a group of instruction copies fron one
location to another location
• Arithematic operation: Addition, subtraction, Inc/dec
• Logical operations: to perform logical operations
AND, Or, Exclusive-OR
Rotate
Compare
♦ Branching Operations: alters the sequence of the program
• Jump, Call, Return
Branch instruction
♦ JMP 16-BIT ADDRESS
♦ JZ
♦ JNZ
♦ JC
♦ JNC
♦ CALL
♦ RET
Priority Modes
♦ Specific rotation mode
♦ Automatic rotation mode
♦ Fully Nested mode
End of interrupt
♦ NON specific EOI command
♦ Specific EOI command
UNIT IV
Transmitter Section
TxD
TxC
TxRDY
TxE
Receiver Section
Rxd
RxC
RxRDY
UNIT V