Exp 1 (A) 8051
Exp 1 (A) 8051
Experiment No. 01: Familiarization with MDA-8051 microcontroller kit and loading
machine codes of a sample program to MDA-8051.
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.
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:
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
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.
MDA-WinEMS51
WWW.MIDASEG.CO
M
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