Sei sulla pagina 1di 4

Microprocessors and Interfaces Lab Report 01

Introduction
This is the firs lab of the microprocessors and interfaces, the lab based on the AES-51 development board, familiar with its basic function and use of its software and hard ware tools such as Terminal emulator, 8051 simulators.

Procedures
1. Power up the AES-51 development board 15v AC/DC power adapter 2. Run the simple four built-in test that provides by AES-51 development board four users to verify all I/O functional block Test #1- digital input channels Test#2- Digital output channels (by grounding P3_3,P3_4 andP3_5) Test#3 -Test Analog to digital converter (by connecting 5v input to A/D converter) Test#4- Test serial port (by connecting serial port to pc) 3. Write simple ASM programs for basic input and output functions.

Results and Discussion


//This is the simple ASM program that blinked output four LEDs
0090 7000 7000 7003 7005 7008 700A 700D 700F 7012 7014 7016 7018 701A 701C 701E 7020 7022 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 P1 DATA 90H ORG 7000H REPEAT: MOV P1,#11100000B ACALL DELAY MOV P1,#11010000B ACALL DELAY MOV P1,#10110000B ACALL DELAY MOV P1,#01110000B ACALL DELAY SJMP REPEAT DELAY: LOOP3: LOOP2: LOOP1: MOV R3,#25 MOV R2,#100 MOV R1,#100 DJNZ R1,LOOP1 DJNZ R2,LOOP2 DJNZ R3,LOOP3 RET END

7590E0 116 7590D0 1116 7590B0 1116 759070 1116 80EA 7B19 7A64 7964 D9FE DAFA DBF6 22

VERSION 1.2h ASSEMBLY COMPLETE, 0 ERRORS FOUND

DELAY. . . . . . . . . . . . . . C ADDR LOOP1. . . . . . . . . . . . . . C ADDR LOOP2. . . . . . . . . . . . . . C ADDR LOOP3. . . . . . . . . . . . . . C ADDR P1 . . . . . . . . . . . . . . . D ADDR REPEAT . . . . . . . . . . . . . C ADDR

7016H 701CH 701AH 7018H 0090H 7000H

//This is the Simple ASM program that display 1to 9 on seven segment display..
0000H 2 REPEAT: MOV P1,#11000000B 3 ACALL DELAY 4 MOV P1,#01111001B 5 ACALL DELAY 6 MOV P1,#00100100B 7 ACALL DELAY 8 MOV P1,#00110000B 9 ACALL DELAY 10 MOV P1,#00011001B 11 ACALL DELAY 12 MOV P1,#00010010B 13 ACALL DELAY 14 MOV P1,#00000010B 15 ACALL DELAY 16 MOV P1,#01111000B 17 ACALL DELAY 18 MOV P1,#00000000B 19 ACALL DELAY 20 MOV P1,#00010000B 21 0030 80CE 22 SJMP REPEAT 23 0032 7B01 24 DELAY: MOV R3,#1 0034 7A01 25 LOOP3: MOV R2,#1 0036 7901 26 LOOP2: MOV R1,#1 0038 D9FE 27 LOOP1: DJNZ R1,LOOP1 003A DAFA 28 DJNZ R2,LOOP2 003C DBF6 29 DJNZ R3,LOOP3 30 003E 22 31 RET 32 END ASSEMBLY COMPLETE, NO ERRORS FOUND, NO WARNINGS 0000 7590C0 0003 1132 0005 759079 0008 1132 000A 759024 000D 1132 000F 759030 0012 1132 0014 759019 0017 1132 0019 759012 001C 1132 001E 759002 0021 1132 0023 759078 0026 1132 0028 759000 002B 1132 002D 759010 1 ORG

This is the seven segment display editor

Conclusions 8051 micro controller is a 8 bit micro processing device that have four ports with 40 pins and it operates under high frequency with input data to produce a related output. We use mcu8051 ide simulator to simulate 2nd program that used seven segment display. Using this simulator software we were able to study and follow up our program step by step very easily. Also, we ware able to see how the program execute in internal memory of the microcontroller.