Question: 5 Logical Inputs and Outputs Use PB0 and PC0 as inputs to control two LEDs that are attached to PD6 and PD5. PD6 LED should
5 Logical Inputs and Outputs Use PB0 and PC0 as inputs to control two LEDs that are attached to PD6 and PD5. PD6 LED should be an OR of the two inputs. The PD5 LED should be an AND of the two inputs. When a de-bounced input change is detected on either PB0 or PC0 write a debug message using the Arduino wiring library and the serial monitor program to view it. (Hint: You will need a breadboard, 2 LEDs and 2 current limiter resistors. Dont forget to current limit each LED with a resistor). 1. What is the value of your current limiting resistor and why did you choose that value? 2. What is the max current the ATmega328P can source and sink per GPIO line (Hint: Look at the data sheet )? 3. Does your program behave as expected?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
