0% found this document useful (0 votes)
61 views

Lab 2 8051 Assembler & Simulator: Lab Manual For "The 8051 Microcontroller ."

This lab document provides instructions for using an 8051 assembler and simulator. It outlines two activities - writing an assembly program to move a value between registers, and writing a program to add digits of a student ID number. Students are asked to indicate register sizes and maximum values, and explain the purpose of file types generated during assembly. The objectives are to learn how to use an 8051 assembler and simulator to write and test assembly programs.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views

Lab 2 8051 Assembler & Simulator: Lab Manual For "The 8051 Microcontroller ."

This lab document provides instructions for using an 8051 assembler and simulator. It outlines two activities - writing an assembly program to move a value between registers, and writing a program to add digits of a student ID number. Students are asked to indicate register sizes and maximum values, and explain the purpose of file types generated during assembly. The objectives are to learn how to use an 8051 assembler and simulator to write and test assembly programs.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

LAB 2

8051 ASSEMBLER & SIMULATOR


OBJECTIVES:
To examine and use an 8051 assembler.
To examine and use an 8051 simulator.
REFERENCE:
Mazidi and McKinlay, The 8051 Microcontroller, Chapter 2
MATERIALS:
8051 assembler/compiler and simulator from Keil Corporation is recommended
8051 Proview32 assembler/compiler can also be used.
WEB SITES:
Keil Software. We recommend this for the 8051. You can download the software and tutorial
from:
http://www.microdigitaled.com/8051/8051_books.htm
www.keil.com
Franklin Proview32. The company is no longer in business. You can download the software and
tutorial from:
http://www.microdigitaled.com/8051/8051_books.htm
ACTIVITY 1
Write and assemble a program to move value 99H to register A. Then
from register A move it to all registers R0 - R7. Use the simulator to singlestep the program and examine the registers.
ACTIVITY 2
Write and assemble a program to add all the single digits of your ID
number and save the result in R2. Pick 7 random numbers (all single digit) if
you do not want to use your ID number. Then use the simulator to singlestep the program and examine the registers.

Lab Manual for The 8051 Microcontroller.

LAB 2
WORKSHEET
Name:

Date:

Class:

1. Indicate the size (8- or 16-bit) of each of the following registers.


PC =

A=

B=

R0=

R1=

R2=

R7=

2. For Question 1, indicate the largest value (in decimal) that each register
can contain.
PC =

A=

B=

R0=

R1=

R2=

R7=

3. For Question 1, indicate the largest value (in hex) that each register can
contain.
PC =

A=

B=

R0=

R1=

R2=

R7=

4. Who generates each of the following files and what is the use of each.
.asm
.lst
.obj
.abs
.hex

Lab Manual for The 8051 Microcontroller

You might also like