8051 Microcontroller Questions
8051 Microcontroller Questions
Prelab questions
Cycle-2
1. List Out Addressing Modes In Mcs-51?
o Direct Addressing
o Register Addressing
o Register Indirect Addressing
o Implicit Addressing
o Immediate Addressing
o Index Addressing
Cycle-3
Timer counts internal clock cycles while counter counts external events
Prelab questions
Cycle-1
Cycle-2
Cycle-3
Cycle-4
1.List the modes of timer in 8051.
2.What is Serial communication?
3.What is significance of RI & TI flag?
4.Explain SCON register?
ACS COLLEGE OF ENGINEERING
Prelab questions
Cycle-1
Postlab questions
Write an ALP to add five 8 -bit numbers.
Cycle-2
a. MOV A,40H
b. MOV A,#40H
a. A = B= R0 = R2 =
b. PSW = SP = DPL = DPH =
Postlab questions
Write an ALP to find smallest number in an array.
Cycle-3
Postlab questions
1.Find the value in A, the accumulator, after the following code.
MOV A, #45H
RR A
RR A
RR A
A = in hex
Cycle-4
1.List the modes of timer in 8051.
2.What is Serial communication?
3.What is significance of RI & TI flag?
4.Explain SCON register?
5. Explain the role of the C/T bit in the TMOD register.
Postlab questions
Write an ALP to transfer characters serially “YES”
ACS COLLEGE OF ENGINEERING
Prelab questions
Cycle-1
Postlab questions
Write an ALP to multiply 8-bit number with 16-bit number.
Cycle-2
Postlab questions
Find the value in A after the following code.
CLR A
CPL A
XRL A,#0FFH
A = in hex
Cycle-3
Postlab questions
Write an ALP to generate a square with an ON time of 3ms and an OFF time of
10ms on all pins of Port0.Assume an XTAL=22MHZ
Cycle-4
1.List the modes of timer in 8051.
2.What is Serial communication?
3.What is significance of RI & TI flag?
4.Explain SCON register?
5.Explain SMOD register?
6. Upon popping data from the stack, the SP register is ---------(incremented/decremented)
Postlab questions
Write a program to generate sawtooth waveform.