Sei sulla pagina 1di 22

 

GEETA ENGINEERING COLLEGE, NAULTHA, LABORATORY


PANIPAT MANUAL

EXPERIMENT NO: GEC-


EXPERIMENT TITLE: Study of 8086 microprocessor kit. LM-ECE-309N-01)

ISSUE NO : 001 ISSUE DATE 14-07-2016 REV NO: 002 REV DATE 26-07-2017
SEMESTER 5th
DEPARTMENT: ECE LABORATORY: MPI
:

AIM: Study of 8086 microprocessor kit.

APPRATUS: 8086 microprocessor kit.

THEORY:
M-8086 is a single board Microprocessor trainer Kit based on 16 bit 8086

Microprocessor, which is widely used to train engineers to develop software/hardware for

any industrial process & control. This kit Consists of power-full Monitor EPROM, RAM,

I/O Lines, Timer/Counter, Serial, Seven segment Display and Keyboard for Man to

machine Interface.

GENERAL DESCRIPTION:-
The kit communicates with the outside world through a keyboard

having 28 keys & 8 seven segment display. The kit also has the capacity of interacting with

tally typewriter & circuit terminal. VHC -8603 is packet up with powerful monitor in 16K byte

of factory programmed EPROM’S and 16 byte of read\write memory. The total memory on the

board can be easily expanded to 256k byte of EPROM & 128KB of CMOS RAM. The system

has 72 programmable I/O lines. It is provided various software commands like BLOCK, MOVE,

INSERT, DELETE etc. which are helpful in debugging /developing software. An on board line

assembler is also provided on VMC-8605.

1
CPU:-

8086 is a 16 bit, 3rd generation microprocessor and is suitable for an exceptionally wide

spectrum of microcomputer application. The flexibility is one of most outstanding

characteristics. 8086 has got 16 data lines & 20 address lines. The lower 16 address lines are

multiplexed with 16 data lines. Software written for one cpu will execute on the other without

alteration. An interrupt container circuit is provided to take care of more than one source of

interrupt.

CO-PROCESSOR 8087:-
Co-processor “hooks” have been designed into the 8086 & 8088 so

that this type of processor can be accommodated in the future. A co-processor in that it obtains

its instructions from another processor in that it obtain its instruction from another processor

called a host. Another processor in effect, extends the instruction set of its host computer.

I/O PROCESSOR 8089:-


The 8086 & 8088 are designed to be used with the 8089 in high

Performance I\O application. In addition it can transfer data on its own bus or on the system

bus can match 8-bit or 16-bit buses and on transfer data from m/m to m/m & from I/O to I/O

device.

CLOCK GENERATION:-
Clock generation circuit is an INTEL’S 8284 clock generator. The

circuit accepts crystals I/P which operates at a fundamental frequency at 14.7456khz was

selected since this frequency is a multiple of the band rate clock and also provides a suitable

freq. of CPU.
The clock generator provides two control signal O/P which are synchronized to the 4.9MHz

clock signal. RST is used to reset the VMC-8603 at an initialized state that occurs when the RES

2
I/P goes low.The VMC-8603 is supplied in 4.9 MHz configuration.

WAIT-STATE GENERATOR:-
Wait-state generator circuit allows wait states to be inserted

in to the CPU’S bus cycle. The wait state generator is cleared following every read, write or

interrupt cycle and is enable at the beginning of the interrupt cycle and enable at the beginning

of the next read, write or interrupt cycle. When the selected number (0-7) of shifts have occurred

the jumped O/P goes active which coupled to the RD4/I/P of the clock generator causes the clock

generator RD4 O/P to the CPU to go active.

BUS CONTROLLER:-
Bus controller which decodes status signal O/P by an 8089 or 8086

where these signal indicates that the processor is to run a bus cycle.

MEMORY:-
VHC-8603 provides 16 bytes of EPROM with monitor and 16k bytes of CMOS

RAM. The total memory is EPROM 64k bytes of EPROM using 128k bytes using 27256, 256k

bytes of EPROM using 27572.

RAM:-
128K bytes of RAM using 62256 with the 20 bit address of 8086, a total of 1 mega byte of

m/m can be addressed with the address slot as 00000 to FFFFF.

SELECTION OF M/M CHIPS:-


The VMC-8603 there are 8 m/m sockets namely memo to

MEM7. Memory sockets MEM-2, MEM-3, -----------MEM-7 are meant for RAM area 0,1,4,5 can

