ESR Assignment -1
ESR Assignment -1
18. Write an ALP content of R1 from R0 and put the result in R7.(A)
19. Write and ALP to multiply two number Stored in external memory
location 4000h and 4001h.(A)
20.Write an ALP to add two BCD data bytes stored in register R2 and R3
of bank1 and store the result in register R4 of bank 1.(A)
21. Write an assembly language program to put a Random number in Register
R5 & increment Register R5 until it equals F5H.(A)
22. Write a program for the 8051 microcontroller to add two 8-bit numbers
stored in memory. Make use of the PSW register and specify how the OV
(Overflow) and CY (Carry) flags are affected during the addition
process.(A)
23. Explain following instructions with example .(U)
o ADDC
o SUBB
o MUL
o RLC
o DA
o JC
o JNC
o SWAP
o ORL
o RR
o JNZ
o LJMP
Q-3 Answer the following Question (CO3)
1. Draw bit arrangement and brief description of each bit of TMOD
register.(R)
2. State importance of TCON register.(U)
3. State the importance of PCON register and show its bit
arrangement(U)
4. Describe Timer mode in detail.(U)
5. Write an assembly language program to toggle Port pin P1.0 at every
5 milliseconds.(A)
6. Draw SCON register with bit arrangement.(R)
7. State method to doubling baud rate in 8051.(U)
8. Explain with the sketch operation of a given mode of serial
communication.(U)
9. Explain interrupts of 8051. (U)
10. Draw bit arrangement of IE and IP registers.(R)
11. Develop an assembly language program for the 8051 microcontroller
that generates a square wave with a frequency of 1 kHz. (A)
12. Given a crystal oscillator with a frequency of 12 MHz, create an
assembly language program for the 8051 microcontroller that
generates a delay of 500 milliseconds.(A)