Create and Run Assembly Program Using Mcu8051 Ide AIM
Create and Run Assembly Program Using Mcu8051 Ide AIM
: 02
AIM
1 Using software tools for 8051 development
OBJECTIVES
1.Learning to use the MCU8051 IDE Software .
APPARATURES
1.Personal Computer.
2.MCU8051 IDE Software.
PROCEDURE
1.Assembly program was run using the 8051 IDE
2.LED display was started
3.Then the simulator was started
4.The 8051 IDE was observed to program
OBESERVATIONS
1
2 ORG 000H
0000 7590FE 3 START: MOV P1,#11111110B turn on 1 LEDs
0003 112A 4 ACALL DELAY
0005 7590FD 5 MOV P1,#11111101B turn on 2 LEDs
0008 112A 6 ACALL DELAY
000A 7590FB 7 MOV P1,#11111011B turn on 3 LEDs
000D 112A 8 ACALL DELAY
000F 7590F7 9 MOV P1,#11110111B turn on 4 LEDs
0012 112A 10 ACALL DELAY
0014 7590EF 11 MOV P1,#11101111B turn on 5 LEDs
0017 112A 12 ACALL DELAY
0019 7590DF 13 MOV P1,#11011111B turn on 6 LEDs
001C 112A 14 ACALL DELAY
001E 7590BF 15 MOV P1,#10111111B turn on 7 LEDs
0021 112A 16 ACALL DELAY
0023 75907F 17 MOV P1,#01111111B turn on 8 LEDs
0026 112A 18 ACALL DELAY
0028 80D6 19 SJMP START Jump back to start
20
002A 7A05 21 DELAY: MOV R2, #5
002C 7905 22 LOOP2: MOV R1, #5
002E D9FE 23 LOOP1: DJNZ R1, LOOP1
0030 DAFA 24 DJNZ R2, LOOP2
0032 22 25 RET Return to the line under where delay was calls
26
27 END
ASSEMBLY COMPLETE, NO ERRORS FOUND, NO WARNINGS
DISCUSSION
In the simulator program the starting address was set to 0000H but in the actual AES-51
board this differs from that. Actually the starting address of the AES-51 is 7000H.
complicated The simulator is very useful and time saving when it comes to programs.
Because using the simulator, we can run the code without compiling or without the actual
hardware. And there is the ability to use the virtual hardware like 7segment displays,
keypads and LCD displays, etc so using them we can run the code without the
hardware setup.
This way we can identify errors before running the code on the actual hardware and save
a huge amount of time.