be defined to have either 27128/27256/2712. EPROM is a continous mapping. This selection of

chips of different type and capacity is done by selecting a suitable jumper.

3
I/O DEVICES:-

8279:-
8279 is a general purpose programmable keyboard and display. I/O interface device

designed for use with 8086 microprocessor. It provides a scanned interface to 28 contact key

matrix provide VMC-8603 and scanned display. 8279 also refreshes the display RAM

automatically.

8255:-
It is a PPI designed to use with 8086 microprocessor. This basically acts as a general

purpose I/O component to interface peripheral equipment to the system bus. It is not necessary

to have an external logic interface. Port C can be divided in to 2 ports of 4 lines each named as

port C upper and port C lower. The port address for these ports are given here, these ports are

brought out at connector C10,C9,C11.

8253:-
This chip is a programmable interval timer/counter and can be used for the generation

of accurate time delays under software control. This chip has got three independent 16-bit

counter each having a count rate of up to 2 MHz. The CLK, GATE & OUT signals of these

timer are brought out at the C5 connector.

8251:-
This chip is a programmable communication interface and is used as a peripheral device.

This device accept data character from the CPU in parallel form and then convert them in to a

continuous serial data stream for transmission. 8251 has been utilized in VMC-8603 for

main/AUX RS-232-C interface and 20MA current loop.

8259:-
8259 is a device specially, designed for use in real time, interrupt driven micro computer

system. It manages 8 level of requests. The priority modes can be changed or reconfigured

4
dynamically at any time during the main program.

DISPLAY:-

VMC-8603 provides 8 digit of 7-segment display. 4 digit are for displaying the

address of any location or name or any register, where as the reset of the four digit are meant

for displaying the content of memory location or of a register. All the eight digit of the display

are in hexadecimal notation.

RESULT:-
We have studied microprocessor 8086 kit.

5
 
GEETA ENGINEERING COLLEGE, NAULTHA,
LABORATORY MANUAL
PANIPAT

EXPERIMENT TITLE: Write a program to add two binary numbers


EXPERIMENT N0: GEC-
each 8 byte long. LM-ECE-309N-02

ISSUE NO : 001 ISSUE DATE 14-07-2016 REV NO: 002 REV DATE 26-07-2017
5th
DEPARTMENT: ECE LABORATORY: MPI SEMESTER:

AIM: Write a program to add two binary numbers each 8 byte long.

APPRATUS: 8086 microprocessor kit.

CODE :

Address Op-code Mnemonics Comments

0200 F8 CLC Clear carry flag.

0201 B9 04 00 MOV CX 0004 Load counter register with no. of


times addition to be performed.

0204 BE 00 03 MOV SI,0300 Load source index register with


starting add. Of first binary no.

0207 BF 08 03 MOV DI,0308 Load destination index reg. with


destination add(where the result of
add. Is to be started storing). Also
it’s the starting add. Of MSB array.

