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

Homework: Questions 2-3: from Blum Supplemental text (Ch 1) or the internet 1. W

ID: 3878017 • Letter: H

Question

Homework: Questions 2-3: from Blum Supplemental text (Ch 1) or the internet

1. Write down one question you have on the material in the reading assignment. Give specific location if possible.

2. Describe the function of the Arduino bootloader?

3. The ATMega328p is the microcontroller used in the Arduino Uno. The Arduino Uno board also has an ATMega16U2 chip – what is the function of this chip?

4. Write the line of C code to configure:                 Port B – pins 4 and 5 as output

5. Write the line of C code to configure:                 Port C – pin 2 pull-up enabled

6. Write the lines of C code to configure:               Port D – pins 0,1 as output, pull-up enabled on pin 3

7. Apply masking and use the OR operator to combine bits from ports C and D into an 8 bit variable named “x”. Bits PD7, PD6, PD5 go to x7,x6,x5 . Bits PC4-PC0 go to x4,x3,x2,x1,x0.

See lab2 instruction sheet in D2L for a description of the process.

8. Write the IF statement that will evaluate as true if a low voltage is on input pin 6 of port D. (use the PIND register)   

  

Explanation / Answer

If you post more than 1 question, as per chegg guidelines I have to solve only 1 question.

2.

When a microcontroller is powered on, a proram is run automatically which is called the bootloader. It waits for the Arduino IDe to send a new sketch on the serial port. When a new sketch is recieved we burn it into flash drive. After that we run it and if it does not happpen, then the older sketch which was present in the flash drive previously is burned.