Tuesday, 3 April 2018

Microprocessor and Interfacing- Important Questions



Unit:1
1.                   Draw and explain in detail the Block diagram of 8085 Microprocessor unit (MPU) architecture? 
2.                   Draw and explain in detail the Pin diagram of 8085 Microprocessor unit (MPU)?

3.                   Draw the Timing diagram and explain IN and OUT Instructions      
Unit:2
1.       Define Steppermotor .Explain the interfacing of a stepper motor to 8085 microprocessor with    necessary circuit diagram. Write an ALP to rotate the stepper motor clockwise direction          
2.       What is stack and stack pointer? List stack related instructions? Explain working of PUSH and POP instruction      
3.       With the help of block diagram explain the internal architecture of IC 8257 DMA controller.                                   
4.       Explain the block diagram of 8259 Programmable interrupt controller. What are its features? Explain the interrupt operation of 8259 in the simplest format.
Unit:3
1.                   Explain the block diagram of 8251A programmable communication interface. What are its features? Explain the various modes 8251 in the simplest format
2.                   With the help of block diagram explain the internal architecture of IC 8255 and describe its working in IO mode.
3.                   Write short note on any one of the following.
(a)    Different working modes of IC 8254
4.                   With the help of block diagram explain the internal architecture of IC 8279 Keyboard / Display interface
Unit:4
1.                   Draw and explain Pin diagram of 8086? Also explain the concept of Memory segmentation in microprocessor with diagram
2.                   Draw and explain the architecture of 8086A
3.                   Define Interrupts and list types of interrupts in 8086
Unit:5
1.       What do you understand by the term Addressing mode ? Explain the Addressing modes supported by 8086 by giving suitable examples.      
2.       Explain the following directives and operators with suitable examples:
i)SEGMENT  ii)ASSUME   iii)DUP    iv)SIZE                 

Microprocessor and Interfacing Assignment:2

Microprocessor and Interfacing Assignment:2

1.       Define Microprocessor. List the features of  8085 Microprocessor
2.       Difference between 8085 and 8086 Microprocessor        
3.       What is interrupt? List hardware interrupts available on 8085     
4.       Write a ALP to perform addition OF TWO 8 bit data 8B H and 6F H                                             
5.       Draw and discuss flag registers of 8085 in brief                                                                                  
6.       List the Rotate instructions of 8085?                                                                                                       
7.       What do you understand by opcode?                                                                                                    
8.       What are Assembler directives?                               
9.       Explain the CMP instruction with the help of an example.                                               
10.   Draw the programming model of  8086 
11.   Explain the physical address formation in 8086                  
12.   Differentiate between Macros and procedures                                                                                  
13.   Difference between Memory Mapped I/O and Peripheral I/O?                                                                    
14.   What do you understand by Program Counter?                                   
15.   Explain the significance of the following:                                                                                                  
i)                    EQU ii) ALIGN     
16.   Explain the operations of Macros                                                                                                                
17.   Determine the physical address resulting from the following instructions:                                               
i)MOV DL,[BP+SI]
Where BP=7000h,SI=0350h,SS=8000h,BX=4FFFh, DS=2000h, DI=6A00h.                                                                 
18.   What is stack and stack pointer?                                                                                                                              
19.   Generate the control word to Set PORT-C7 bits of 8255                                                                 
20.   List the advantages of memory segmentation of 8086                                                                   
21.   Determine the physical address resulting from the following instructions:                                     
i)MOV DL,[BP+SI]
ii) MOV DI,[BX+100h]
iii) SUB BX,AX
iv) MOV[BP+DI+5],AH
v) MOV AL,[5036h]

Where BP=7000h, SI=0350h, SS=8000h, BX=4FFFh, DS=2000h, DI=6A00h.       

22. Write the control word of all the Programmable peripheral Interfacing Chips.

Friday, 16 February 2018

Microprocessor-8085-LARGEST/SMALLEST ELEMENT IN AN ARRAY

Microprocessor-8085-LARGEST/SMALLEST ELEMENT IN AN ARRAY

LARGEST ELEMENT IN AN ARRAY


AIM:

                To find the largest element in an array.
ALGORITHM:

  1. Place all the elements of an array in the consecutive memory locations.
  2. Fetch the first element from the memory location and load it in the accumulator.
  3. Initialize a counter (register) with the total number of elements in an array.
  4. Decrement the counter by 1.
  5. Increment the memory pointer to point to the next element.
  6. Compare the accumulator content with the memory content  (next  element).
  7. If the accumulator content is smaller, then move the memory content  (largest element) to the accumulator. Else continue.
  8. Decrement the counter by 1.
  9. Repeat steps 5 to 8, until the counter reaches zero.
  10. Store the result (accumulator content) in the specified memory location.

RESULT:

                Thus the largest number in the given array is found out.








PROGRAM:

ADDRESS
OPCO
DE
LABEL
MNEMONICS
OPERAND
COMMENTS
8001


LXI
H,8100
Initialize HL reg. to 8100H
8002




8003




8004


MVI
B,04
Initialize B reg with no. of comparisons (n-1)
8005




8006


MOV
A,M
Transfer first data to acc.
8007

LOOP1
INX
H
Increment HL reg.  to point next memory location
8008


CMP
M
Compare M & A
8009


JNC
LOOP
If A is greater than M then go to loop
800A




800B




800C


MOV
A,M
Transfer data from M to A reg
800D

LOOP
DCR
B
Decrement B reg
800E


JNZ
LOOP1
If B is not Zero go to loop1
800F




8010




8011


STA
8105
Store the result in a memory location.
8012




8013




8014


RST 5

Stop the program

OBSERVATION:

INPUT
OUTPUT
ADDRESS
DATA
ADDRESS
DATA
8100

8105

8101




8102




8103




8104





 SMALLEST ELEMENT IN AN ARRAY

AIM:

To find the smallest element in an array.

ALGORITHM:

  1. Place all the elements of an array in the consecutive memory locations.
  2. Fetch the first element from the memory location and load it in the accumulator.
  3. Initialize a counter (register) with the total number of elements in an array.
  4. Decrement the counter by 1.
  5. Increment the memory pointer to point to the next element.
  6. Compare the accumulator content with the memory content  (next  element).
  7. If the accumulator content is smaller, then move the memory content  (largest element) to the accumulator. Else continue.
  8. Decrement the counter by 1.
  9. Repeat steps 5 to 8  until the counter reaches zero
  10. Store the result (accumulator content) in the specified memory location.

RESULT:

          Thus the smallest number in the given array is found out.



PROGRAM:

ADDRESS
OPCODE
LABEL
MNEMONICS
OPERAND
COMMENTS
8001


LXI
H,8100
Initialize HL reg. to 8100H
8002




8003




8004


MVI
B,04
Initialize B reg with no. of comparisons (n-1)
8005




8006


MOV
A,M
Transfer first data to acc.
8007

LOOP1
INX
H
Increment HL reg.  to point next memory location
8008


CMP
M
Compare M & A
8009


JC
LOOP
If A is lesser than M then go to loop
800A




800B




800C


MOV
A,M
Transfer data from M to A reg
800D

LOOP
DCR
B
Decrement B reg
800E


JNZ
LOOP1
If B is not Zero go to loop1
800F




8010




8011


STA
8105
Store the result in a memory location.
8012




8013




8014


RST 5

Stop the program







OBSERVATION:

INPUT
OUTPUT
ADDRESS
DATA
ADDRESS
DATA
8100

8105

8101




8102




8103




8104