020A 8B 04 MOV AX,{SI} Load data bytes(which are in


location 0300 and 0301,in 16 bit
acc. i.e.(0300)-AH (0301)-AL

020C 11 05 ADC {DI},AX Add the contents (MS BYTES) of


0308, 0309 with the contents (LS
bytes) of 0300+0301 and store the
result in location 0308 onwards.

6
020E 46 INC SI Point at 0302 LOCN (next relevant
sources LOCN)
020F 46 INC SI

0210 47 INC DI Point at next relevant LOCN,i.e.


0211 47 INC DI 0304.

0212 49 DEC CX Decrement the counter.

0213 75 F5 JNZ 020A If not zero (i.e. CX =0000) then


continue addition.

0215 F4 HLT ELSE, Halt.

DATA INPUT :- DATA OUTPUT :-

0300 : 01 0308 : 0A 0308 : 0B


0301 : 02 0309 : 0B 0309 : 0D
0302 : 03 030A : 0C 030A : 0F
0303 : 04 030B : 0E 030B : 12
0304 : 05 030C : 0F 030C : 14
0305 : 06 030D : 10 030D : 16
0306 : 07 030E : 11 030E : 18
0307 : 08 030F : 12 030F : 1A

 
GEETA ENGINEERING COLLEGE, NAULTHA,
LABORATORY MANUAL
PANIPAT

7
EXPERIMENT NO: GEC-
EXPERIMENT TITLE: To sort a string of no. of bytes in descending
LM-ECE-309N-03
order.

ISSUE NO : 001 ISSUE DATE 14-07-2016 REV NO: 002 REV DATE 26-07-2017
5th
DEPARTMENT: ECE LABORATORY: MPI SEMESTER:

AIM: To sort a string of no. of bytes in descending order.

APPRATUS: 8086 microprocessor kit.

CODE :

Address Op-code Mnemonics Comments

0200 BE 00 03 MOV SI,0300 Initialize SI reg. with mem LOCN


0300.
0203 8B 1C MOV BX, {SI} BX has the no. of bytes (to be used
for sorting) LOCNS 0300&0301.

0205 4B DEC BX Decrement the no. of bytes by one.

0206 8B 0C MOV CX,{SI} Also CX has the no. of bytes in


LOCNS 0300 and 0301.

0208 49 DEC CX Decrement the no. of bytes by one.

0209 BE 02 03 MOV SI,0302 Initialize SI reg. with the starting


address of string ( having data
bytes).
020C 8A 04 MOV AL, {SI} Move the first data byte of string
into AL.

020E 46 INS SI Point at the next bytes of the string.

020F 3A 04 COMP AL,{SI} Compare the two bytes of string in


to AL.

8
0211 73 06 JAE 0219 If two bytes are equal or Ist byte is
above that the second byte branch
(1).

0213 86 04 XCHG AL, {SI} Else to.

0215 4E DEC SI Second byte is less than first byte


and swap (interchange) the two
bytes.

0216 88 04 MOV {SI},AL

0218 46 INC SI Point at the next LOCN of the


string.

0219 E2 F1 LOOP 020C Loop if CX is not zero (i.e.


continue processing till z=0)

021B 4B DEC BX At this juncture, first sorting will be


over i.e. first no. is logically.

021C BE 00 03 MOV SI,0300 Compared with the rest of the nos.


for the correct sorting, all the nos.
must be compared with each other
logically,i.e. above processing
should be carried out no. of bytes
times.

021F 75 E5 JNZ 0206

0221 F4 HLT HALT.

DATA INPUT:- DATA OUTPUT:-

0300 : 05 (i.e. 5 nos. are to be placed 0302 : 28

9
0301 : 00 in descending order.) 0303 : 25
0302 : 20 0304 : 20
0303 : 25 0305 : 15
0304 : 28 0306 : 07
0305 : 15
0306 : 07

 
GEETA ENGINEERING COLLEGE, NAULTHA,
LABORATORY MANUAL
PANIPAT

10
EXPERIMENT TITLE: To sort a string of no. of bytes in ascending EXPERIMENT NO: GEC-
order. LM-ECE-309N-04

ISSUE NO : 001 ISSUE DATE 14-07-2016 REV NO: 002 REV DATE 26-07-2017
5th
DEPARTMENT: ECE LABORATORY: MPI SEMESTER:

AIM: To sort a string of no. of bytes in ascending order.

APPRATUS: 8086 microprocessor kit.

CODE :

Address Op-code Mnemonics Comments

0200 BE 00 03 MOV SI,0300 Initialize SI reg. with mem LOCN


0300.
0203 8B 1C MOV BX, {SI} BX has the no. of bytes (to be used
for sorting) LOCNS 0300&0301.

0205 4B DEC BX Decrement the no. of bytes by one.

0206 8B 0C MOV CX,{SI} Also CX has the no. of bytes in


LOCNS 0300 and 0301.

0208 49 DEC CX Decrement the no. of bytes by one.

0209 BE 02 03 MOV SI,0302 Initialize SI reg. with the starting


address of string ( having data
bytes).
020C 8A 04 MOV AL, {SI} Move the first data byte of string
into AL.

020E 46 INS SI Point at the next bytes of the string.

020F 3A 04 COMP AL,{SI} Compare the two bytes of string in


to AL.

11
0211 76 06 JAE 0219 If two bytes are equal or Ist byte is
above that the second byte branch
(1).

0213 86 04 XCHG AL, {SI} Else to.

0215 4E DEC SI Second byte is less than first byte


and swap (interchange) the two
bytes.

0216 88 04 MOV {SI},AL

0218 46 INC SI Point at the next LOCN of the


string.

0219 E2 F1 LOOP 020C Loop if CX is not zero (i.e.


continue processing till z=0)

021B 4B DEC BX At this juncture, first sorting will be


over i.e. first no. is logically.

021C BE 00 03 MOV SI,0300 Compared with the rest of the nos.


for the correct sorting, all the nos.
must be compared with each other
logically,i.e. above processing
should be carried out no. of bytes
times.

021F 75 E5 JNZ 0206

0221 F4 HLT HALT.

DATA INPUT:- DATA OUTPUT :-

0300 : 05 (i.e. 5 nos. are to be placed 0302 : 07

12
0301 : 00 in ascending order.) 0303 : 15
0302 : 20 0304 : 20
0303 : 25 0305 : 25
0304 : 28 0306 : 28
0305 : 15
0306 : 07

GEETA ENGINEERING COLLEGE, NAULTHA,


LABORATORY MANUAL
PANIPAT

13
EXPERIMENT TITLE: Write a program to move a block of data EXPERIMENT NO: GEC-
(byte) from location 0202 to 0302. LM-ECE-309N-05

ISSUE NO : 001 ISSUE DATE 14-07-2016 REV NO: 002 REV DATE 26-07-2017
5th
DEPARTMENT: ECE LABORATORY: MPI SEMESTER:

AIM: Write a program to move a block of data (byte) from location 0202 to 0302.

APPRATUS: 8086 microprocessor kit.

CODE :

Address Op-code Mnemonics

0101 BE 00 02 MOV SI, 200H

0104 BE 02 03 MOV DI, 0302

0107 8B 0C MOV CX, {SI}

0109 46 INC SI

010A 46 INC SI

010B F2 REP

010C A4 MOV SB

010D F4 HLT

14
DATA INPUT :- DATA OUTPUT:-

0200 : 05 (COUNT) 0302 : 94H


0201 : 00 (COUNT) 0303 : 86H
0202 : 94H 0304 : 25H
0203 : 86H 0305 : 78H
0204 : 25H 0306 : 69H
0205 : 78H
0206 : 69H

15
GEETA ENGINEERING COLLEGE, NAULTHA,
LABORATORY MANUAL
PANIPAT

EXPERIMENT TITLE: A data string of number of bytes (to be specified in


EXPERIMENT NO: GEC-
cx reg.) is located from the starting address 0300 this data string is to be
LM-ECE-309N-06
converted to its equivalent 2’s complement form and result is to be stored
from 0400 on words
ISSUE NO : 001 ISSUE DATE 14-07-2016 REV NO: 002 REV DATE 26-07-2017
5th
DEPARTMENT: ECE LABORATORY: MPI SEMESTER:

AIM: A data string of number of bytes (to be specified in cx reg.) is located from the starting
address 0300 this data string is to be converted to its equivalent 2’s complement form and
result is to be stored from 0400 on words

APPRATUS: 8086 microprocessor kit.

CODE :

16
Address Op-code Mnemonics Operands
0200 BE 00 03 MOV SI, 03 00
0203 BE 00 04 MOV DI, 04 00
0206 B9 10 00
0209 AC LODS B
020A F6 NEG AL
 
020B D8ENGINEERING COLLEGE, NAULTHA,
GEETA
LABORATORY MANUAL
PANIPAT
020C AA ST 05 B
020D F0 LOOP N NI 02 09
EXPERIMENT TITLE: Write a program to find the power of a EXPERIMENT NO: GEC-
020Eraised to a givenFA
number number. LM-ECE-309N-07
020F F4 HLT
ISSUE NO : 001 ISSUE DATE 14-07-2016 REV NO: 002 REV DATE 26-07-2017
5th
DEPARTMENT: ECE LABORATORY: MPI SEMESTER:

AIM:
DATA Write a program
INPUT :- to find the power of a number raised
DATAto a OUTPUT
given number.
:-
0300 : 01 0400 : FF
APPRATUS:
0301 : 028086 microprocessor kit. 0401 : FE
0302 : 03 0402 : FD
CODE
0303 : : 04 0403 : FC
0304 : 05 0404 : FB
0305 : 06 0405 : FA
0306 : 07 0406 : F9
Address
0307 : 08 Op-code Mnemonics
0407 : F8 DATA
0308 : 09 0408 : F7 INPUT :-
0200: 0A
0309 BE 00 03 MOV0409
SI, 0300H
: F6 DATA
030A : 0B 040A : F5 OUTPUT:-
030B
0203: 0C BE 02 03 MOV040B : F4
DI, 0302H
030C : 0D 040C : F3 0300 :
030D
0205: 0E 8B 00 (0B) 040D
MOV CX, [DI] : F2 02
030E : 0F 040E : F1 0300 :
030F : 10 040F : F0 08
0208 49 DEC, CX
0301 :
00
0209 8B 04 MOV AX, [SI] 0301 :
00
020B 89(B9) D8 MOV BX, AX 0302 :
03
020D F7 FC BACK MVL, BX,AX 0304 :
00
020F 49 DEC CX

0210 75 (4) FB INC CX

0212 89 84 MOV [SI], AX


17
0214 F4 HLT
 
GEETA ENGINEERING COLLEGE, NAULTHA,
LABORATORY MANUAL
PANIPAT

EXPERIMENT NO: GEC-


EXPERIMENT TITLE: Write a program to find the largest no 8-bit no in
LM-ECE-309N-08
an 8-bit array.

ISSUE NO : 001 ISSUE DATE 14-07-2016 REV NO: 002 REV DATE 26-07-2017
5th
DEPARTMENT: ECE LABORATORY: MPI SEMESTER:

18
AIM: Write a program to find the largest no 8-bit no in an 8-bit array.

APPRATUS: 8086 microprocessor kit.


.
CODE :

DATA INPUT :- DATA OUTPUT :-

Address Op-code Mnemonics Operands


0200 -
0101 B0 00 MOV AL, 0000 06
0251 -
0103 BE 00 02 MOV SI 0200 B9H
0201 -
0106 8B 0C MOV CX {SI } 00
0202 -
0108 46 INC SI 54H
0203 -
0109 46 BACK INC SI 83H
0204 -
59H
010A 3A 04 CMP AL {SI}
0205 -
A2H
010C 73 02 JAE GO 0206 -
86H
010E 8A 04 MOV AL {SI} 0207 -
B9H
0110 E2 F7 GO LOOP BACK

0112 A2 51 02 MOV {0251},AL

0115 F4 HLT

19
 
GEETA ENGINEERING COLLEGE, NAULTHA,
LABORATORY MANUAL
PANIPAT

EXPERIMENT TITLE: Write a program to find the sum of a series of 16- EXPERIMENT NO: GEC-
bit no. LM-ECE-309N-09

ISSUE NO : 001 ISSUE DATE 14-07-2016 REV NO: 002 REV DATE 26-07-2017
5th
DEPARTMENT: ECE LABORATORY: MPI SEMESTER:

AIM: Write a program to find the sum of a series of 16-bit no.

APPRATUS: 8086 microprocessor kit.

CODE :

20
Address Op-code Mnemonics Operands

0101 B8 00 00 MOV AX,0000

0104 BE 01 02 MOV SI,0201

0107 8B 0C (06) MOV CX,{SI}

0109 46 BACK INC SI

010A 46 INC SI

010B 03 04 ADD AX,{SI}

010D E2 FA LOOP BACK

010F A3 01 03 MOV [0301],AX

0112 F4 HALT

DATA INPUT:- DATA OUTPUT :-

0201 : 03 0301 : 8EH


0202 : 00 0302 : D7H
0203 : 93H
0204 : 58H
0205 : 61H
 
0206 : 3BH GEETA ENGINEERING COLLEGE, NAULTHA,
0207 : 9AH LABORATORY MANUAL
PANIPAT
0208 : 43H

EXPERIMENT TITLE: Write a program to divide a string of unpacked EXPERIMENT NO: GEC-
ASCII digit. LM-ECE-309N-1

ISSUE NO : 001 ISSUE DATE 14-07-2016 REV NO: 002 REV DATE 26-07-2017
5th
DEPARTMENT: ECE LABORATORY: MPI SEMESTER:

AIM: Write a program to divide a string of unpacked ASCII digit.

APPRATUS: 8086 microprocessor kit.

21
CODE :

Address Op-code Mnemonics Operands


0200 B2 B6 MOV DL,36
0202 BE 00 03 MOV SI, 03, 00
0205 B9 08 03 MOV DI, 03 08

0208 80 E2 0F MOV CX, 00 08

020B 32 E4 0F AND DL, 0F


020E 32 E4 XOR AH,AH

0210 AC LODS B

0211 80 E0 0F AND AL,0F

0214 D5 0A AAD

0216 F6 E2 DIV DL
0218 AA STOS B

0219 E0 F5 LOOP NZ 0210


021B F4 HLT

DATA INPUT:- DATA OUTPUT:-

0300 : 31 0308 : 00
0301 : 32 0309 : 02
0302 : 33 030A : 00
0303 : 34 030B : 05
0304 : 35 030C : 07
0305 : 36 030D : 06
0306 : 31 030E : 00
0307 : 32 030F : 02

22

Potrebbero piacerti anche