4344101                                  Assignment                                  Unit-I, II, III
GOVERNMENT POLYTECHNIC GANDHINAGAR
                      INSTRUMENTATION AND CONTROL DEPARTMENT
                         EMBEDDED SYSTEM FOR ROBOTICS (43441701)
                                      ASSIGNMENT-I                       DATE: 04-01-25
Course outcomes covered:
CO1: Identify features of various microcontrollers.
CO2: Interpret the program for 8051 in assembly language for the given operations.
CO3: Interpret the program by using timer, interrupt and serial communication.
Q-1 Answer the following Question (CO1)
   1. Compare microprocessor and microcontroller with its Features.(U)
   2. Draw the architecture of microcontroller.(R)
   3. List out the different block of architecture of microcontroller.(U)
   4. Describe the function of each block of microcontroller.(R)
   5. Draw neat pinout diagram of 8051 microcontroller.(R)
   6. Describe the function of each pin of 8051 microcontroller.(U)
   7. Draw memory organization of 8051 with neat sketch.(R)
   8. List the family of microcontroller. (R)
   9. List application of microcontroller. (U)
Q-2 Answer the following Question (CO2)
   1.  Classify addressing modes of 8051 microcontroller with examples. (U)
   2.  Explain the use of given assembler directives with examples. (U)
   3.  List out 8051 Data transfer instruction.(R)
   4.  List out 8051 Arithmetic operation instruction. .(R)
   5.  List out 8051 logical operation instruction. .(R)
   6.  List out 8051 program branching instruction.(R)
   7.  List out instruction which affect Flag setting.(U)
   8. Draw bits arrangement in PSW register.(R)
   9. How 32 bytes are allocated in 4 register bank?(U)
   10. How Stack are accessed in8051?(U)
   11. Explain the Assembler directives used in 8051 with example.(U)
   12. Write an ALP to copy the data in register R5 to external RAM address
       032Fh.(A)
   13. Write an ALP to find the sum of data stored in RAM location 40hto
       44h.Use Register A to store low byte values and Register R7 used to
       store high byte values.(A)
   14. Write an ALP to find the number of zeros in 8 bit data items.(A)
   15. Write an ALP to PUSH the content of B register to TMOD.(A)
   16. Write an ALP to complement the lower nibble of RAM location 2Ah.(A)
   17. Write an ALP to XOR a number with whatever is in A so that the result is
       FFh.(A)
4344101                          Assignment                         Unit-I, II, III
   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)