www.Vidyarthiplus.com www.Vidyarthiplus.com Page - 17 -
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
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
Share with your friends: