The document contains 6 digital assignments to write 8051 assembly language programs:
1) To light LEDs on PORT1 sequentially with a 0.5 second delay between each.
2) To implement a counter that counts from 00 to 99 and sends each value to PORT1.
3) To blink an LED on P1.7 with 0.75 second on and 0.25 second off times using timers.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
62 views
Da 2
The document contains 6 digital assignments to write 8051 assembly language programs:
1) To light LEDs on PORT1 sequentially with a 0.5 second delay between each.
2) To implement a counter that counts from 00 to 99 and sends each value to PORT1.
3) To blink an LED on P1.7 with 0.75 second on and 0.25 second off times using timers.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
Digital Assignment -2
1. Write an 8051 assembly language program to glow the LEDs
connected on PORT1 in a serial fashion (from LSB to MSB) continuously with 0.5 seconds delay for each . 2. Write an 8051 assembly language program to implement a counter that counts from 00 to 99 (decimal). Send each count value to port P1 continuously . 3. Write an 8051 assembly language program using timers to blink the LED connected at P1.7 TON of 0.75 seconds and TOFF of 0.25 seconds. Assume the crystal frequency as 33 MHz. 4. Write an 8051 assembly language program to implement a counter for counting pulses of an input signals. Assume the crystal frequency as 11.0592 MHz. Configure TIMER 1 to generate a clock pulse for every one seconds and TIMER 0 as a counter which receives input pulses at P3.4 from P3.5. Display final count values in port P1 (TL0) & P2(TH0). 5. Assume a switch is connected to a port pin P1.3. Monitor this port pin continuously, whenever P1.3 is HIGH perform the transmission of “Hello” message to the serial port. When P1.3 LOW, perform the receive operation on serial port and display it in port P2. 6. To write an ALP for the generation of the square pulse of 50% duty cycle with on time of 10 ms using timer 0 and simultaneously send ‘Y’ and ‘N’ to port 0 and port 1 respectively. Assume that XTAL = 12 MHz.