0% found this document useful (0 votes)
0 views

Assignment Questions2

The document outlines various aspects of interfacing and programming with the 8051 microcontroller, including interrupt structures, programming for timers, and interfacing with peripherals like LCDs, DACs, and stepper motors. It details the steps for executing interrupts, the configuration of registers like IE and TCON, and provides example programs for generating waveforms and controlling motors based on switch inputs. Additionally, it discusses serial communication protocols such as RS232 and the handling of multiple interrupts.

Uploaded by

Shweta Kulkarni
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Assignment Questions2

The document outlines various aspects of interfacing and programming with the 8051 microcontroller, including interrupt structures, programming for timers, and interfacing with peripherals like LCDs, DACs, and stepper motors. It details the steps for executing interrupts, the configuration of registers like IE and TCON, and provides example programs for generating waveforms and controlling motors based on switch inputs. Additionally, it discusses serial communication protocols such as RS232 and the handling of multiple interrupts.

Uploaded by

Shweta Kulkarni
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1. Explain the structure of Interrupt priority and interrupt enable register.

2. List the steps involved in executing an interrupt with example.

Explain interrupt vector table of 8051 microcontroller and also explain


3.
the bit contents of IE register used for activating the interrupts.
Develop a C program using interrupts to generate a square wave on port
4. pin P1.2 of 1kHz using timer-0 in mode 2.

Analyse with neat diagram operation of LCD and write a program to


display "HELLO WORLD" by interfacing LCD display to 8051
5. microcontroller.

Illustrate with diagram connection of switch and stepper motor write a


6. program to rotate a stepper motor in clockwise and anticlockwise
direction using the status of the switch connected to the microcontroller.

Explain DAC interface with diagram and also write program to generate
7. staircase waveform.
Illustrate with neat diagram and write an assembly language program to
interface ADC0804 to 8051 microcontroller.

Analyze the structure of TCON register and write a C program to transfer


8. "YES" serially at 9600 baud rate, 8 bit data, 1 stop bit, do this
continuously.

Explain the steps involved in Programming Serial Communication


9.
Interrupts.
Analyse how external interrupts can be used as edge triggered and level
triggered interrupt in 8051 with necessary diagrams.

10.
Explain how multiple interrupts are handled in 8051 microcontroller.
11. Illustrate programming of timer interrupts with example.

A switch is connected to pin P2.7.Write an ALP to monitor the status of SW


and perform the following
a) If SW=0, motor moves clockwise
b) If SW=1, the motor moves anticlockwise
12.
With neat diagram write an assembly language program to interface
DAC to 8051 microcontroller.
13.
A switch is connected to pin P2.7. Write an C to monitor the status of the
SW. If SW = 0, DC motor moves 50% duty cycle pulse and if SW = 1,
DC motor moves with 25% duty cycle pulse.

14. Explain with neat diagram the interfacing of stepper motor using
8051microcontroller.

15. Explain the bit pattern of SCON register with diagram

16 . Explain RS232 in serial communication using 8051 microcontroller.

You might also like