8051 Programs
8051 Programs
Sr. No 1 Software Program Write an 8051 assembly language program to send a block of 8 bytes from the external memory (XDATA) out through the serial port UART. Hardware interfacing
6 7
10
A simple burglar alarm system has 4 zone inputs connected to an 8051 I/O port. If anyone of these inputs is activated a bell will sound for 5 minutes and the corresponding zone LED, or LEDS, will be activated. Write an ALP to move block of data bytes Interface seven segment displays with Port P2. Write present in internal memory with program to display number 0 to 9 on the seven segment Starting address 10h and ending address display at the interval of 1 second 20h to the destination memory with starting address 25h. Write an ALP to demonstrate call and Write a program to generate square wave of 50% duty return instruction using a program to cycle having frequency 5 KHz at port pin P1.0 using find factorial of a number. timer 1 in mode 2. Modify program to generate pulse waveform of 70%duty cycle using timer on the same pin. Write an ALP to convert hexadecimal Generate external interrupt INT0 and INT1 by number to its equivalent decimal connecting push button switch. Glow LEDs connected number. at port 1 one by one when interrupt INT0 occurs. LEDs should flash when interrupt INT1 occurs Write an ALP to convert decimal number Write a program to count external pulses given at the to its equivalent ASCII code. Also Write timer 0 input pin. Display pulses on the seven segment an ALP to convert ASCII code to its display equivalent decimal number. Write a 8051 ALP using Timer0 to create a Interface matrix keyboard with 8051. Write program to 10khz square wave on P1.0 display key pressed on seven segment display Write a program to Add block of data Interface ADC0808 with 89C51 microcontroller. Write stored at location 40h to 45h Program to read analog voltage applied at the input of Transfer block of data from the location ADC. Display it on LCD. 40h-4Fh to external memory location 2000h-200Fh Arrange data stored at the location 40h-4Fh in ascending order Write an ALP to illustrate addition, Interface 8 bit DAC chip with 89C51 microcontroller. subtraction, multiplication and division of Write a two 8 bit numbers. program to generate sine wave using look up table Write an ALP to exchange block of data Write and execute programs bytes present in external memory. Flash LEDs connected at Port Pin P1.4 to P1.7 Starting address of first is 8000h and Monitor switch connected at P1.0, Glow all LED when starting address of other block 9000h switch in ON Monitor switch connected at P1.1, send and size of array is 10h. pulses to port P1.7 when switch is ON Write an ALP to sort a given array present Program to transfer a data serially from one in external memory with a starting microcontroller to another. address 9000h and size of an array is 10h using bubble sort technique.
Faculty: Mr. Kondekar V.H. Page 1
TE E&TC Shift II
12
13
14
15
16
TE E&TC Shift II
Page 2