EEE-342 MICROPROCESSOR SYSTEMS AND
INTERFACING
Lab-01
[Link] TAHIR
NAME [Link] AWAN
[Link] SHAHID
FA22-BEE-193
REGISTRATION NUMBER FA22-BEE-167
FA22-BEE-183
CLASS/SECTION BEE-5A
INSTRUCTOR [Link] AGHA
Lab Assessment
Post Lab Total
In-Lab
Data
Data Analysis Writing Style
Presentation
Lab # 01 Introduction to Development Tools and
LabSoftwares
OBJECTIVES:
Learn to use software development tools such as Arduino, Integrated
Development Environment (IDE) (Atmel Studio, AVR Studio),
Compiler (WinAVR), and Simulator (Proteus) for the AVR ATmega
328P microcontroller.
Learn to program Arduino and ATmega328P.
SOFTWARES USED:
Arduino
Atmel Studio (Version 7)
AVR Studio (Version 4)
Proteus ISIS
WinAVR (Version 2010)
IN LAB-TASKS:
Task 1: Arduino Learning Tutorial:
1. Launch Arduino IDE.
2. Some built-in examples are included in Arduino software. Click on the toolbar
menu: File >Examples>Basics>[Link] will turn an LED on Arduino board on
and off with some delay/
3. Compile the sketch. After successful compilation, the code can be uploaded to the
Arduino board.
Task2: AVR Studio Learning Tutorial 1.
Launch AVR Studio and Select Project Wizard form menu bar and Select New
Project and follow the instructions given in lab manual. Then write down the code
below in source window.
Task3: Atmel Studio Learning Tutorial:
Launch Atmel Studio either by start menu or by selecting desktop icon from start page new projects
can be created and recently used projects can be opened. The Start page can also be accessed from
View → Start Page or Alt V G. Click on new project and follow the instructions given in lab
manual. Write a code given in Task 1 in the source window.
TASK 4: PROTEUS INTRODUCTORY LEARNING TUTORIAL:
To learn basics about Proteus, we will simulate a microcontroller based circuit. In
[Link] will use the same program for microcontroller which we simulated in AVR
Tutorial. Launch Proteus from start menu or by desktop icon. Proteus layout shown
below will appear on the screen and follow the steps from manual.
In Lab Task4:
• The following code is written to generate Fibonacci series output at Port
which is given as (0, 1, 2, 3, 5, 8, 13, 21, 34, and 55).
• Build the following code in AVR Studio or Atmel Studio. Read the error
messages, identify y and correct any syntax errors and rebuild the solution.
• Use Debugging mode of AVR Studio or Atmel Studio to debug and
correct the code to get the desired output. In debug mode, open watch
window to check the value of the variables.
CONCLUSION:
In this lab we have learnt how to put into effect hardware the usage of AVR microcontroller
Through software’s ATMEL STUDIO, AVR STUDIO, ARDUINO IDE &
PROTEUS. In this lab, we got used to that above-mentioned software. To implement
the hardware, we go grade by grade and Microcontroller’s first want is code that's to
be burnt in it via the software program ATMEL or AVR STUDIO. We first compile
the code inside the AVR/ATMEL STUDIO and after a successful construct; the hex
file is uploaded within the microcontroller.