Real Time Embedded Systems Lab – Prepared by Dr Liam Noonan & Elaine Tynan Lab 7 – Arduino Uno 1. In this lab you will check the Arduino Uno hardware settings to confirm what port it uses, look at...

Lab 7 needs to be done first and then lab 8 is a follow up to it. It’s all about arduino programming so any questions or if any more files needed lemme know


Real Time Embedded Systems Lab – Prepared by Dr Liam Noonan & Elaine Tynan Lab 7 – Arduino Uno 1. In this lab you will check the Arduino Uno hardware settings to confirm what port it uses, look at sketch code and then use Atmel Studio. 2. Plug the usb cable into the arduino and plug the other end in to the pc. 3. Use Device manager (under Ports) to verify if the Arduino is recognised. If it is not it will appear as an unknown device. If it appears as unknown device select the option to update the driver and browse to C:\arduino-1.0.3-windows\arduino-1.0.3\drivers and click next 4. Confirm the port that the Arduino uses in Device Manager, this is available in the Ports section of Device Manager e.g. COM3. NOTE: you may need to change this port throughout this lab as your Arduino could install on a different port. 5. Insert a LED into pin 13 & GND (long connection in pin 13) 6. Download and install the Arduino IDE application from https://www.arduino.cc/en/Main/Software 7. Change the serial port in the Tools section to match the port number in step 3 (Tools -> Port -> COM3) 8. Open the example program File – Examples – Basics Blink (File -> Examples -> 01. Basics -> Blink) 9. Click the upload icon and note the sketch size and verify its size, note the behaviour of the Arduino (Sketch -> Upload) 10. Change the blink time to 5 seconds (5 seconds on & 5 seconds off) save it as your student number & upload again 11. Browse to C:\arduino-1.0.3-windows\arduino-1.0.3 (Or download from moodle if not on your pc) 12. Right click prog_m328.bat and select edit 13. Change the com port option to match device settings in step 3 14. Document program_blink.bat file a. Double click program_blink file and note the output of the program and record entries that start with avrdude in the output (Take note of what changes with your Arduino) Complete the quiz captioned Lab 07 Quiz. You must demo the Arduino running the blink program from the Arduino IDE and Atmel studio to receive any marks for this lab. https://www.arduino.cc/en/Main/Software Real Time Embedded Systems Lab – Prepared by Dr Liam Noonan Lab 8 – Arduino Uno Debugging In this lab you will explore the debugging features of ATMEL Studio IDE as well as multiplication of 8 bit and 16 bit numbers 1. Start ATMEL Studio and create a new project of type assembler, file name debug, board type ATMega328P 2. Enable the simulator by selecting Tools –> Device Programming –> Simulator –> ATMega328P PART A 3. Copy and paste the blink.asm file from lab7 into debug.asm code window 4. Build the solution and then start debugging by selecting Debug –> Start Debugging and Break 5. Make a note of the register changes in the code and the cycle count 6. Explain how the ZH and ZL (read the comments to see what registers they are stored in) are utilised and why it is only necessary to decrement ZL 7. Change the value that is loaded into ZH and ZL to another value between 500 and 63000 and examine the register values during debugging. Include the code listing in your report Part B 8. Replace the code in debug with the code from lab 8 multiply.asm, debug this program and explain how multiply works and the registers it uses for storing results. Include PC, cycle count and Register values in your analysis. Part C 9. Replace the code in debug with the code from lab 8 16 bit multiply.asm, debug this program and explain how multiply works and the registers it uses for storing results. Include PC, cycle count and Register values in your analysis. Explain the difference between this 16 bit multiply and the 8 bit multiply in step 8
May 03, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here