Académique Documents
Professionnel Documents
Culture Documents
Q2 Complete the table by filling all the blank missing fields. Table Columns are Instruction Mnemonic,
Description of Instruction, No. of bytes required, No. of machine cycles required and Flag bits affected
(Carry, Overflow and Auxiliary carry with Y if bit affected and N otherwise)
(Refer: http://vlabs.iitb.ac.in/vlabs-dev/labs_local/8051-Microcontroller-Lab/src/pdfs-docs/8051IS.pdf)
Instruction Description Bytes Machine C OV AC
cycle
DA A
ANL C,/bit
MOVC A,@A+DPTR
INC direct
Add A,R0
SUBB A, #data
CJNE @Rp,#n, radd
MUL AB
MOV 09H,02H
SWAP A
Q3 Explain the operation of following instructions. (Refer: http://vlabs.iitb.ac.in/vlabs-dev/labs_local/8051-
Microcontroller-Lab/src/pdfs-docs/8051IS.pdf)
PUSH, RET, CALL, SJMP rel8
Q4 Draw register format and Explain the significance of various bits for the following registers
TCON: Timer control register TMOD: Timer mode control register
IE: Interrupt Enable register IP: Interrupt Priority Register.
Q5 Find the size of the delay in following program, if the crystal frequency is 11.0592MHz.
DELAY: MOV R2,#200
AGAIN: MOV R3,#250
HERE: NOP
NOP
DJNZ R3,HERE
DJNZ R2,AGAIN 2
RET
_________________________________________________________________________________________