You are on page 1of 4

EXPERIMENT NO.

: 02

ENTER AND EXECUTE A MACHINE


PROGRAM

AIM
Programming the AES-51 using the keypad and executing the program.

OBJECTIVES

1. To introduce new users to machine code programming using the AES-51 board as
a stand alone unit.

APPARATURES

1. AES-51 Micro Controller development board.


2. DC Power Supply.
PROCEDURE

1. AES-51 board was powered up.


2. AES monitor was accessed using the 2nd key.
3. Then 2nd key (PROG key) was pressed again to access the program mode.
4. GOTO key was used to correct the address to 7000 at the start.
5. After that 2nd keys was pressed again to get the data entry mode.
6. Arrow keys was used to navigate among hex, decimal, binary fields. For this
practical hex field was used.
7. Data was entered as shown in the table. Each entry was terminated using ENTER
key.
8. The addresses are advance automatically after each data entry. When the address
are skipped while pressing the ENTER key, GOTO key was used to get to the
correct address.
9. After all the data is entered 2nd keys was used to return to the program mode.
10. Then the UP and DOWN keys used to check weather the data is entered correctly
at each address.
11. Then the RUN keys was pressed and the 7000 was entered as the starting address
and 701C was entered as ending address.
12. STEP key was used to run the program step by step.
13. Program was ended using the BREAK key.
OBSERVATIONS

LCD display on program mode.

* PROG 7000 28672


FF 255 11111111

The * on the top left corned disappeared on the data entry mode.

Sometimes 1 or 2 addresses are skipped after pressing the ENTER key after inputting the
value.

When the program is executed All four output LEDs switched on for a short time and then
turned off again.

DISCUSSION

As we can see in the data entry mode there are 3 data types we can enter.
Hex, Decimal and Binary.

Sometimes when we try to proceed to the next entry, addresses are skipped then we have
to manually enter the address using the GOTO key.

This program is stored on the RAM so the program can be reused unless the board is
powered down.

By converting this machine code into assembly language we can see how this delay
works.
ORG 0000H

Start: MOV 90, #0FH


ACALL 0011H
MOV 90, #0FFH
ACALL 0011H
SJMP Start

MOV R0, 00H


MOV R1, 00H
MOV R2, 0BH
CLR A8

Loop: DJNZ R0, Loop


DJNZ R1, Loop
DJNZ R2, Loop

SETB A8
RET

END

You might also like