Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started