Professional Documents
Culture Documents
Part 2 Interfacing
Part 2 Interfacing
PASSWORD CHECKING
Apparatus Required:
PC,MASM Software
Start
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
Stop
Label Address Op code Mnemonic Comments
Label Address Op code Mnemonic Comments
Result:
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
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:
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
Stop
Start
Send the IO command word (all ports as o/p port) to control register of 8255
Stop
Result:
Exp.No.
Apparatus required:
Transmitter:
Label Address Op code Mnemonic Comments
Label Address Op code Mnemonic Comments
Result:
Send the IO command word (Port A,B as i/p ,Port C as o/p) to control register of 8255
Enable SOC
If EOC==HIGH
Stop
Result:
Aim:
To generate triangular, sawtooth and square waveforms using DAC
Apparatus Required:
8086 microprocessor kit,,DAC ,CRO, Probe ,Interfacing cable
Send to Port A
Increment Accumular
Amplitude
(v)
Time (ms)
Start
Send to Port A
Increment Accumular
Yes
If Acc content < FFh
No
Send to Port A
Decrement Accumul ar
Yes
If Acc content < 00h
No
Amplitude
(v)
Time (ms)
Delay
Amplitude
(v)
Time (ms)
RESULT
Aim:
To interface traffic light controller with 8086
Apparatus Required:
8086, Traffic light controller interface, Interfacing cable
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
RESULT:
Apparatus Required: 8086, Stepper motor interface kit, Stepper motor, power supplies and 25 pin
core cable.
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
RESULT:
APPARATUS REQUIRED:
8086 Microprocessor kit, Power supply
Label Address Op code Mnemonic Comments
RESULT:
Apparatus Required:
8086 ,8279 interface, Interfacing cable
Label Address Op code Mnemonic Comments
RESULT: