Question: 8) There is a device connected to INT1 (pin 3) of an Arduino. By default pin 3 will be asserted high. The device will assert

 8) There is a device connected to INT1 (pin 3) of

8) There is a device connected to INT1 (pin 3) of an Arduino. By default pin 3 will be asserted high. The device will assert the pin low to indicate an interrupt. Interrupt will be triggered on rising edge. We need to perform the following task to service the interrupt: Read the input value on pin 4 (15 points) If pin 4 is high then turn on the LED connected to pin 6 and turn off the LED connected to pin 7. If pin 4 is low then turn on the LED connected to pin 7 and turn off the LED connected to pin 6. //Write setup code required to enable external interrupt, //set up input and output pins. //Write code for ISR with appropriate interrupt vector

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!