Question: Write a program using a counter that performs the following operation: 1. Turn on PL1 when the count is 6. 2. Turn ON PL2

Write a program using a counter that performs the following operation: 1.

 

Write a program using a counter that performs the following operation: 1. Turn on PL1 when the count is 6. 2. Turn ON PL2 when the count is 12 - at which time PL1 should turn off. 3. Turn ON PL3 when the count is between 16 to 20 - at which time PL2 should turn off. 4. Turn off all the lights for count values greater than 20 and less than 25. 5. Reset the counter to 0 when count is 25.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!