Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Microcontroller 8051

Total questions: 52

Worksheet time: 43mins

Name
Class
Date
1.

Full form of DJNZ ?

a)

Decrease Just Number Zero

b)

Decrement Jump Not equal to Zero

c)

Data Jump New address if Zero

d)

Delete and Jump to Number Zero

2.

full form of DJNZ ?

a)

Decrease Just Number Zero

b)

Decrement Jump Not equal to Zero

c)

Data Jump New address if Zero

d)

Delete and Jump to Number Zero

3.

After execution of following instructions what will be content of Accumulator ? And also tell which flag will set?

MOV A,#08H

MOV B,#09H

ADD A,B

a)

12H, CY

b)

11H, CY

c)

11H , AC

d)

12H, AC

4.

How to select register register bank 2 ?

a)

SETB RS1 , SETB RS0

b)

CLR RS1 , SETB RS0

c)

SETB RS1 , CLR RS0

d)

CLR RS1 , CLR RS0

5.

Number of binary 1's in accumulator is odd then parity bit of PSW will be __________

a)

SET

b)

RESET

c)

-

d)

NONE OF THIS

6.

Which register bank will select after

CLR PSW.4

SETB PSW.3

a)

3

b)

2

c)

1

d)

0

7.

Special function Register (SFR) address of B register is ______________________

a)

A0 H

b)

B0 H

c)

E0 H

d)

F0 H

8.

Find content of Accumulator ?

MOV A , #4EH

CPL A

A = ?

a)

22H

b)

B1H

c)

21H

d)

24H

9.

Find CY = ?

MOV A , # 09H

RRC A

a)

0

b)

1

c)

NONE OF THIS

10.

how many I/O port lines are there?

a)

4

b)

8

c)

16

d)

32

11.

which port(s) is/are used as address lines when accessing external memory

a)

Port 0

b)

Port 2

c)

Port 0 & port 2

d)

Port 1 & Port 3

12.

MOV A , # 59H

INC A


A = ?

a)

5AH

b)

60H

c)

6FH

d)

0FH

13.

The timers of the 8051 are

a)

4 bit

b)

8 bit

c)

16 bit

d)

32 bit

14.

The TMOD register is a(n)

a)

4 Bit register

b)

8 bit register

c)

16 bit register

15.

The registers of Timer 1 are accessed as

a)

TL0 & TL1

b)

TH0 & TH1

c)

TL0 & TH0

d)

TL1 & TH1

16.

Which of the following are 8 bit registers?

a)

PSW

b)

DPTR

c)

ACCUMULATOR (A reg)

d)

Program Counter

17.

How many interrupt sources available in 8051?

a)

4

b)

5

c)

10

d)

15

18.

pin number of RESET pin

a)

40

b)

9

c)

20

d)

21

19.

Bit addressable location available in RAM

a)

8 bytes

b)

16 bytes

c)

32 bytes

d)

128 bytes

20.

Initial Address of stack memory

a)

05H

b)

06H

c)

07H

d)

08H

21.

MOV A,#32H is an example of __________ addressing mode

a)

Indirect

b)

Direct

c)

Register

d)

Immediate

22.

after MUL AB , lower byte and higher byte result stored in following respectively

a)

B reg, Acc

b)

Acc, B reg

c)

B reg

d)

Acc

23.

timer pins T0 & T1 are connected to which pin respectively?

a)

10 (P3.0) & 11 (P3.1)

b)

12 (P3.2) & 13 (P3.3)

c)

14 (P3.4) & 15 (P3.5)

d)

16 (P3.6) & 17 (P3.7)

24.

Choose the devices that are using a microcontroller

a)

fridge

b)

microwave

c)

washing machine

d)

sand clock

25.

CJNE stands for

a)

Comment & Jump if Number Enable

b)

Compare & Jump if Not Equal

c)

Carry bit Just if Number Equal

26.

What is the maximum value of the 8-bit register?

a)

255

b)

256

c)

128

d)

512

27.

Which instruction is used to clear the accumulator?

a)

CLR A

b)

CLR B

c)

MOV A, #00H

d)

SUB A, A

28.

MOV A, #56H

MOV R1, #50H

MOV 50H, # 45H

XCHD A, @R1

What is the result at A, R1?

a)

56H, 45H

b)

45H, 50H

c)

50H, 56H

d)

45H, 56H

29.

Which of the following instruction is used to set bit port directly?

