Thursday, 31 March 2016

Microprocessor Lab Internal Viva Questions.-2016


1.     Define Microprocessor

2.     Explain the 2-key and N-Key rollover feature of keyboard design

3.     Draw the control word of 8255:BSR AND I/O Mode

4.     What is stack.What is the use of stack in subroutine.

5.     Define Microcontrollers

6.     Define Machine cycle,Instruction cycle and T-state

7.     Define Memory mapped I/O and peripheral mapped I/O

8.     Define DMA.

9.     Difference between Microprocessor and Microcontrollers

10.  Define Addressing Mode. Write the Addressing Modes of 8085/8051

11.  write the format of status register and mode set register in 8257

12.  .List the various registers in 8085/8051?

13.  .what are SIM and RIM instructions in 8085MP

14.  .What is keybounce?Explain different key bouncing techniques

15.  .Define PIC.How an interrupt can be handled using PIC

16.  Define Flag.Draw flag register of 8085/8051

17.  Show the formats of modeword, command word and status word of 8251

18.  List out the mode in keyboard and display controller 8279 interface

     19.  List and explain various modes of 8254 interval timer

     20 Define Interrupts.How interrupts are handled in 8085/8051

      21 Classify the interrupts of 8085/8051

     22.Define Addressing Mode. Write the Addressing Modes of 8085/8086/8051

23    what are SIM and RIM instructions in 8085MP

Tuesday, 1 March 2016

Cycle:3 Microcontroller Programs

1.   Addition of 8 bit numbers using 8051
Program:
ORG 0X00
MOV A,#03H
MOV R0,#02H
ADD A,R0
END
                                       2.SUBTRACTION:
ORG 0X00
MOV A,#05H
MOV B,#03H
SUBB  A,R0
END
                                            3.MULTIPLICATION

ORG 0X00
MOV A,#04H
MOV B,#02H
MUL AB
END

                                            4.DIVISION:
org 0x00
mov A,#12
mov B,#03
div AB
end

                                       5.FACTORIAL
ORG 0X00
MOV A,#01H
MOV R1,#05H
L1:MOV B,R1
MUL AB
DJNZ R1,L1
END

                                 6.PACKED AND UNPACKED
ORG 0X00
MOV A, 50H
ANL A, #0FH
MOV 52H,A
MOV A, 50H
RL A
RL A
RL A
RL A
ANL A,#0FH
MOV 53H,A
END

                                       7.PERFORM RL/RR/RLC/RRC
i)RR:
ORG 0X00
MOV A,#02H
RR A
END
Input :
OUTPUT:

ii)RL:
ORG 0X00
MOV A,03H
RL A
END
Input :
OUTPUT:

iii)RLC:
ORG 0X00
MOV A,#04H
RLC  A
END
Input :
OUTPUT:

iv)RRC:
org 0x00
mov a,#04h
rrc a
end
Input :
OUTPUT:





INTERFACING ADC USING 8085.

INTERFACING ADC USING 8085.


PROGRAM:

ADDRESS
OPCODE
LABEL
MNEMONICS
OPERAND
COMMENT
8800





8801





8802





8803





8804





8805


MVI A,
92H
PORT A,B-I/P
PORT C-O/P
8806





8807


OUT
43H

8808





8809


MVI A,
03H

880A





880B


OUT
42H
PORT ADD OF C
880C





880D


JMP
SETTLEMENT( TIME

880E





880F





8810

BACK
MVI A,
02

8811





8812


OUT
43H
TO CONTROL REGISTER
8813





8814


INR
A

8815


OUT
43H

8816





8817


MVI A,
00

8818





8819


OUT
43H

881A





881B


NOP


881C


NOP


881D


NOP


881E


INR
A

881F


OUT
43H

8820





8821


IN
40

8822





8823


STA
9001

8834





8825





8826


IN
41H

8827





  
ADDRESS
OPCODE
LABEL
MNEMONICS
OPERAND
COMMENT
8828


STA
9002

8829





882A





882B


RST
5









SETTLEMENT
TIME


88B7


MVI  C,
20H

88B8





88B9

L1
DCR
C

88BA


JNZ
L1

88BB





88BC





88BD


NOP


88BE


JMP
BACK

88BF





88C0






OBSERVATION: