You are on page 1of 41

Ex. No.

PASSWORD CHECKING

Aim: To write an ALP to perform Password checking

Apparatus Required:

PC,MASM Software
Start

In data Segment, Initialise original PW and array to store runtime input,


Authorized message and unauthorized message

In code segment ,Get runtime PW Characters one by one and store it in an array

Compare the runtime password stored in an array with already stored password

If equal

Display authorized message Display authorized message

Stop
Label Address Op code Mnemonic Comments

         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

         
Label Address Op code Mnemonic Comments

         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

Label Address Op code Mnemonic Comments


         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

Result:

Ex. No.6 COUNTERS AND TIME DELAY


Aim: To write an ALP to perform Counters and Time delay

Apparatus Required:

PC,MASM Software
Label Address Op code Mnemonic Comments
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

Result:

Exp.No.
PRINTER STAUS
AIM
To write an ALP using 8086 to interface printer

APPARATUS REQUIRED

8086 kit, Dot-matrix printer, printer cable


Start

Store the characters to be printed in the address pointed by SI register

Use in built subroutine to print the characters

Stop

Input Output
Address Data Data
Label Address Op code Mnemonic Comments

         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

Result:

Exp.No.
INTERFACING OF PROGRAMMABLE PERIPHERAL INTERFACE (PPI)

Aim:
To write an ALP to interface 8255- PPI in
(i) I/O mode 0 operation where port A acts as input and port B acts as output.
(ii) BSR mode to set and reset individual Port C bits

Apparatus required:

8086 kit,8255 PPI interface,50 core cable

Command Word Format:

I/O Command word:


D7 D6 D5 D4 D3 D2 D1 D0

I/O Mode of port Mode of port Port A Port Cu Port B Port CL


Mode B
/BSR A A i/p /o/p i/p /o/p i/p /o/p i/p /o/p
00-mode 0
1- I/O 1-i/p 1-i/p 0-mode 0 1-i/p 1-i/p
01-mode 1
0-BSR 0-o/p 0-o/p 1-mode1 0-o/p 0-o/p
1x-mode2

BSR Command word:


D7 D6 D5 D4 D3 D2 D1 D0

I/O
X X X PC2 PC1 PC0 S/R
/BSR
000-PC0 bit
001-PC1 bit
010-PC2 bit
1- I/O 011-PC3 bit 1-Set
Do not care bits
0-BSR 100-PC4 bit 0-Reset
101-PC5 bit
110-PC6 bit
111-PC7 bit
IO Mode of operation

Start

Send the IO command word (all ports as o/p port) to control register of 8255

Send the data to be displayed to port A

Stop

BSR Mode of operation

Start

Send the IO command word (all ports as o/p port) to control register of 8255

Send BSR command word to set PCx to control register of 8255

Stop

Label Address Op code Mnemonic Comments


         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

Result:

Exp.No.

INTERFACING OF SERIAL COMMUNICATION INTERFACE


Aim:
To write an ALP to interface 8251 and to perform kit to kit communication

Apparatus required:

8086 kit, 8251 USARTiinterface, RS 232 cable

Transmitter:
Label Address Op code Mnemonic Comments

         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
Label Address Op code Mnemonic Comments

         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

Result:

Ex.No. INTERFACING ADC WITH 8086


Aim : To interface ADC with 8086

Apparatus Required: 8086 microprocessor kit,ADC,(0-5)V power supply


Start

Send the IO command word (Port A,B as i/p ,Port C as o/p) to control register of 8255

Make ALE =1 for some time and make it 0

Enable SOC

Wait for EOC signal

If EOC==HIGH

Read i/p data through Port A


and Port B

Stop

Analog Voltage Digital output


Label Address Op code Mnemonic Comments

         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

Label Address Op code Mnemonic Comments

         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

Result:

Ex.No. WAVEFORM GENERATION USING DAC

Aim:
To generate triangular, sawtooth and square waveforms using DAC

Apparatus Required:
8086 microprocessor kit,,DAC ,CRO, Probe ,Interfacing cable

Sawtooth Waveform Generation:


Start

Initialize all ports of 8255 as output port.

Initialize Accumulator with 00h

Send to Port A

Increment Accumular

Amplitude
(v)

Time (ms)

Amplitude (v) Timeperiod(ms)


Label Address Op code Mnemonic Comments

         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
Start

Initial ize al l ports of 8255 as output port.

Initi ali ze Accumul ator wi th 00h

Send to Port A

Increment Accumular

Yes
If Acc content < FFh

No

Initi ali ze Accumul ator wi th FFh

Send to Port A

Decrement Accumul ar

Yes
If Acc content < 00h

No

Amplitude
(v)

Time (ms)

Amplitude (v) Timeperiod(ms)


Label Address Op code Mnemonic Comments

         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

Square Waveform Generation


Start

Initialize all ports of 8255 as output port.

Initialize Accumulator with 00h and send to port A


Set Count=FFh

Delay Decrement count

Initialize Accumulator with FFh and send to port A


If count!=0
No

Delay

Amplitude
(v)

Time (ms)

Amplitude (v) Timeperiod(ms)

Label Address Op code Mnemonic Comments


         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

RESULT

Ex.No. TRAFFIC LIGHT CONTROLLER

Aim:
To interface traffic light controller with 8086

Apparatus Required:
8086, Traffic light controller interface, Interfacing cable

I/O COMMAND WORD OF 8255

D7 D6 D5 D4 D3 D2 D1 D0
I/O Mode of Mode of Port A Port Cu Mode B Port B Port CL
/BSR port A port A i/p /o/p i/p /o/p i/p /o/p i/p /o/p
00-mode 0
1- I/O 1-i/p 1-i/p 0-mode 0 1-i/p 1-i/p
01-mode 1
0-BSR 0-o/p 0-o/p 1-mode1 0-o/p 0-o/p
1x-mode2

Label Address Op code Mnemonic Comments

         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

RESULT:

EX.NO. INTERFACING OF STEPPER MOTOR


Aim: To Write an ALP to interface a stepper motor with 8086.

Apparatus Required: 8086, Stepper motor interface kit, Stepper motor, power supplies and 25 pin
core cable.

I/O COMMAND WORD OF 8255

D7 D6 D5 D4 D3 D2 D1 D0
I/O Mode of Mode of Port A Port Cu Mode B Port B Port CL
/BSR port A port A i/p /o/p i/p /o/p i/p /o/p i/p /o/p
00-mode 0
1- I/O 1-i/p 1-i/p 0-mode 0 1-i/p 1-i/p
01-mode 1
0-BSR 0-o/p 0-o/p 1-mode1 0-o/p 0-o/p
1x-mode2

Label Address Op code Mnemonic Comments


         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

RESULT:

Exp.No. DIGITAL CLOCK DESIGN USING 8086.


AIM:
To write an ALP program for displaying the system clock.

APPARATUS REQUIRED:
8086 Microprocessor kit, Power supply
Label Address Op code Mnemonic Comments
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

Label Address Op code Mnemonic Comments


         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

RESULT:

Exp.No. KEYBOARD AND DISPLAY INTERFACING (8279)


Aim:
To perform rolling display using 8086

Apparatus Required:
8086 ,8279 interface, Interfacing cable
Label Address Op code Mnemonic Comments

         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

Label Address Op code Mnemonic Comments


         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

RESULT:

You might also like