a)

SET P1.0

b)

MOV P1.0, bit

c)

SETB P1.0

d)

JB P1.0, bit

30.

SP of 8051 is of ___ wide and it is loaded with the default value of ___ after reset.

a)

2 byte, 08H

b)

8 bit, 07H

c)

1 byte, 09H

d)

8 bit, 06H

31.

Find the number of times the following loop will be executed

MOV R6,#200

BACK:MOV R5,#100

HERE:DJNZ R5, HERE

DJNZ R6,BACK

END

a)

100

b)

200

c)

20000

d)

2000

32.

Do the two instructions mean the same?

1) BACK: DEC R0

JZ BACK

2) BACK: DJNZ RO, BACK

a)

yes

b)

no

c)

cant be determined

d)

yes and the second one is preferred

33.

9. Which of the following comes under the indexed addressing mode?

a)

MOVX A, @DPTR

b)

MOVC @A+DPTR,A

c)

MOV A,R0

d)

MOV @R0,A

34.

What does the symbol '#' represent in the instruction MOV A, #55H ?

a)

a. Direct datatype

b)

b. Indirect datatype

c)

c. Immediate datatype

d)

d. Indexed datatype

35.

2 times memory access required____addressing.

a)

direct

b)

register

c)

indirect

d)

all

36.

ADD C is

a)

zero address instruction

b)

one address instruction

c)

three address instruction

d)

none

37.

MOV R1, R2

a)

Zero Address Instruction

b)

Two address instruction

c)

One address instruction

d)

NONE

38.

STOP is an example of

a)

Zero Address instruction

b)

One address Instruction

c)

two address instructiom

d)

three address instruction

39.

Which addressing mode execute its instructions within CPU without the necessity of reference memory for operands?

a)

Direct Mode

b)

Register Mode

c)

Indirect Mode

d)

ALL

40.

After RETI instruction is executed then the pointer will move to which location in the program?

a)

next interrupt of the interrupt vector table

b)

immediate next instruction where interrupt is occurred

c)

next instruction after the RETI in the memory

d)

none of the mentioned

41.

What is the value of R1 after this code?
MOV R0, #5
MOV R1, #0
BACK:
INC R1
DEC R0
JZ BACK

a)

00H

b)

01H

c)

can't be determined

d)

05H

42.

Which is not an SFR in 8051?

a)

GCON

b)

TCON

c)

PCON

d)

TMOD

43.

MOVA, #0AFH ; i s___ type of Addressing Mode

a)

Immediate

b)

Register

c)

Direct

d)

Register Indirect

44.

Which of the following comes under the indexed addressing mode?

a)

MOVX A, @DPTR

b)

MOVC @A+DPTR,A

c)

MOV A,R0

d)

MOV @R0,A

45.

Consider the following program. Assume that internal memory 30h contains 5h.


org 0h

mov r2,#30h

mov a,@r2

add a,r2

end


Choose the right answer

a)

Syntax Error

b)

Accumulator will contain 35h

c)

Not able to access internal memory

d)

None

46.

What is your name?

4 lines
47.

Write your complete roll number

4 lines
48.

Full form of ALE

a)

Add Lock Enable

b)

Address Latch Enable

c)

Adder Lock Enable

d)

None of the above

49.

How are timers used in the 8051 microcontroller for generating delays?

a)

Timers in the 8051 microcontroller are used to generate delays by setting the timer registers with a specific value, starting the timer, and waiting for it to overflow. The timer overflow flag is then checked to determine when the delay has been reached.

b)

Timers in the 8051 microcontroller are used to generate delays by disabling the timer interrupts

c)

Timers in the 8051 microcontroller are used to generate delays by counting the number of instructions executed

d)

Timers in the 8051 microcontroller are used to generate delays by randomly selecting a delay value

50.

How is a no-operation (NOP) instruction executed in the 8051?

a)

It performs an AND operation

b)

It performs an OR operation

c)

It does nothing and increments the PC by 1

d)

It clears the accumulator

51.

Which register holds the lower byte of the program counter in the 8051?

a)

PCL

b)

PCH

c)

PCON

d)

ACC

52.

Which instruction in the 8051 microcontroller is used to read from external RAM addressed by the data pointer (DPTR)?

a)

MOV A, @DPTR

b)

MOVX A, @DPTR

c)

MOVX @DPTR, A

d)

MOV A, DPTR