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

Experiment: Dyna - 8051

The document describes 4 programs for the 8051 microcontroller: 1) Copy memory, 2) Insert Byte, 3) Delete Byte, and 4) Display Memory. It provides the syntax and examples for each program to manipulate and view memory contents.

Uploaded by

Pavan Barhate
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Experiment: Dyna - 8051

The document describes 4 programs for the 8051 microcontroller: 1) Copy memory, 2) Insert Byte, 3) Delete Byte, and 4) Display Memory. It provides the syntax and examples for each program to manipulate and view memory contents.

Uploaded by

Pavan Barhate
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Experiment: Dyna - 8051

Introduction:

8051 is one of the first and most popular microcontrollers also known as MCS-
51. Intel introduced it in the year 1981. Initially, it came out as an N-type
metal-oxide-semiconductor (NMOS) based microcontroller, but later versions
were based on complementary metal-oxide-semiconductor (CMOS)
technology. These microcontrollers were named 80C51, where C in the name
tells that it is based on CMOS technology. It is an 8-bit microcontroller which
means the data bus is 8-bit. Therefore, it can process 8 bits at a time. It is used
in a wide variety of embedded systems like robotics, remote controls, the
automotive industry, telecom applications, power tools, etc.
1)Program: Copy memory
Syntax: C strt end destination<CR>
When using C command, the contents of the memory block from the "strt
address” to "end address" are moved to consecutive memory locations
beginning at "destination address".

EX: C 9400 9403 9408 <CR>


9400: 04 22 32 02
9408: 04 22 32 02
In the above example contents of memory locations 9400 to 9403 are copied to
memory locations starting from 9408 to 940B.

RULES:
1. Destination should be greater than Strt address.

2)Program: Insert Byte


Syntax: I strt end Data <CR>
This command is used to insert a data byte in a given block of memory.
The remaining block shifts down by one position, up to the end address
specified.

EX. I 9400 9407 02 <CR>


This command will insert 02h at memory location 9400h.

Rules :
1. strt address should be less than end address
2. strt should lie in RAM area.
3) Program: DL Delete Byte
Syntax: DL strt end <CR>
This command is used to delete a data byte in a given block of memory.
The remaining block shifts up by one position, up to the end address specified.

EX. DL 9400 9406 <CR>


This command will delete byte at memory location 9400h.

4) Program: D Display Memory


Syntax: D strt end <CR>
D strt
Selected area of addressable memory may be accessed and displayed by the D
command. The D command produces a formatted listing of the memory contents
between strt (starting address) and end (end address) inclusive on the display.
Each line of the listing begins with the address of the first memory location displayed on
that line, represented as 4 hexadecimal digits, followed by contents of 8 memory
locations, each one represented by 2hexadecimal digits.

EX. D 1000 1020 <CR>


1000: 75 F0 0A E5 1B A4 25 1C ...........

RULES:
1. strt address should be less than end address.
2. Addresses are accepted as hex value.
3. If strt address lies in program memory, then end address should not lie in data
memory.
4.In the LOCAL mode press 'Enter' key to display next screen and 'ESC' key to return to
command prompt.

You might also like