You are on page 1of 5

Lab No# 14

Introduction to Embedded Systems and Microcontrollers

TASK# (a)
Introduction to MCS-51 Assembler:-
In 1980 Intel has introduced the 8051 as the first member of the MCS-51family of
microcontrollers. Today hundreds of cheap 8051 derivatives are available from dozens of
manufacturers. This makes the MCS-51 architecture so interesting for professionals and
hobbyists.ASEM-51 is a two-pass macro assembler for the Intel MCS-51 family of
microcontrollers. It is running on the PC under MS-DOS, Windows and Linux. The ASEM51
assembly language is a rich subset of the Intel standard that guarantees maximum
compatibility with existing 8051 assembler sources.ASEM-51 can generate two sorts of
object files: Intel-HEX format, which is directly accepted by most EPROM programmers, and
absolute OMF-51format, which is required for many simulators, emulators and target
debuggers. Thus ASEM-51 is suitable for small and medium MCS-51-based microcontroller
projects in hobby, education and business. However, ASEM-51 has been designed to process
also very large programs.

Its most important features are:-

fast, compact, reliable, easy to use, and well-documented easy installation, almost no
configuration required five location counters, one for each of the MCS-51 address spaces
nested include file processing nested conditional assembly hex-to-binary conversion
utility built-in symbols for 8051 special function registers (can be disabled) direct
support for more than two hundred 8051 derivatives support of user-defined 8051
derivatives special support for the Philips P83C75x family 8051 register bank support
Detailed assembler listing with symbol table or cross reference.

Introduction to proteus simulator:-


PROTEUS VSM allows professional engineers to run interactive simulations of real designs,
and To reap the rewards of this approach to circuit simulation. And then, a range of
simulator models for popular micro-controllers and a set of animated models For related
peripheral devices such as LED and LCD displays, keypads, an RS232 terminal and More. It is
possible to simulate complete micro-controller systems Structurally, Proteus 6 Professional
separated into two main components, which are ISIS 6 Professional and ARES 6 Professional.
ISIS 6 Professional mainly involved on circuit designing And simulation.
Features:

Industry standard SPICE3F5 simulator.


Interactive and animated component models.
To clarify design and testing of the design.
Simulation of complete microcontroller.
systems i.e. the development of the software.
For full hardware prototype without access to.
That physical prototype.

Task# (b)

To write a program for LED blinking in MIDE-51 software and creating a Hex
file.
Procedure:
Open the keil software
Create new file.
Save it as e.g, Naveed.
Then right click on the target. And click on the source group.
Add file to source group.
Save the file .
Then right click on the target, select the option for target target1.
Set the frequency as 11.05KHZ and by click on the output, create hex file.
Then , right click on the source group and select the build target to execute the
program .
In this way, program is executed.
Code:
Task# (c)
Simulation on Proteus:
Procedure:
To make a simulation on the Proteus following steps are required.
Open the Proteus software.
From the place select the required components e.g, crystal, capacitor, and micro-
controller AT89C51.
Place them on the sheet.
Make connections.
Double click on the IC AT89C51 and add to path.
Then burn the hex file.
Last , run the simulation and checked output.
Simulation:
Lab No# 15
To write a program for two LED blinking in MIDE-51 software and creating a
Hex file.
To connect the LEDs with AT89-C51 Microcontroller in Proteus simulator and
burning the Hex file in AT89-C51Microcontroller created in first step.
Task# (a)
To write a program for two LED blinking in MIDE-51 software and creating a Hex
file.
Procedure:
Open the keil software
Create new file.
Save it as e.g, Naveed.
Then right click on the target. And click on the source group.
Add file to source group.
Save the file .
Then right click on the target, select the option for target target1.
Set the frequency as 11.05KHZ and by click on the output, create hex file.
Then , right click on the source group and select the build target to execute the
program .
In this way, program is executed.
Code:
Task# (b)
To connect the LEDs with AT89-C51 Microcontroller in Proteus simulator and burning
the Hex file in AT89-C51Microcontroller created in first step.
Procedure:
To make a simulation on the Proteus following steps are required.
Open the Proteus software.
From the place select the required components e.g, crystal, capacitor, and micro-
controller AT89C51.
Place them on the sheet.
Make connections.
Double click on the IC AT89C51 and add to path.
Then burn the hex file.
Last , run the simulation and checked output.
Simulation:

You might also like