Question: SOLVE PART C ONLY, THANKS please close this question Part A: 1. What is the frequency of the clock used in the Arduino Mega? 2.
SOLVE PART C ONLY, THANKS

Part A: 1. What is the frequency of the clock used in the Arduino Mega? 2. What is the machine cycle in ns? Assume 1 clock cycle (cc) is 1 machine cycle (mc). 3. Identify the main ports of the Atmega2560 microcontroller 4. Identify the Arduino board pins connected to the different ports of the microcontroller Part B: 1. Write a code to toggle a pin every 40 us and check the signals on the oscilloscope 2. Find the exact duration of the high and low states of the signal. 3. Is the pulse duration precisely 40 us? Explain why? Part C: 1. Which port of the Atmega2560 microcontroller is connected to pins 20 and 21 of the Arduino Mega/ADK board? 2. Rewrite the same code as part B, but using direct access to the corresponding port. 3. Do the LED's blink simultaneously? Check the delay using the oscilloscope. 4. Compute the delay between the blinking of one LED and the other. 5. Write your comments. Part A: 1. What is the frequency of the clock used in the Arduino Mega? 2. What is the machine cycle in ns? Assume 1 clock cycle (cc) is 1 machine cycle (mc). 3. Identify the main ports of the Atmega2560 microcontroller 4. Identify the Arduino board pins connected to the different ports of the microcontroller Part B: 1. Write a code to toggle a pin every 40 us and check the signals on the oscilloscope 2. Find the exact duration of the high and low states of the signal. 3. Is the pulse duration precisely 40 us? Explain why? Part C: 1. Which port of the Atmega2560 microcontroller is connected to pins 20 and 21 of the Arduino Mega/ADK board? 2. Rewrite the same code as part B, but using direct access to the corresponding port. 3. Do the LED's blink simultaneously? Check the delay using the oscilloscope. 4. Compute the delay between the blinking of one LED and the other. 5. Write your comments
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
