B. E./B. Tech. Degree examination, april/may 2011 Sixth Semester


UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS



Download 1.56 Mb.
View original pdf
Page40/86
Date16.12.2020
Size1.56 Mb.
#54858
1   ...   36   37   38   39   40   41   42   43   ...   86
EE2354 auque
UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS

TWO MARKS

1. Write a program using 8051 assembly language to change the data h stored in the
lower byte of the data pointer register to AAH using rotate instruction
MOV DPL,#55H
MOV A,DPL

DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING
3
rd
YEAR 6
th
SEMESTER
RL A LABEL : SJMP Label
2. Explain the contents of the accumulator after the execution of the following program
segments?
MOV A,#3CH
MOV RH
ANL ARA CR Ab. Write a program to load accumulator a,DPH and DPL with H

MOV A
MOV DPH,A
MOV DPL,A

4. Write a program to perform multiplication of 2 nos using 8051?
MOV A,#data 1
MOV B,#data 2
MUL AB
MOV DPTR,#5000
MOV @DPTR,A(lower value) INC DPTR
MOV AB
MOVX@DPTR,A

Download 1.56 Mb.

Share with your friends:
1   ...   36   37   38   39   40   41   42   43   ...   86




The database is protected by copyright ©ininet.org 2024
send message

    Main page