Question: Write program in c language for pSoc5 Your program will do the following: o If DIP switch #1 is OFF, LED #1 and LED #3

Write program in c language for pSoc5

Your program will do the following:

o

If DIP switch #1 is OFF, LED #1 and LED #3 will be on and the other 2 LEDS

will be off.

After 500 ms the LEDs will alternate, with LED #1 and LED #3 off and the other 2 will be

on. This cycle will repeat continuously.

o

If DIP switch #1 is ON, LED #1 and LED #4 will be on and the other 2 LEDS (LED #2 and

LED #3) will flash on an

d off at a rate of 200 ms.

o

If DIP #2 switch is OFF LED #5, LED #6, LED #7, and LED #8 will be off.

o

If DIP switch #2 is ON, LED #5, LED #6, LED #7, and LED #8 will be on. All other LEDs will

be off. LEDs 5 through 8 will then turn off one by one at a r

ate of 900 ms until they are

all off. They will remain off until the DIP switch is toggled to off and then on again

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 Databases Questions!