Micro Lab1 Report
Micro Lab1 Report
Micro Lab1 Report
ECX 4236
Objectives:
Equipments Used:
• Note pad
• ASM-51 Assembler
• 8052 Simulator
• Terminal Emulator
Procedure:
• Write machine a language program for flashing output port LED’s using the
development board keyboard
• Connect the PC to the AES-51 Board using serial ribbon cable and
power up the PC
• Write the source code (ALP) in Notepad and save it as ASM (File
name .ASM) file
• Use ASM-51 Assembler to produced HEX file (Which contains machine
codes in hex format plus address) and LST file (Which contains detail records
of both the source file and the hex machine code)
• Using LST (List) file check whether is there any errors in the program
• Use 8052 Simulator to simulate our program
• Use Terminal Emulator (TE) to download the program to the AES-51
Development board and execute assembly language programs.
* Program 1:
This is an assembly language program that flash output port LED’s using
software delay
p1 data 90h
Ex0 bit 0a8h
org 7000h
Ltx: mov p1,#0fh
acall Delay
mov p1,#0ffh
acall Delay
sjmp Ltx
djnz r0,$
djnz r1,$-2
djnz r2,$-4
setb ex0
ret
end
* Program 2:
This is an assembly language program that detect push button conditions
end
∗ Program 3:
This is an assembly language program that display registration numbers
one by one using software delay
p1 data 90h
org 7000h
acall Delay
mov p1,#00000000b
acall Delay
mov p1,#01010000b
acall Delay
mov p1,#01100000b
acall Delay
mov P1,#01000000b
acall Delay
mov P1,#01100000b
acall Delay
mov P1,#10010000b
acall Delay
mov P1,#01010000b
acall Delay
sjmp Ltx
mov r1,#0
mov r2,#11
clr ex0
djnz r0,$
djnz r1,$-2
djnz r2,$-4
setb ex0
ret
end