I. Experiment Environment: King Faisal University College of Engineering Department of Electrical Engineering
I. Experiment Environment: King Faisal University College of Engineering Department of Electrical Engineering
College of Engineering
Department of Electrical Engineering
I. EXPERIMENT ENVIRONMENT
You will be using a training kit (MDA-8086) connected to a PC. All the needed application
software are stored locally on drive c: which is the system drive. All personal files should be
stored on the desktop inside a folder holding your name. You will be working entirely in the
Microsoft Windows environment. You will use 'MDA_Win IDE8086' software icon as a tool
to connect with MDA-8086 kit and start working with the 8086 Microprocessor.
1
2- What are the modes of operation for the KIT? How to switch between modes? How to
verify that the required mode is ON?
8086 is designed to operate in two modes Minimum and Maximum mode.
MN/MX¯ is 1 to indicate minimum mode.
And, if MN/MX¯ is 0 to indicate maximum mode.
3- What type of data cable is used to connect MDA-8086 to the PC?
Connect the MDA-Win8086 Kit to a spare serial port on your PC.
4- How many LEDs are there in the Kit? What are their purposes?
6- List 2 Input methods that can be used to instruct the 8086 Microprocessor.
Direct input & variable input.
8- What type of interfaces are used to communicate between the DOT MATRIX LED and
INTEL 8086 MP?
The type of interface that is used to communicate between Dot-Matrix LED display and 8086
microprocessor is 8255 PPI.
10- How many address pins are in the address bus of Intel 8086? What are the pins'
numbers in Intel 8086?
There are 20 address bus. The numbers of pins is from AD0 to AD15+A16 to A19.
11- How many data pins are in the data bus for Intel 8086. What are the pins' numbers in
Intel 8086?
There are 16 data bus. The numbers of pins is from AD0 to AD15.
12- Why does we say that the data and address bus for Intel 8086 are multiplexed?
The data bus is multiplexed with the address bus in order to fit all of the control lines into a
standard 40-pin dual in-line package.
1
14- How many pins in 8086 are ground pins? Vcc Pins? What are the pins' numbers in 8086
MP.
There are 2 ground pins at 1 and 20. There is one VCC pin which is pin number 40.
15- How many hexadecimal digits are used to locate an address in the Memory? An address
for I/O Port?
1- Select the KIT mode from SELECT MODE Switch, Press RESET key. What
happened to the LCD?
It displayed “MDA-8086 Kit V9.5”.
2- Check the contents of memory locations 01000, 01001, 01002, 01003. List the keys
used to accomplish this task in order. What is the data stored in these locations?
1
3- Store the following data into corresponding memory locations. List the keys used to
accomplish this task in order. Address Data
01003 34
01002 EF
01001 CD
The keys used (AD,:,+,+,+,DA ,3,4 ,… ). 01000 12
4- Press RESET key, then re-check the contents of memory locations 01000, 01001,
01002, 01003. Explain.
The values we entered in the previous question was stored.
5- Check the contents of the registers for Intel 8086. List the keys used to accomplish this task
in order. What is the data stored in this location?
AX = 0000 BX = 0000
CX = 0000 DX = 0000
BP= 0000 SI = 0000
DI= 0000 DS=0000
ES= 0000 SS= 0000
CS =0000 FL=0000
SP=0540 IP=1000
Keys used in order ( REG , +,+,+)
6- Explain the purpose for the first four registers you checked in the previous part.
1
3. WinIDE 8086 Software
Using MDA-WinIDE8086 software and MDA-8086 user manual, answer the following
questions:
1- Now, In order to use MDA-Win IDE8086 program correctly with the KIT, we should
select the PC mode from SELECT MODE Switch. Why?
In order to give the access to program the kit using the computer.
2- After launching the program, there are 2 windows: editor window and Terminal
window. What is the purpose for each window?
Editor window: Source file is displayed in the editor window. The MDA-WinIDE8086 editor
automatically recognizes the syntax of C program and Assemble program.
computer management device manager ports (COM & LPT) port settings
advanced COM port number
1
6- What is the procedure used to execute any program in MDA-Win IDE 8086? (list in order)
1-write codes
2-Use RUN or TRACE to Execute any program.
7- Now apply the help command by typing ? to the terminal window. Explain the purpose of
this command.
Th purpose is to help us when we faced problems by give us some guidelines and instructions.
8- Use the Memory dump window to show the contents of 10 consecutive memory locations
starting from 01000. How to perform this? What are the contents?
After click memory dump bottom, fill the segment 0000 , offset 1000 ,and length 10
The contents are 0000:1000 12 34 12 34 12 34 12 34 – 12 34 12 34 12 34 12 34 .4.4.4.4.4.4.4
9- Use Data fill window to store the value 1234 into of 10 consecutive memory locations
starting from 01000 with the data. How to perform this? What is the new contents?
After click Fill Data bottom, fill the segment 0000, offset 1000 ,length 10, and data to 1234.
The new content is 0000:1000 0010 1234.
10- In the terminal window; use the command R ( ) to display Intel 8086 MP
registers. What if we want to display the contents of IP register only?
V. EXPERIMENT
EXCERCISES
Explain (with examples) how 8086 convert logical addresses to physical addresses.
Logical address is expressed as the location relative to the beginning of the program. It is
defined by the user of the microprocessor no need for calculation.
Physical address is defined as the actual location of the process in the main memory it is
allocated by the CPU.
Physical address = base address * 10h + offset address
For example:
The physical address of 7A32: 0028H is
7A32 * 10h = 7A320
7A320 + 0028 = 7A348 the physical address is 7A348.