0% found this document useful (0 votes)
49 views1 page

Tasks PDF

The document contains 4 tasks related to blinking LEDs using code. Task 1 is to blink even and odd LEDs alternately. Task 2 is to blink 8 LEDs in sequence using setb and clr instructions. Task 3 is to blink an LED with a 5 second on and off delay without exceeding 50 lines of code. Task 4 generates the sequences of LEDs blinking from right to left and left to right.

Uploaded by

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

Tasks PDF

The document contains 4 tasks related to blinking LEDs using code. Task 1 is to blink even and odd LEDs alternately. Task 2 is to blink 8 LEDs in sequence using setb and clr instructions. Task 3 is to blink an LED with a 5 second on and off delay without exceeding 50 lines of code. Task 4 generates the sequences of LEDs blinking from right to left and left to right.

Uploaded by

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

Task#01

Write a code to blink even and odd LEDs one after the other.

Question#01
Calculate how long it takes to execute the delay function used in task#01.
(Solve it on paper and then attach picture of your calculations)

Task#02
Write a code to blink 8 LEDs in sequence one after the other using setb and clr
instruction.

Task#03
Write a code to blink LED with 5 seconds delay. (Code shouldn’t exceed 50 lines)
Ton=5 seconds
Toff=5 seconds
(Attach picture of your calculations below the program code)

Task#04
Generate the following sequences on LEDs
1. Blinking LEDs towards right
2. Blinking LEDs towards left

You might also like