Sunteți pe pagina 1din 2

1. Assuming crystal frequency to be 11.0592 MHz.

Configure the serial port in 8051 to generate


19,200 baud in mode 1 and write required program.
2. write a program in embedded ‘C’ to receive data serially using serial port of 8051 at 9600
baud rate in serial mode1. Show caluculation for count to be loaded in TH1 for this baud . 43. 3.
3. Write the format of IE register in 8051 and use of each bit in it.
4. Explain the different interrupts of 8051. Show how the priority can be altered by the
programmer.
5.Assuming that INT 1 pin is connected to a switch that is normally high, write a program to turn
the LED whenever it goes low. The LED is connected to P1.3 and is normally off. As long as the
switch is pressed low, the LED should be on.
6. Interface DAC to 8051 and write an embedded ‘C’ program to generate triangular waveform
7.Interface a 7-segment display to 8051. Write embedded ‘C’ code to realize a 0 -9 counter using
the 7-segment display.
8. write the steps of serial data transmission and reception in 8051 at 4800 baud rate.
9. Write 8051 ‘C’ program to receive bytes of data serially and put them in P1. Set the baud rate
as 4800, 8 bit data and one stop bit.
10. write the sequence that happen when 8051 is interrupted .upon reset write the rank of
interrupts and their vector addresses in 8051
11 Write a 8051 ‘C’ program that continuously gets a single bit of data from P1.7 and sends it to
P1.0, and simultaneouslycreates a square wave of 200 ms period on pin P2.5. XTAL frequency =
11.0592 MHz.
65. Interface LCD to 8051 and write a 8051 assembly / 8051 ‘C’ program to send BMS on LCD
display.
12. Show the interfacing of a stepper motor to 8051 and write 8051 assembly/ ‘C’ program to
rotate stepper motor clockwise and anticlockwise with appropriate delay using Switch connected
to INT0.
13.When power is turned on i)write the interrupt priority in 8051. ii)If it is required to prioritize
timer 1 interrupt and then serial communication interrupt, write the order of interrupts and
required lines of codes to configure IP register .iii)If edge triggering interrupt is to be processed
on INT1 , write the required lines of codes to configure required register.

14.Write a 8051 C/ALP program using interrupts to do following tasks simultaneously

i)Receive data “B” serially into register A


ii) creates a square wave with Ton 100µs on P0.1
ii)toggle P0.2 using switch connected to INT0 pin
Assume XTAL = 11.0592MHz
15. Write the procedure for achieving serial communication using UART of 8051 with
11.0592MHz crystal. Demonstrate the same to transmit “ELECTRONICS” to serial port. show
the computation of baud rate if TH1 is loaded with -6.

16. Differentiate i) interrupt call and subroutine call ii) RET and RETI
17. Interface DAC808 to 8051 and write an assembly language program to generate positive
going ramp waveform and SINE waveform

18.Differentiate interrupt and polling method and list the interrupt available in 8051.What
happen when INTO occurs while 8051 is servicing serial interrupt routine?

S-ar putea să vă placă și