0% found this document useful (0 votes)
29 views9 pages

Exp 1 (A) 8051

The document discusses an experiment with an MDA-8051 microcontroller kit. It describes the objectives, components, and basic operation of the kit. It also provides examples of loading and running machine code programs on the kit to examine registers and memory.

Uploaded by

mdzaman21024021
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views9 pages

Exp 1 (A) 8051

The document discusses an experiment with an MDA-8051 microcontroller kit. It describes the objectives, components, and basic operation of the kit. It also provides examples of loading and running machine code programs on the kit to examine registers and memory.

Uploaded by

mdzaman21024021
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Microprocessor and Microcontroller Sessionals

Experiment No. 01: Familiarization with MDA-8051 microcontroller kit and loading
machine codes of a sample program to MDA-8051.

Objectives: The objectives of this experiment are-

a) To familiarize with MDA-8051 system configuration.


b) To operate MDA-8051 in “Machine Code” mode.
c) To know about different registers inside 8051 microcontroller.

MDA-8051 System Configuration:

Figure 1.1: MDA-8051 System Configuration.

Page 1 of 9
1. CPU (Central processing unit) : The CPU is located to the center of the MDA-WinEMS51
kit(marking the CPU & MEMORY). The CPU use the 8051/8031/8751 with the clock 11.0592[M].

2. ROM(Read Only Memory) : The ROM is located to the center of the MDA-WinEMS51
kit(marking the CPU & MEMORY). It contains the basic program to allow user to control the MDA-
WinEMS51 kit with the keyboard, LCD display, data communication.

3. SRAM (Static Random Access Memory) : The RAM is located to the center of the MDA-
WinEMS51 kit(marking the CPU & MEMORY). Information (instructions and data) can be inserted
(written) into RAM.

4. DISPLAY: The display is comprised of LCD display providing visual display of the data or
control information. It has the 16(Character) 2(Line).

5. KEYBOARD: It is a switch consisting of sixteen labeled hexadecimal, eight function keys. The
keyboard is interfaced to system bus by the priority encoder. Control information and data is entered
into system by the key.

6. SPEAKER: The SPEAKER is located to the right-center part of the MDA-WinEMS51 kit
(marking the SPEAKER). The speaker can test the sound and the synthesizer.

7. RS-232C: The RS-232C is located to the right-top part of the MDA-WinEMS51 kit(marking the
RS-232C).It use the IBM compatible PC to communicate the data.

8. 8751/AT89C51 WRITER: The WRITER is located to the center-bottom of the MDA-WinEMS51


kit (marking the 89C51WRITER). The writer can write the user's program to the microcomputer
AT89C51.

9. DOT MATRIX LED: The DOT MATRIX LED is located to the center-top part of the MDA-
WinEMS51 kit(marking the DOT MATRIX 8 X 8). It use the dot matrix LED to understand the dot
matrix structure and the principle of display, it is interfaced to system bus by the 8255A (PPI).

10. A/D CONVERTER: The A/D converter is located to the left-center part of the MDA-WinEMS51
kit(marking the A/D CONVERTER). The A(Analog)/D(Digital) Convert used the ADC0804 to
convert the analog signal to digital signal with the ADC0804.

11. D/A CONVERTER: The D/A converter is located to the left-center part of the MDA-WinEMS51
kit(marking the D/A CONVERTER). It used the DAC0800(8 bit D/A converter) to convert the digital
signal to the analog signal and to control the D.C motor.

12. STEPPING MOTOR DRIVER: The stepping motor driver is located to the left-upper part of the
MDA-WinEMS51 kit (marking the STEPPING MOTOR). It use the stepping motor driver to control
the stepping motor.

13. D.C MOTOR: The D.C motor is located to the left-bottom of the MDA-WinEMS51 kit (marking
the D.C MOTOR). It use the D/A converter to control the speed of D.C motor. It use the photo
interrupter to measure the speed of D.C motor.

14. CONNECTOR: The connector is located to the left & bottom of the MDA-WinEMS51
kit(marking the PORT-IO, EXT-10, CON3). It use to interface the peripheral device.

15. POWER: The POWER is located to the right-top of the MDA-WinEMS51 kit (marking the AC
POWER). The power spec. is the +5V(3A), +12V(1A), -12V(0.5A).
Page 2 of 9
I/O address map:

Figure 1.2: I/O address map.

Kind and Function of Key:

MDA-8051 has high performance 64K-byte monitor program. It is designed for easy
function. After power is on, the monitor begins to work. In addition to all the key function the
monitor has a memory checking routine.

Page 3 of 9
Tⱷ STP C D E F

INT GO 8 9 A B

+ DA 4 5 6 7

VAD D
- 1 2 3

Figure 1.3 Keypad


The functions of the keys are given below:
The RESET key allows to terminate any present activity and to return your MDA-
RES WinEMS51 kit to an initialized state, MDA-WinEMS51 INPUT > message appears
in the LCD display and monitor kit is ready
The AD key is used to enter the internal memory or external memory address.
AD
The DA key allows you to enter the data in the internal memory external memory.
DA
The + key is used to memory. increase internal memory or external memory
+
The - key is used to decrease internal memory or external memory
-
The GO key is used to execute the your's program.
GO
The STP key is used to execute a line on time of the your's program
STP
The INT key is used to generate an external interrupt to the 8051 microcomputer.
INT
The T0 key is used to generate an pulse to the 8051 microcomputer timer/counter.
T0

Basic Operation

MDA-8051 can operate in two modes. (a) Machine Code Mode (b) Serial Monitor Mode
In machine code mode, user can load instructions/ program directly by keypad and can
observe the contents of different registers in LCD. On the other hand, user can load
instruction/program from computer via serial port in Serial Monitor Mode.

On a power-up, following message will be displayed on a LCD.

MDA-WinEMS51
WWW.MIDASEG.CO
M

Figure 1.5: Power on monitor.

Page 4 of 9
To use “Machine Code” mode, move jumper P1 which located on the PCB like this.

Whenever RES is pressed, the display becomes Figure 5 and user can operate keyboard only in
this situation.
Example 01: Examination the internal data memory 0000H~0003H

Page 5 of 9
Example 02: Examination and modifying the internal data memory 0030H~0031H

v Example 03: Examination and modifying the External data memory 2000H

Page 6 of 9
Architecture of 8051 microcontroller:

Page 7 of 9
Example Program:
Assembly Code Address Machine Code
MOV A,#0F7H 2000 74 F7
MOV P1,A 2002 F5 90
JMP 8028H ;monitor return 2004 02 80 28

Procedure:

Page 8 of 9
Execute the program:

Result: LED 5 which connect to P1 will be lighted and update register values will be displayed.

Page 9 of 9

You might also like