Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Solution for 4? 2, what are Vi and VIH for the digital I/O pins? Use datasheet v

ID: 2267509 • Letter: S

Question

Solution for 4? 2, what are Vi and VIH for the digital I/O pins? Use datasheet values with Vcc = 5V. Use max value for Vn, use min value for VIH Symbol Parameter Min. Typ. Max. Units 0.2Voc Input Low Voltage, except Vcc -1.8V-2.4V XTAL1 and RESET pin cc 24V-5.5V input High Voltage, except | Voc 1.8V-24V XTAL1 and RESET pins | Voc = 2.4V-5.5V 0.3V 0.7Voc2) 0.8Voc Vcc+0.5 Vcc+0.5 0.9 0.6 Output Low Voltage except RESET pin Output High Voltage except Reset pin 4.2 2.3 lot,--20 mA VCC = 5V Input Leakage Current I/O Pin Voc 5.5V pin low absolute value) Input Leakage Current l/O Pin Voc = 5.5V, pin high (absolute value) O Pin Pull-up Resistor 20 50 3. If the ATMega328 has an internal pull-up resistance of 20k enabled. It is connected to the pushbutton switch with 20 resistor to ground. Will the following button circuit operate correctly (input HIGH when open, LOW when closed)? Explain answer relative to the results of problem 2 . Two LEDs are connected to PD6 and PD7. Pushbutton switches with mechanical debouncing are connected to PBO and PB1. As in lab, the pin inputs are HIGH when the button is pressed Write a complete program (without Arduino commands) to toggle LED-PD6 if PB0 is pressed and toggle LED-PD7 if PB1 is pressed

Explanation / Answer

2)

VIL : Maximum voltage level which will be interpreted as a ‘0’ by a digital input.

VIH :Minimum voltage level which will be interpreted as a ‘1’ by a digital input.

The voltage level between VIL and VIH will result in an undefined logic state i.e. it could be either ‘0’ or ‘1’.

For proper operation when a digital output is connected to a digital input, the VIL of the input should be higher than the VOL(guaranteed maximum voltage level that will appear on a digital output set to ‘0’. ) of the output and VIH of the input should be lower than the VOH (guaranteed minimum voltage level that will appear on a digital output set to ‘1’.)of the output.

VIL= 0.3Vcc

VIL= 0.7Vcc

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote