al hussein bin talal university college of engineering ... · proteus software integrated...

7
Al Hussein Bin Talal University College of Engineering Computer Engineering Department Embedded Systems Laboratory Experiment 4 Introduction to Proteus, LED

Upload: danganh

Post on 10-Jul-2019

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Al Hussein Bin Talal University College of Engineering ... · Proteus software integrated development environment , creating project, performing schematic capture and simulating the

Al Hussein Bin Talal University

College of Engineering

Computer Engineering Department

Embedded Systems Laboratory

Experiment 4

Introduction to Proteus, LED

Page 2: Al Hussein Bin Talal University College of Engineering ... · Proteus software integrated development environment , creating project, performing schematic capture and simulating the

Objectives:

The main objectives of this experiment are to familiarize you with:

Proteus software integrated development environment , creating project,

performing schematic capture and simulating the designed circuits

Design simple circuit using Proteus, and simulating it using code written in

MPLAB

Introduction: Proteus is a Design Suite also know as Virtual System Modeling (VSM) offering the

ability to simulate micro-controller code and also circuits. The software suite containing

schematic, simulation and PCB designing.

Part 1: Design simple circuit This is the first windows you´ll see every day you open Proteus, this is the home screen.

Select icon to start schematic design

Page 3: Al Hussein Bin Talal University College of Engineering ... · Proteus software integrated development environment , creating project, performing schematic capture and simulating the

The ISIS environment:

You can select your component From the Library menu select Pick part from libraries or from object selector window click on P:

Select the components from categories or type the part name in Keywords text box

The selected components will appear in the devices list. Select the component and place

it in the design sheet by left-click

Page 4: Al Hussein Bin Talal University College of Engineering ... · Proteus software integrated development environment , creating project, performing schematic capture and simulating the

Place all the required components and route the wires i.e, make connections.

Either selection mode above the component mode or component mode allows to connect

through wires. Left click from one terminal to other to make connection. Double right-

click on the connected wire or the component to remove connection or the component

respectively

Page 5: Al Hussein Bin Talal University College of Engineering ... · Proteus software integrated development environment , creating project, performing schematic capture and simulating the

Double click on the component to edit the properties of the components and click on Ok

After connecting the circuit,click on the play button to run the simulation.

In this example simulation, the button is depressed during simulation by clicking on it to

make LED glow

Page 6: Al Hussein Bin Talal University College of Engineering ... · Proteus software integrated development environment , creating project, performing schematic capture and simulating the

Part 2: Using Proteus to prototype embedded system design

1. Design the following circuit:

2. Write the following code in MPLAB and build it:

Page 7: Al Hussein Bin Talal University College of Engineering ... · Proteus software integrated development environment , creating project, performing schematic capture and simulating the

3. Double click on the PIC ship in your design and download your program

4. Run the simulation and watch the result.

5. Change the program to switch all LEDs on.