We have a microcontroller (MCU) that operates at 3.3V. We want to connect a pushbutton switch to a digital input and a LED on a digital output. The pushbutton is normally open until pressed. The LED...
We have a microcontroller (MCU) that operates at 3.3V. We want to connect a pushbutton switch to a digital input and a LED on a digital output. The pushbutton is normally open until pressed. The LED has a forward voltage of 2.3V at the operating current of 10mA. We want the input at the microcontroller to go high when the button is pressed. We want the LED to light up when the digital output is low Q5 Explain what two additional components are required for correct operation of the pushbutton on the digital input and the LED on the output. Choose appropriate values for both components, and explain your reasoning (a) Show on a circuit diagram how all these components should be connected to our MCU (b) (c) If the button is a doorbel, should we use software polling or an interrupt driven program on our MCU? Explain vour choice.
We have a microcontroller (MCU) that operates at 3.3V. We want to connect a pushbutton switch to a digital input and a LED on a digital output. The pushbutton is normally open until pressed. The LED has a forward voltage of 2.3V at the operating current of 10mA. We want the input at the microcontroller to go high when the button is pressed. We want the LED to light up when the digital output is low Q5 Explain what two additional components are required for correct operation of the pushbutton on the digital input and the LED on the output. Choose appropriate values for both components, and explain your reasoning (a) Show on a circuit diagram how all these components should be connected to our MCU (b) (c) If the button is a doorbel, should we use software polling or an interrupt driven program on our MCU? Explain vour choice.