Question Bank-Microprocessor and Applicaion
Question Bank-Microprocessor and Applicaion
8255A -Programmable peripheral interface - 8251A USART -8279- keyboard and display
controller -8259 programmable Interrupt controller -8257 DMA controller -8254
programmable interval timer -digital to analog and analog to digital converters
TEXT BOOKS:
REFERENCES:
UNIT - I
PART-A
1. What is Microprocessor?
It is a program controlled semiconductor device (IC}, which fetches, decodes and
executes instructions.
5. What is a bus?
Bus is a group of conducting 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.
12.Draw and specify the complete bit configuration of 8085 flag Register?
D7 D6 D5 D4 D3 D2 D1 D0
S Z AC P CY
13. List the four operations commonly performed by MPU( Micro processingUnit)?
• Memory Read : Reads data (or instructions) from memory.
• Memory Write: Writes Data (or instructions) into memory.
• I/O Read: Accepts data from input devices.
21. 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.
22. 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.
26. List the four instructions which control the interrupt structure of the 8085
microprocessor.
• DI ( Disable Interrupts )
• EI ( Enable Interrupts )
• RIM ( Read Interrupt Masks )
• SIM ( Set Interrupt Masks )
Interrupts Priority
TRAP 1
RST 7.5 2
RST 6.5 3
RST 5.5 4
INTR 5
35. How many machine cycles does 8085 have, mention them
The 8085 have seven machine cycles. They are
• Opcode fetch
• Memory read
• Memory write
• I/O read
• I/O write
• Interrupt acknowledge
• Bus idle
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 1/0 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.
67.What is Polling?
Polling is a scheme or an algorithm to identify the devices interrupting the processor.
Polling is employed when multiple devices interrupt the processor through one interrupt pin of
the processor.
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.
2. Define pipelining?
In 8086, to speedup the execution of program, the instructions fetching and execution of
instructions are overlapped each other. This technique is known as pipelining. In pipelining,
when the n th instruction is executed, the n+1 th instruction is fetched and thus the processing
speed is increased.
10. What are the functions of bus interface unit (BIU) in 8086?
(a) Fetch instructions from memory.
(b) Fetch data from memory and I/O ports. (c)
Write data to memory and I/O ports.
(d) To communicate with outside world.
(e) Provide external bus operations and bus control signals.
18. How clock signal is generated in 8086? What is the maximum internal clock frequency
of 8086?
The 8086 does not have on-chip clock generation circuit. Hence the clock
generator chip, 8284 is connected to the CLK pin of8086. The clock signal supplied by
8284 is divided by three for internal use. The maximum internal clock frequency of8086 is
5MHz.
19. Write the special functions carried by the general purpose registers of 8086.
The special functions carried by the registers of 8086 are the following. Register
Special function
1. AX 16-bit Accumulator
2. AL 8-bit Accumulator
3. BX Base Register
4. CX Count Register
5. DX .Data Register
22. What is the difference between CPU bus and system bus?
The CPU bus has multiplexed lines but the system bus has separate lines for each
signal. (The multiplexed CPU lines are demultiplexed by the CPU interface circuit to form
system bus).
Part B
UNIT – III
Part A
8. While handling the interrupt instructions in 8086. What are the internal operations may be
carried out by the stack?
(i)SP =SP-2 , stack Push flag reg. Contents, IF =0 , TF =0
(ii) SP=SP-2, Stack CS Reg. Contents, Address of Interrupt pointer = Interrupt
type * 4 , CS Register Contents Second word of Interrupt pointer (iii) SP=SP-2,
Stack IP, IP First word of Interrupt pointer
50. Write the difference between CBW and CWD instruction in 8086.
CBW : Convert a byte to a word, sign extend AL Register into a AH Register.
CWD : Convert a word to a double word ,sign extend the AX Register into the
DX Register.
Part B
Unit – IV
Part A
1. What are the basic modes of operation of 8255?
There are two basic modes of operation of 8255, viz.
1. I/O mode.
3. BSR mode.
In I/O mode, the 8255 ports work as programmable I/O ports, while
In BSR mode only port C (PC0-PC7) can be used to set or reset its individual
port bits. Under the IO mode of operation, further there are three modes of
operation of 8
255, So as to support different types of applications, viz. mode 0, mode 1 and
mode 2. Mode 0 - Basic I/O mode
Mode 1 - Strobed I/O mode
Mode 2 - Strobed bi-directional I/O
17. What are the control words of 8251A and what are its functions ?
The control words of 8251A are Mode word and Command word. The mode
word informs 8251 about the baud rate, character length, parity and stop bits. The
command word can be send to enable the data transmission and reception.
18. What are the information that can be obtained from the status word of 8251 ?
The status word can be read by the CPU to check the readiness of the transmitter
or receiver and to check the character synchronization in synchronous reception. It also
provides information regarding various errors in the data received. The various error
conditions that can be checked from the status word are parity error, overrun error
and framing error.
19. What are the tasks involved in keyboard interface?
The task involved in keyboard interfacing are sensing a key actuation,
Debouncing the key and Generating key codes (Decoding the key). These task are
performed software if the keyboard is interfaced through ports and they are
performed by hardware if the keyboard is interfaced through 8279.
Unit – V
Part A
8.What is a port?
The port is a buffered I/O, which is used to hold the data transmitted from the
microprocessor to I/O device or vice-versa.
Part B
PART - B (5 x 16 = 80 Marks)
11.a) Draw the circuit diagram of an 8085 system having a 4 KB EPROM and 8 KB RAM
ICs. The starting address of the EPROM is 0000H and that of RAM is 8000H. The address
decoder circuits should be clearly shown.
(OR)
11.b) Write a subprogram using 8085 assembly language to multiply two 8 bit binary
numbers by repeated addition.
12.a)i) Determine the value of the accumulator after the execution of instructions A:,B:, C:
and D:
MOV 40H , #88H
MOV R0 , #40H
A: MOV A , R0
B: MOV A, @R0
C: MOV A, 40H
D: MOV A, #40H
ii) With neat diagram explain the timer / counter functions in 8051 Micro Controller.
(OR)
12.b) Using ports P0 and P1 of 8051 micro controller design an 8 digit 7 segment
multiplexed display system. Use suitable driver circuit and give flowchart for the software
involved.
13.a)i) With neat diagram explain how the memory is interfaced to 8086 as odd and even
page.
ii) Write an 8086 subroutine to test a system in address 00200H- 07FFFH.
(OR)
13.b) Describe in detail the memory management functions in Intel 80286/80386 Processor
15.a) Using DC servomotor and shaft angle encoder as sensor design a Microprocessor
based position control system.
(OR)
15.b) Describe how a closed loop microprocessor based process control system can be
implemented by using digital PID control algorithm.
Anna University
BE - ELECTRONICS AND COMMUNICATION
EC1303-Microprocessor and its Applications
(Common to B.E (Part-time) Fourth Semester Regulation 2005)
Time:Three hours Maximum:100 marks
PART-B(16x5=80)
11.(a) Draw and explain the pin details of 8085A briefly. [Marks 16]
Or
(b)(i) What are the flags affected by ALU in 8085? Explain briefly. [Marks 10]
(ii) Draw the schematic diagram of memory interfacing in 8085. [Marks 6]
12.(a)(i)Draw and explain the control word format of 8255A for ADC
operation. [Marks 8 ]
(ii)Give a brief note on the following [Marks 8 ]
(1) 8251 I/O device
(2) GPIB Bus
Or
(b) Draw and explain the logic diagram of 8279 [Marks 16]
13.(a)(i) Draw the pin diagram of 8086 CPU with its control signals. [Marks 8 ]
(ii) Explain how an interrupt is responded by 8086 CPU. [Marks 8 ]
Or
(b)(i) Write a program in 8086 to find an average between two temperatures. [Marks 8 ]
(ii) Describe data transfer instructions of 8086 CPU. [Marks 8 ]
2. Write 8085 assembly language instructions to store the contents of the Flag Register in
memory location 2000H.
4. Determine the contents of the accumulator after the execution of the following program
segments
MOV A,# 3CH
MOV R4,66H
ANL A,R4
6. Describe the difference between the instructions MOV AX, 2437H and MOV AX, [2437H]
9. Draw a circuit to interface a stepper motor winding to a microprocessor port bit using power
MOSFET
PART - B (5 x 16 = 80 Marks)
11.a) Draw the circuit diagram of an 8085 system having a 4 KB EPROM and 8 KB RAM ICs.
The starting address of the EPROM is 0000H and that of RAM is 8000H. The address decoder
circuits should be clearly shown.
(OR)
11.b) Write a subprogram using 8085 assembly language to multiply two 8 bit binary numbers
by repeated addition.
12.a)i) Determine the value of the accumulator after the execution of instructions A:,B:, C: and
D:
MOV R0 , #40H
A: MOV A , R0
B: MOV A, @R0
C: MOV A, 40H
D: MOV A, #40H
ii) With neat diagram explain the timer / counter functions in 8051 Micro Controller.
(OR)
12.b) Using ports P0 and P1 of 8051 micro controller design an 8 digit 7 segment multiplexed
display system. Use suitable driver circuit and give flowchart for the software involved.
13.a)i) With neat diagram explain how the memory is interfaced to 8086 as odd and even page.
(OR)
13.b) Describe in detail the memory management functions in Intel 80286/80386 Processor
(OR)
14.b) With a neat diagram describe how the DAC 1408 can be interfaced to the micro controller
8031.Using this hardware write 8031 assembly language to generate a Triangular wave.
15.a) Using DC servomotor and shaft angle encoder as sensor design a Microprocessor based
position control system.
(OR)
15.b) Describe how a closed loop microprocessor based process control system can be
implemented by using digital PID control algorithm.
Anna University
BE - ELECTRONICS AND COMMUNICATION
EC1303-Microprocessor and its Applications
PART A –(2*10=20marks)
PART-B(16x5=80)
11.(a) Draw and explain the pin details of 8085A briefly. [Marks 16]
Or
(b)(i) What are the flags affected by ALU in 8085? Explain briefly. [Marks 10]
12.(a)(i)Draw and explain the control word format of 8255A for ADC
operation. [Marks 8 ]
Or
(b) Draw and explain the logic diagram of 8279 [Marks 16]
13.(a)(i) Draw the pin diagram of 8086 CPU with its control signals. [Marks 8 ]
Or
temperatures. [Marks 8 ]
Or
8051. [Marks 8 ]
(ii) Draw and explain briefly the connection diagram of ADC with peripheral device with one
Or
(b)(i) What are the features of LCD? How it is interfaced with 8051? [Marks 2+6]
bandrate,continuously . [Marks 8 ]