Вы находитесь на странице: 1из 5

Lab Report 01

Microprocessors and Interfacing

ECX 4236

Name : S.A.D.L. Janaka


Reg.No : 50564695
Center : Colombo
Aim:

• Study the AES-51 Development board and execute assembly language


programs

Objectives:

• Familiar with the software tools for microprocessor programming


• Understand about assembler (ASM) file, List (LST) and HEX file.
• Identify the basic functions of AES-51 development board

Equipments Used:

• AES-51 Development board


• Power Adaptor
• 6-Foot serial ribbon cable
• Computer

Software Tools used:

• Note pad
• ASM-51 Assembler
• 8052 Simulator
• Terminal Emulator

Procedure:

• Connect the power adaptor to the AES-51 development board


• Power up the board
• Run Built in test for quickly verify all I/O functional blocks
Test #1 : To test digital output channels

Test #2 : To test digital input channels

Test #3 : To test on the analog I/O block

Test #4 : To test serial communication

• 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

Delay: mov r0,#0


mov r1,#0
mov r2,#11
clr ex0

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

p35 bit 0b5h


p14 bit 94h
org 7000h
jb p35,$
clr p14

end

∗ Program 3:
This is an assembly language program that display registration numbers
one by one using software delay

p1 data 90h

Ex0 bit 0a8h

org 7000h

Ltx: mov p1,#01010000b

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

Delay: mov r0,#0

mov r1,#0

mov r2,#11

clr ex0
djnz r0,$

djnz r1,$-2

djnz r2,$-4

setb ex0

ret

end

Вам также может понравиться