Professional Documents
Culture Documents
Addressing modes - Instruction set- Data transfer instructions- String instructionsLogical Instructions Arithmetic Instructions Transfer of control instructions
-Processor control Instructions -Assembly language programming AssemblerUNIT IV
Types of Main memory- SRAM -interfacing- DRAM -interfacing -I/O interfacingprogrammed I/O- Interrupt Driven I/O- DMA Interfacing Microcomputer to high
power devices - Optical Motor shaft Encoders
TEXT BOOKS:
1. Douglas V-Hall Microprocessor and interfacing 2/E TMH,2002.
2. Walter A-Tribel & Avtar Singh The 8088 and 8086 Microprocessors
programming -Interfacing -software -Hardware and Application
4/E Pearson/PHI 2003.
REFERENCES:
3. John Uffenbeck Microcomputer and Microprocessors The 8080-8085 and Z80 programming Interfacin g and Troubleshooting 3rd Edition- -Pearson
Education,2000
4. John Uffenbeck The 8086 family Design-programming and interfacing3/E- pearson Education
5. Ramesh Gaonkar-Microprocessor Architecture Programming and
Application with 8085-Penram Publications pvt Ltd-5 E/Pearson 2000 .
DEPARTMENT OF ECE
Microprocessor and application
UNIT - I
PART-A
1. What is Microprocessor?
It is a program controlled semiconductor device (IC}, which fetches, decodes and
executes instructions.
2. What are the basic units of a microprocessor?
The basic units or blocks of a microprocessor are ALU, an array of registers and control
unit.
3. What is Software and Hardware?
The Software is a set of instructions or commands needed for performing a
specific task by a programmable device or a computing machine.
The Hardware refers to the components or devices used to form computing machine
in which the
Software can be run and tested. Without software the Hardware is an idle machine.
4. Define bit, byte and word.
A digit of the binary number or code is called bit. Also, the bit is the fundamental
storage unit of computer memory. The 8-bit (8-digit) binary number or code is called
byte and 16-bit binary number or code is called word. (Some microprocessor manufactures
refer the basic data size operated by the processor as word).
5. What is a bus?
Bus is a group of conducting lines that carries data, address and control signals.
6. Why data bus is bi-directional?
The microprocessor has to fetch (read) the data from memory or input device for
processing and after processing, it has to store (write) the data to memory or output device.
Hence the data bus is bi-directional.
7. Why address bus is unidirectional?
The address is an identification number used by the microprocessor to identify or
access a memory location or I / O device. It is an output signal from the processor. Hence the
address bus is unidirectional.
8. What is the function of microprocessor in a system?
The microprocessor is the master in the system, which controls all the activity of the
system. It issues address and control signals and fetches the instruction and data from
memory. Then it executes the instruction to take appropriate action.
instruction acts.
16. What are the functions of an accumulator?
The accumulator is the register associated with the ALU operations and sometimes
I/O operations. It is an integral part of ALU. It holds one of data to be processed by ALU. It
also temporarily stores the result of the operation performed by the ALU.
17. List the 16 bit registers of 8085 microprocessor.
Stack pointer (SP) and Program counter (PC).
18. List the allowed register pairs of 8085.
B-C register pair
D-E register pair
H-L register pair
19. Mention the purpose of SID and SOD lines
SID (Serial input data line):
It is an input line through which the microprocessor accepts serial
data.
SOD (Serial output data line):
It is an output line through which the microprocessor sends output
serial data.
20. What is the function of IO/M signal in the 8085?
It is a status signal. It is used to differentiate between memory locations and I/O
operations. When this signal is low (IO/M = 0) it denotes the memory related operations. When
this signal is high (IO/M = 1) it denotes an I/O operation.
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.
23. Explain the purpose of the I/O instructions IN and OUT.
The IN instruction is used to move data from an I/O port into the
accumulator.
The OUT instruction is used to move data from the accumulator to an I/O port.
The IN & OUT instructions are used only on microprocessor, which use a
Separate address space for interfacing.
24. What is the difference between the shift 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.
25. What is meant by Wait State?
This state is used by slow peripheral devices. The peripheral devices can transfer the data
to or from the microprocessor by using READY input line. The microprocessor remains in wait
state as long as READY line is low. During the wait state, the contents of the address,
address/data and control buses are held constant.
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 )
27. What is meant by polling?
Polling or device polling is a process which identifies the device that has interrupted the
microprocessor.
28. What is meant by interrupt?
Interrupt is an external signal that causes a microprocessor to jump to a specific
subroutine.
29. Explain priority interrupts of 8085.
The 8085 microprocessor has five interrupt inputs. They are TRAP, RST 7.5, RST 6.5,
RST 5.5, and INTR. These interrupts have a fixed priority of interrupt service. If two or
more interrupts go high at the same time, the 8085 will service them on priority basis. The
TRAP has the highest priority followed bye RST 7.5, RST 6.5, RST 5.5. The priority of
interrupts in 8085 is shown in the table.
Interrupts
TRAP
RST 7.5
RST 6.5
RST 5.5
INTR
Priority
1
2
3
4
5
Arithmetic
ADD R
DCR M
Logical
XRI 8-bit
RAR
Branching
JNZ
CALL 16-bit
HLT
Machine control
NOP
38. Explain LDA, STA and DAA instructions
LDA copies the data byte into accumulator from the memory location specified by
the 16-bit address. STA copies the data byte from the accumulator in the memory location
specified by 16-bit address. DAA changes the contents of the accumulator from binary to 4bit BCD digits.
39. Explain the different instruction formats with examples
The instruction set is grouped into the following formats
One byte instruction MOV C,A
Two byte instruction MVI A,39H
Three byte instruction JMP 2345H
40. What is the use of addressing modes, mention the different types
The various formats of specifying the operands are called addressing modes, it is used
to access the operands or data. The different types are as follows
Immediate addressing
Register addressing
Direct addressing
Indirect addressing
Implicit addressing
41. What is the use of bi-directional buffers?
It is used to increase the driving capacity of the data bus. The data bus of a
microcomputer system is bi-directional, so it requires a buffer that allows the data to flow in
both directions.
42. Give the register organization of 8085
W(8) Temp. Reg
B(8) Register
C(8) Register
D(8) Register
E(8) Register
H(8) Register
L(8) Register
Stack Pointer(16)
Program Counter(16)
PUSH
The programmer uses the instruction
PUSH to save the contents of the register
pair on the stack
When PUSH is executed the stack
pointer register is decremented by two
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.
62. What happens to the 8085 processor when it is resetted?
When the 8085 processor is resetted it execute the first instruction at the 0000H
location. The 8085 resets (clears) instruction register, interrupt mask bits and other registers.
63. What are the operations performed by ALU of 8085?
The operations performed by ALU of 8085 are Addition, Subtraction, Logical AND,
OR, Exclusive OR, Compare Complement, Increment, Decrement and Left I Right shift
64. What is a flag?
Flag is a flip flop used to store the information about the status of the processor and the
status of the instruction executed most recently.
65. Where is the READY signal used?
READY is an input signal to the processor, used by the memory or I/O devices to get
extra time for data transfer or to introduce wait states in the bus cycles.
66. What is HOLD and HLDA and how it is used?
Hold and hold acknowledge signals are used for the Direct Memory Access (DMA)
type of data transfer. The DMA controller place a high on HOLD pin in order to take control
of the system bus. The HOLD request is acknowledged by the 8085 by driving all its tristated
pins to high impedance state and asserting HLDA signal high.
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.
68. What are the different types of Polling?
The polling can be classified into software and hardware polling. In software polling
the entire polling process is govern by a prograrn.1n hardware polling, the hardware takes care
of checking the status of interrupting devices and allowing one by one to the processor.
69. Define stack
Stack is a sequence of RAM memory locations defined by the programmer.
70. What is program counter? How is it useful in program execution?
The program counter keeps track of program execution. To execute a program the
starting address of the program is loaded in program counter. The PC sends out an address to
fetch a byte of instruction from memory and increments its content automatically.
Unit - II
Part A
1. What is the purpose of segment registers in 8086?
There are 4 segment registers present in 8086. They are
1. Code Segment (CS ) register
2. Data Segment (DS ) register
3. Stack Segment (SS ) register
4. Extra Segment (ES ) register
The code segment register gives the address of the current code segment. ie. It
will points out where the instructions, to be executed, are stored in the memory. The data
segment register points out where the operands are stored in the memory. The stack
segment registers points out the address of the current stack, which is used to store the
temporary results. If the amount of data used is more the Extra segment register points
out where the large amount of data is stored in the memory.
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,
th
th
when the n instruction is executed, the n+1 instruction is fetched and thus the processing
speed is increased.
3. Discuss the function of instruction queue in 8086?
In 8086, a 6-byte instruction queue is presented at the Bus Interface Unit
(BIU). It is used to prefetch and store at the maximum of 6 bytes of instruction code from
the memory. Due to this, overlapping instruction fetch with instruction execution increases
the processing speed.
4. What is the maximum memory size that can be addressed by 8086?
In 8086, an memory location is addressed by 20 bit address and the address bus is 20
bit address and the address bus is 20 bits. So it can address up to one mega byte (2^20) of
memory space.
5. What is the function of the signal in 8086?
BHE signal means Bus High Enable signal. The BHE signal is made low when
there is some read or write operation is carried out. ie . When ever the data bus of the
system is busy i.e. whenever there is some data transfer then the BHE signal is made low.
6.What are the predefined interrupts in 8086?
The various predefined interrupts are,
DIVISION BY ZERO (type 0) Interrupt.
SINGLE STEP
(type
1)
Interrupt.
NONMASKABLE (type2)
Interrupt.
BREAK POINT
(type 3) Interrupt. OVER
FLOW
(type 4) Interrupt.
7. List the various addressing modes present in 8086?
8086-2
8MHz
24MHZ
8086-4
4MHz
12MHZ
until some condition occurs. The REPEAT defines the start of the loop & UNTIL
the end of the loop. UNTIL has a condition when the condition is true the loop is
terminated
14. What are the modes in which 8086 can operate?
The 8086 can operate in two modes and they are minimum (or uniprocessor) mode and
maximum (or multiprocessor) mode.
15. What is the data and address size in 8086?
The 8086 can operate on either 8-bit or 16-bit data. The 8086 uses 20 bit address to
access memory and 16-bit address to access 1/0 devices.
16. Explain the function of M/IO in 8086.
The signal M/IO is used to differentiate memory address and 1/0 address When
the processor is accessing memory locations MI 10 is asserted high and when it is accessing 1/0
mapped devices it is asserted low.
17. Write the flags of 8086.
The 8086 has nine flags and they are
1. Carry Flag (CF) 6. Overflow Flag (OF)
2. Parity Flag (PF) 7. Trace Flag (TF)
3. Auxiliary carry Flag (AF) 8. Interrupt Flag (IF)
4. Zero Flag (ZF) 9. Direction Flag (DF)
5. Sign Flag (SF)
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
20. What are the functional units available in 8086 architecture?
The bus interface unit and execution unit are the two functional units available in 8086
architecture.
21. List the segment registers of 8086.
The segment registers of 8086 are Code segment, Data segment, Stack segment and
External signals
Type 3: Breakpoint
Type 0-255
25. What is interrupt service routine
Interrupt means to break the sequence of operation. While the CPU is executing a
program an interrupt breaks the normal sequence of execution of instructions & diverts its
execution to some other program. This program to which the control is transferred is called the
interrupt service routine.
26. When the 8086 processor is in minimum mode?
The processor 8086 is in minimum mode when its MN/MX pin is strapped to +5 V
27. When the 8086 processor is in maximum mode?
The processor 8086 is in maximum mode when its MN/MX pin is grounded.
28. List the functions of Bus Interface Unit in 8086.
Sends out addresses
Fetches instructions from memory
Reads data from ports and memory
Writes data to port and memory
29. Write any two advantages of segment registers in 8086
a. It allows the memory capacity to be 1MB even though the address
associated with individual instructions are 16 bits wide.
b. It allows the instruction,data, or stack portion of a program to be more than
64KB long by using more than one code, data, or stack segment
30. What is the use of Instruction pointer in 8086 ?
Instruction pointer holds the 16 bit address of the next code byte within the code
segment. The value contained in the IP is called effective address or offset. It contains the
distance from the base address to the next instruction byte to be fetched.
31. Write about the auxiliary carry flag used in 8086 ?
It is set if there is a carry out of bit 3 during an addition or a borrow by bit 3 during a
subtraction. This flag is used exclusively for BCD arithmetic.
32. When the Overflow flag is set ?
For addition of 16 bits, this flag is set when there is a carry into the MSB and no carry
out of the MSB.
Part B
1.
2.
3.
4.
5.
collects them under a single name so they can reside in a single segment, usually a data
segment. The format is Name GROUP Seg-name,..Seg-name
PTR is used to assign a specific type to a variable or a label. It is also used
to override the declared type of a variable.
15. Explain about MODEL
This directive provides short cuts in defining segments. It initializes memory
model before defining any segment. The memory model can be SMALL, MEDIUM,
COMPACT or LARGE.
Model
Code segments
Data segments
Small
One
One
Medium
Multiple
One
Compact
One
Multiple
Large
Multiple
Multiple
16. Explain PROC & ENDP
PROC directive defines the procedures in the program. The procedure name must
be unique. After PROC the term NEAR or FAR are used to specify the type of procedure.
Example FACT PROC FAR. ENDP is used along with PROC and defines the end of the
procedure.
17. Explain SEGMENT & ENDS
An assembly program in .EXE format consists of one or more segments. The starts of
these segments are defined by SEGMENT and the end of the segment is indicated by ENDS
directive. Format Name SEGMENT Name ENDS
18. Explain TITLE & TYPE
The TITLE directive helps to control the format of a listing of an assembled
program. It causes a title for the program to print on line 2 of each page of the
program listing.
Maximum 60 characters are allowed. Format TITLE text.
TYPE operator tells the assembler to determine the type of specified variable
in bytes. For bytes the assembler gives a value 1, for word 2 & double word 4.
19. Define SOP
The segment override prefix allows the programmer to deviate from the default
segment
Eg
: MOV CS : [BX] , AL
by adding the 8 bit contents of the AL register and the contents of BX register. BX
register contains the starting offset address of the Lookup table. After execution ,
corresponding data memory contents of the lookup table are loaded into the AL register.
39. What is DAS instruction ?
DAS : Decimal Adjust After Subtraction
This instruction converts the binary result of a SUB or SBB instruction in
AL to Packed BCD format. It operates only on AL Register.
40. What is Packed BCD Format?
Packed BCD Format: Packed BCD Numbers are stored in two digits to a byte, in
4 bit groups referred to as nibbles. ALU is capable of performing only binary addition and
subtraction, but by adjusting the sum or difference the correct result in packed BCD
format.
41.What is the value of AX after executing following instructions?
MOV AH,00
MOV AL,7
ADD AL,3
AAA
Ans : AX= 0100H
42. What is difference between DIV and IDIV instruction in 8086 ?
DIV : It operates only on unsigned number.
IDIV : It operates only on signed numbers.
43. Write about the following instruction : MOV CS:[BX], DL
MOV CS:[BX],DL - It copies a byte from DL Register. Effective Address for
the memory location is contained in the BX Register. Normally an effective address in
BX will be added to the data segment base in DS to produce the physical memory
address. In this instruction CS: indicates that we want the BIU to add the effective
address to the code segment base in CS to produce the physical address.
content of(BX+(CS) * 1610) = (DL)
44. What is Programmed I/O ?
Programmed I/O : It consists of continually examining the status of an Interface
and performing an I/O operation with the Interface when its status indicates that it has
data to be input or its data- out buffer register is ready to receive data from the CPU.
45. What is the use of Directives in 8086 ?
Directives in 8086 give directions to the assembler during the assembly process
but are not translated into machine instruction.
46. What is AAS instruction in 8086 ?
AAS: Adjust Result of ASCII Subtraction
This instruction adjusts the binary result of SUB or SBB instruction.
the processor can load another data to port and the above process is repeated.
11.What are the internal devices of 8255 ?
The internal devices of 8255 are port-A, port-B and port-C. The ports can be
programmed for either input or output function in different operating modes.
12. How DMA is initiated?
When the I/O device needs a DMA transfer, it will send a DMA request
signal to DMA controller. The DMA controller in turn sends a HOLD request to the
processor. When the processor receives a HOLD request, it will drive its tri-stated pins
to high impedance state at the end of current instruction execution and send an
acknowledge signal to DMA controller. Now the DMA controller will perform DMA
transfer.
13.What is Block and Demand transfer mode DMA?
In Block transfer mode, the DMA controller will transfer a block of data and
relieve the bus for processor. After sometime another block of data is transferred by
DMA and so on.In Demand transfer mode the DMA controller will complete the entire
data transfer at a stretch and then relieve the bus to processor.
14. What is USART?
The device which can be programmed to perform Synchronous or Asynchronous
serial communication is called USART (Universal Synchronous Asynchronous Receiver
Transmitter). The INTEL 8251A
is an example of USART.
15. What are the functions performed by INTEL 8251A?
The INTEL 825lA is used for converting parallel data to serial or vice versa. The
data transmission or reception can be either asynchronously or synchronously. The 8251A
can be used to interface MODEM and establish serial communication through MODEM
over telephone lines.
16. What is an Interrupt?
Interrupt is a signal send by an external device to the processor so as to request
the processor to perform a particular task or work.
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.
ii) Encode it
27.What is key bouncing?
Mechanical switches are used as keys in most of the keyboards. When a key is
pressed the contacts bounce back and forth and settle down only after a small time
delay (about 20 ms). Even through a key is actuated once, it will appear to have been
actuated several times. This problem is called key bouncing
28.What is meant by keyboard debouncing?
Key bouncing may cause multiple entries made for the same key. To overcome this
problem after a key press is sensed the device is made to wait for few milliseconds. Then
the key is checked again to ensure it is still pressed. If it is still pressed it is taken as
a valid key press. This process is called keyboard debouncing
29. List the major sections of the 8279 keyboard/display interface
i)Keyboard section
ii) Scan Section
iii)Display section
iv) CPU interface section
Part B
1. Draw and explain the internal block diagram for 8253.
2. Draw control bit format of 8255 for BSR mode. Illustrate an example, where it can be
used
3. Specify handshaking signals and their functions if port A of 8255 is set-up B
as output port in mode 1.
4. Explain mode 0 and mode 1 of 8253
5. Write a short note on 8251.
6. Write a short note on 8253.
7. Write a short note on 8257.
8. Write a short note on 8259.
9. Write a short note on 8279.
10. Write a short note on bus contention
11. Specify handshaking signals and their functions if port A of 8255 is set-up as out-put
port in mode 1.
12. Specify handshaking signals and their functions if port A of 8255 is set-up as input port
in mode 1.
13. Explain mode 0 and mode 1 of 8253
14. 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.
15. With neat sketch explain the functions of 8255 PPI.
16. With neat sketch explain the function of DMA contoller.
17. With neat sketch explain the function of Programmable Interrupt Controller.
18. With neat sketch explain the function of Keyboard and display controller.
19. With neat sketch explain the function of A/D converter.
memories
to
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.
9.What is the drawback in memory mapped I/0?
When I/O devices are memory mapped, some of the addresses are allotted to I/O
devices and so the full address space cannot be used for addressing memory (i.e., physical
memory address space will be reduced). Hence memory mapping is useful only for small
systems, where the memory requirement is less.
Part B
1. Explain the i/o mapped i/o addressing scheme.
2. Explain the memory mapped i/o addressing scheme.
3. Draw a diagram to interface a 4K ROM and a 2K RAM consecutively with
microprocessor 8085, starting with ROM interfacing at address 0000 H. Explain.
4. Draw a diagram to interface a 6K ROM and a 2K RAM consecutively with
microprocessor 8085, starting with ROM interfacing at address 8000 H.
5. Interface a 2K ROM with microprocessor 8085, starting with ROM interfacing at
address 0000 H.
6. Interface a 8K RAM consecutively with microprocessor 8085, starting with ROM
interfacing at address 8000 H.
7. Draw a diagram to interface a 2 chips of 8K ROM and 2 chips of 8K RAM
consecutively with microprocessor 8085.
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
14.a) With block diagram describe the working of a DMA controller.
(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
(Common to B.E (Part-time) Fourth Semester Regulation 2005)
Time:Three hours Maximum:100 marks
Answer ALL questions
PART A (2*10=20marks)
1. What are the classifications of instruction set according to word size?
2. Name the modes available in 8255 A control word format.
3. What are the methods used for communication in 8055?
4. List the control words of RS-232 C.
5. What are the segment registers of 8086?
6. Name any four flags of 8086.
7. What are the addressing modes of 8051?
8. List the interrupts in 8051.
9. What are the functions of assembler and linker in 8051?
10. What are the commonly used ADCs and DAC.
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 ]
14.(a)(i) Explain the features of 8051 microcontroller [Marks 6]
(ii) Draw and explain the connection diagrams of 8051 with external ROM. [Marks 10]
Or
(b)(i) Explain the basic structure of assembly language program of 8051. [Marks 8 ]
(ii) Explain the memory organization of 8051. [Marks 8 ]
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
14.a) With block diagram describe the working of a DMA controller.
(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
(Common to B.E (Part-time) Fourth Semester Regulation 2005)
Time:Three hours Maximum:100 marks
Answer ALL questions
PART A (2*10=20marks)
1. What are the classifications of instruction set according to word size?
2. Name the modes available in 8255 A control word format.
3. What are the methods used for communication in 8055?
4. List the control words of RS-232 C.
5. What are the segment registers of 8086?
6. Name any four flags of 8086.
7. What are the addressing modes of 8051?
8. List the interrupts in 8051.
9. What are the functions of assembler and linker in 8051?
10. What are the commonly used ADCs and DAC.
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 ]