Question: Program needs to be done in C language, thank you. Assignment You are to design, code, and implement a program that reads two input switches

Program needs to be done in C language, thank you.

Program needs to be done in C language, thank you. Assignment You

Assignment You are to design, code, and implement a program that reads two input switches and blinks an LED (your choice) according to the following truth table: S10 OFF OFF ON ON S11 OFF ON OFF ON LED on time LED off time 500 mS 1000 mS 1000 mS 500 mS 1000 mS 500 mS 1000 mS 500 mS For the time base, you are to set up a timer that interrupts the processor every 10 mS. In order to verify that your interrupt is working correctly, designate a port pin as an output, and toggle it every time the timer ISR is run. Connect the pin to the oscilloscope so that you can verify it is exactly 10 mS on, and 10 mS off. To save CPU cycles, switch inputs should be set up to only be read on a change of value. This can be done by using the interrupt-on-change feature of RB4-RB7. You are free to select any valid port pins to drive the LED, and output the square wave produced by the timer ISR

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!