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

Lab 2: LED Interfacing Home Tasks: 28 of March

This document outlines home tasks for Lab 2 that involve interfacing LEDs with an 89c51 microcontroller. It assigns 10 groups of students different LED interfacing tasks to program and simulate by the deadline of March 28th. The tasks involve programming patterns for counting, toggling, and animating LEDs connected to different ports. Students should submit a printed copy of the source code and simulation results for marking.

Uploaded by

Hina Imtiaz
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Lab 2: LED Interfacing Home Tasks: 28 of March

This document outlines home tasks for Lab 2 that involve interfacing LEDs with an 89c51 microcontroller. It assigns 10 groups of students different LED interfacing tasks to program and simulate by the deadline of March 28th. The tasks involve programming patterns for counting, toggling, and animating LEDs connected to different ports. Students should submit a printed copy of the source code and simulation results for marking.

Uploaded by

Hina Imtiaz
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Lab 2: LED Interfacing Home Tasks

Each group will perform her own task. Each student should know her group number. Each group member will submit the Printed copy of source code and simulation result of the given task. Printed copy should be well formatted with statement of home task be written properly. Simulation will also be checked in the lab and manuals will be marked according to it, on spot. Bring your laptop with you for showing simulation (if possible) Last day to submit this task is Thursday 28 of March. In case of any confusion please contact me @ 0519019774 (EXT 2774) in Digital Electronic s Lab or send email to [email protected] _______________________________
th

Group 1: Connect eight LEDs with P3 and program the microcontroller that shows counting from 0 to 255 on P3. Use delay of approximately 1 sec between each transition. Group 2: Connect two LEDs, one with P2.1 and another with P1.0. Program microcontroller to toggle the LEDs alternately. i.e: one P2.1 is ON, P1.0 should be OFF and vice versa. Group 3: Connect eight LEDs with Port 1 and lit the LEDs in progress bar fashion. Keep the LEDs Running like forward and reverse progress bar (demo output figure can be checked from manual) Group 4: program Microcontroller to light the LED connected to P0.5 of 89c51. Toggling of LED should be controlled by push button connected at P2.1. When user presses Push button, LED should glow, otherwise OFF. Group 5: Connect four LEDs with P2.0, P2.2, P2.4 and P2.6 and program 89c51 in such way that LEDs should be ON one by one. When one LED is ON, remaining all should be OFF. Group 6: Connect 8 LEDS with P2. Keep three LEDs ON at a time. Now move these three LEDs from LSB to MSB and from MSB to LSB. (LSB: Least significant bit and MSB: Most significant bit) Group 7: Connect 8 LEDS with P1 in triangular manner and program 89c51 in such a way that when user presses PB (push button) attached with P2.1 vertices of triangle should glow

(respective LEDs should be ON) and user presses PB attached with P2.2, LEDs of sides of triangle should glow. Group 8: Program the 89c51to count from 0 to 80 and 80 to 0 (reverse order). Output should be on P3s LEDS. Group 9: Program 89c51 to count even numbers between 0 to 100. Output should be shown on P0. Group 10: Program 89c51 to count even numbers between 100 to 0 in reverse order. Output should be shown on P0. _____________________

You might also like