The 8051 Microcontroller Questions and Answers
Practice ModeShowing 10 of 59 questions
Q21
The 8-bit address bus allows access to an address range of:
Answer: Option C
Q22
The contents of the accumulator after this operation
MOV A,#0BH
ANL A,#2CH
will be
Answer: Option C
Q23
This program code will be executed once:
STAT: MOV A, #01H
JNZ STAT
Answer: Option B
Q24
Which of the following instructions will move the contents of register 3 to the accumulator?
Answer: Option C
Q25
Which of the following statements will add the accumulator and register 3?
Answer: Option D
Q26
Data transfer from I/O to external data memory can only be done with the MOV command.
Answer: Option B
Q27
Which of the following commands will move the number 27H into the accumulator?
Answer: Option B
Q28
This program code will read data from port 0 and write it to port 2, and it will stop looping when bit 3 of port 2 is set:
STAT: MOV A, PO
MOV P2,A
JNB P2.3, STAT
Answer: Option A
Q29
Which of the following commands will move the value at port 3 to register 2?
Answer: Option D
Q30
The number of data registers is:
Answer: Option C