Você está na página 1de 3

Microcontrollers 10ES42

SJBIT/ECE Page 1

ASSIGNMENT QUESTIONS
UNIT-1: MICROPROCESSORS AND MICROCONTROLLERS
1. Explain the differences between the following:
2. RISC & CISC processors (ii) Harvard and Von Neumann Architectures.
3. With the help of timing diagram, explain how to interface 8k EPROM and 4k RAM to 8051
microcontroller
4. Differentiate between microprocessor and microcontroller
5. List the salient features of 8051microcontroller
6. Explain the memory organization in 8051
7. Explain TMOD and TCON registers of 8051, with the help of timer/counter control logic.
8. With a neat block diagram, explain the architecture of 8051.
9. Explain the following pins and its functions of 8051 microcontroller.
(i) ALE (ii)

(iii)

(iv)


UNIT-2: ADDRESSING MODES
1. What is addressing mode? Explain different addressing modes with examples.
2. Specify the memory area for bit level logical instruction used in 8051 and list bit level logical instructions.
3. Write an assembly program to add two input data's of 16 bit result in 3 different addressing modes
4. Explain the following instructions with their function, bytes and cycle used:
(i) CJNE dest, source target (ii) ACALL target (iii) DJNZ R1, rel (iv) SWAP A
(v) DA A (vi) MOC c, b
5. Explain the different jump instruction in 8051.
6. Explain the following instructions of 8051with examples.
(i)SUBB A, direct (ii) PUSH direct (iii) MOVC A,@A+DPTR
7. Examine the following code and analyze the result with flag register content:
MOV A,#+96
MOV R1,#+70
ADD A,R1
8. Classify the CALL instructions in 8051, Explain.
9. What is the necessity of a flag register in a microcontroller?
(ii) Which flags of 8051 are affected the execution of instruction INC A?
(iii) For what condition the OV flag of 8051 is set after the addition instruction.
(iv) Can the result of logical AND instruction be stored in some destination other than reg A? If so,
indicate such instructions
(v) Give two examples of 9 bit rotate instructions.
10. Mention the advantages of using subroutines.
(ii) Give the range range of instructions SJMP, AJMP, LJMP.
(iii) Mention the differences between RET and RETI instructions
11. Write a program to put the number 34h in registers R4, R5, R6 and R7 using different addressing modes.


Microcontrollers 10ES42

SJBIT/ECE Page 2

UNIT 3:8051 PROGRAMMING
1. Write an ALP to add N 8 bit numbers available from memory location START. Display the result at port 0
and port 1
2. Write an assembly language program to convert 2 digit BCD to Binary
3. Write an assembly language program to realize an exclusive OR gate. Assume P1.0 and P1.1 as inputs and
P2.0 as output bit.
4. Define assembler directives and explain few.
5. Write an 8051 ALP to find the value N!/R! using subroutine that calculates the factorial of a number.
Assume the value of N and R are stored in locations 10h and 11h.

UNIT 4:8051 INTERFACING AND APPLICATIONS

1. Draw the block schematic of DAC 0808 interfaced to 8051 at port P1 and write an 8051 program to generate
sine wave
2. How to interface DC motor to 8051 using Opto isolator? Write a C program to move DC motor with 25%
duty cycle pulse
3. Show an interface of 8051 controller with a stepper motor drive circuit and explain its principles of operation

4. Explain the registers and pins of LCD and write an ALP to display message "HELLO" as LCD displays

5. Interface ADC 0804 to 8051 and write a program to read analog data and display the converted data at port 2.

6. Interface a 2x4 keys keyboard to 8051 and write an ALP to send the key code to port P1 whenever a key
pressed.
7. Interface a stepper motor to 8051 and rotate it by checking the status of a simple toggle switch connected to
pin P2.0 as follows: (i)If switch is open rotate motor in clockwise (ii) If switch is closed rotate motor in
counterclockwise

UNIT 5: 8051 INTERRUPTS AND TIMERS/COUNTERS

1. Explain the steps to program timers in mode1 and write an 8051 program to generate a square wave of
2. 50% duty cycle on pin p1.5.
3. Assume 1Hz frequency is connected to input pin p1.3. Write an 8051 program to display counter 1 on an
LCD. Set the initial value to get one min delay.
4. A switch is connected to the pin p1.2. Write an 8051C program to monitor the switch and create the
following frequencies on p1.7 ( i)500Hz (ii) 750 hz
5. Explain TMOD and TCON registers with its bit pattern
6. Explain mode-2 programming with neat sketch and specify the program steps.
7. Explain IE and IP register formats
8. Compare polling and interrupts. What are the steps microcontroller performs upon activation of interrupt
9. How are interrupts in 8051 classified? Explain each interrupt.
10. How to enable and disable the interrupts of 8051 and set priority for them? Explain.


Microcontrollers 10ES42

SJBIT/ECE Page 3

UNIT 6:8051 SERIAL COMMUNICATION

1. Explain the format of asynchronous serial communication.
2. Explain the function of RS232C pins of DB-9 connector
3. Write an ALP to send the message CORRECT or FALSE seriaaly depending on the status of the switch
connected to pin p2.2 if it is ON or OFF, respectively.
4. List the advantages of serial communication over parallel communication.
5. Write an 8051 program to send the text string good luck to serial #1 of the DC89c4x0, baud rate of 9600.

UNIT 7: MOTIVATION FOR MSP430MICROCONTROLLERS

1. With a neat block diagram explain the features of MSP430 microcontroller
2. Explain the clock system of MSP430
3. Give the details of memory map of MSP430
4. Explain the use of registers PxDIR and PxOUT
UNIT 8: ON-CHIP PERIPHERALS

1. Explain the working of watch dog timer in MSP430.
2. Explain the clock system of MSP430 and low power modes of operation.

Você também pode gostar