Sei sulla pagina 1di 25

MTS - 310

Microcontroller
Based Systems
Lab
22/10/2015 College of EME (NUST) M Qasim
List of experiments
Week No Title of the experiment
1 To understand the use of Proteus Design Suit simulator
2 To understand the use of Keil simulator, to test and debug program by keil.
3 Introduction to 8051 Assembly Programming
4-5 Working with data transfer, arithmetic and logical instructions
6 Introduction to 8051 Addressing Modes
7 Jump, loop and call instructions
8 Delay Calculation exercises and Macros
9 Introduction to 8051 programming using C
10 8051 Timer Programming in Assembly Language
11 8051 Timer programming in C
12 8051 Serial Programming in Assembly Language
13 8051 programming using interrupt in Assembly Language
14 8051 Interrupt Programming in C
15-16 Introduction to AVR M Qasim
Lab 1

Proteus
Design suite

22/10/2015 College of EME (NUST) M Qasim


The Proteus Design Suite combines
schematic capture, SPICE circuit
simulation and PCB design to make a
complete electronics design system

22/10/2015 College of EME (NUST) M Qasim


System Components
ISIS Schematic Capture: A power full tool
for entering your design
PROSPICE simulation: SPICE circuit
simulation
ARES PCB layout: PCB design system with
automatic component placer and auto
routing
Virtual System Modeling (VSM): Lets you
co simulate embedded software for
popular micro-controllers along side your
hardware design
22/10/2015 College of EME (NUST) M Qasim
22/10/2015 College of EME (NUST) M Qasim
How to open proteus
In start menu go to programs
Then in proteus 7 professional click
on ISIS 7 Professional
The following window will appear

22/10/2015 College of EME (NUST) M Qasim


22/10/2015 College of EME (NUST) M Qasim
To create list of components/devices
Click on Component mode

22/10/2015 College of EME (NUST) M Qasim


Now click on p (pick devices)
The following window will appear

22/10/2015 College of EME (NUST) M Qasim


After entering keyword e.g. res for
resistor cap for capacitor etc list of
devices will be displayed
Double click at appropriate device
name, it will be added in your
component list
After adding devices in device list
you can use them later in your
design

22/10/2015 College of EME (NUST) M Qasim


To add fixed power supply or ground in
your design click on terminals mode

22/10/2015 College of EME (NUST) M Qasim


To add variable AC/DC power supply
click on generator mode

22/10/2015 College of EME (NUST) M Qasim


Example

22/10/2015 College of EME (NUST) M Qasim


To check node voltage : select
voltage probe mode
To check branch current: select
current probe mode

22/10/2015 College of EME (NUST) M Qasim


To add oscilloscope, DMM or signal generator
select virtual instruments mode

22/10/2015 College of EME (NUST) M Qasim


Exercises
1. Draw half wave rectifier and display
output on oscilloscope
2. Draw bridge rectifier and display output
on oscilloscope
3. Draw full adder.
4. Draw 4-bit even/ odd Parity checker.

22/10/2015 College of EME (NUST) M Qasim


Lab 2
How to add and program 89C51
microcontroller in your design
Add 89C51 microcontroller in your device
list
Now select 89C51 microcontroller and
double click in design window, 89C51 will
be added in your design.
To burn/ load program/ code in 89C51,
double click on it, the following window will
appear

22/10/2015 College of EME (NUST) M Qasim


22/10/2015 College of EME (NUST) M Qasim
Give path to hex file by clicking on
folder icon in program file drop
down menu and select file. Also give
clock frequency

22/10/2015 College of EME (NUST) M Qasim


22/10/2015 College of EME (NUST) M Qasim
Note
It is easy to use bus instead of drawing
separate wires, to do so select buses
mode and draw a bus.
Then make contact of microcontroller
ports to the bus through wires and label
all wires e.g. P1.0, P1.1 etc.

22/10/2015 College of EME (NUST) M Qasim


22/10/2015 College of EME (NUST) M Qasim
To draw layout of your design click on
ARES

22/10/2015 College of EME (NUST) M Qasim


The following window will appear

22/10/2015 College of EME (NUST) M Qasim

Potrebbero piacerti anche