Sei sulla pagina 1di 16

Experiment 1

Run built-in test

Introduction :

The simulation board that was used for the experiment was AES 51, it was used in
testing the following,

Aim:

Digital output testing


Digital input testing
Tested the analog I/O block.
Testing whether a device is attached to the serial port.

Aim of the laboratory test was to learn the functions of microcontroller 8051and how it can be
used in a board to obtain inputs and outputs.

Equipment
AES 51 development board
Power adapter
Serial ribbon cable
Computer

Procedure

By starting the test board first of start test is done by pressing the test button. Then we went to the initial
first test by on to any other key other thn the test key afterwards we advanced on to the test 2 by pressing
test key. Then we pressed a key(except test key) to view the test to repeated then again as above test key
was pressed to proceed to test 3 where we tested the analog to digital I/O block was tested then we
connected the computer to serial port of the board and repeated test and proceeded to test 4 after that the
test was finished.

Results
Test 1 : LED outputs were turned on for few seconds.
Test 2 : T2 input port# IS FF 11111111
After grounding I1 and repeating test 2 : T2 input port# IS F7 11110111
By connecting input pins I1,I2 and I3 are connected to the 80c32 port-3 pins p3.3 , p3.5, p3.4 the
following were observed
T2 input port# IS DF 11011111
T2 input port# IS EF 11101111
Test 3: T3 ADC# TO D/A IS 00 00000000
By connecting A/D to +5v and repeating the Test 3
T3 ADC# TO D/A IS FF 11111111
Test 4 : T4 <AES> SENT TO SERIAL PORTS

Experiment 2
Machine program

Introduction
This was the experiment in use of machine language to program and store the commands in
proper memory locations.

Aim
Writing a machine code to flash LEDs at about 3 second period.

Procedure
AES-51 board was turned onand then the 2 nd key was pressed to enter the monitor then
PROG key was pressed to select program mode. Then by pressing 2 nd key data entry mode was
turned afterwards the data on table given in the lab sheet wa enterned one by one.

Discussion
Entering the coeds werent that easy as some of the keys werent working properly so
had to enter data addresses as given in the book by directly entering the addresses of proper
memory locations.

Experiment 3
Simulating the machine code
and
obtaining the hex file

Introduction
To see how the written machine code simulates it was coded in the computer and it was
test run so that we can obtain a output.

Aim
Better understand how the microprocessor out put is given.

Procedure
The codes for the program was typed in the simulator environment and it was compiled and run.

Org 0000H
ON :

MOV R0,#FFFFH ;
MOV P1,R0 ;
ACALL DELAY
MOV R1,#0000H ;
MOV P1,R1 ;
ACALL DELAY
SJMP ON ;

DELAY:

MOV R2,#55 ;

L3:

MOV R3,#55 ;

L2:

MOV R4,#0 ;

L1:

DJNZ R4,$
DJNZ R3,$ - 2
DJNZ R2,$ - 4
RET
END

MICROPROCESSOR AND INTERFACING


ECX4236

LAB REPORT

NAME

REG. NO

DATE OF SUBMISSION : 01 / 04 / 2016


GROUP

: CLE04

Potrebbero piacerti anche