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. 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
Get step-by-step solutions from verified subject matter experts
