0% found this document useful (0 votes)
102 views6 pages

Exp 2 - MDA 8086

Uploaded by

mdzaman21024021
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
102 views6 pages

Exp 2 - MDA 8086

Uploaded by

mdzaman21024021
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

BANGABANDHU SHEIKH MUJIBUR

RAHMAN AVIATION AND AEROSPACE


UNIVERSITY
(BSMRAAU)
Microprocessor and Microcontroller Sessional

Experiment No. 02: Interfacing of LED with MDA-8086 Microprocessor

Objectives: The objectives of this experiment are-

a) To interface LED with 8086 microprocessor by 8255 PPI


b) Internal connection of 8255 PPI with 8086 microprocessor

Connection Diagram:

Figure 1: Pin diagram and Connection of

Page 1 of 3
8255

Page 2 of 3
Figure 2: LED Connection

Port Connection Bus :


18H~ 1FH 8255A- CS1/ 8255A-CS1(DOT & ADC INTERFACE)
8255A-CS2 18H : A PORT DATA REGISTER
1AH : B PORT DATA REGISTER
1CH : C PORT CONTROL REGISTER
8255-CS2(LED & STEPPING
MOTOR)
19H : A PORT DATA REGISTER
1BH : B PORT DATA REGISTER
1DH : C PORT CONTROL REGISTER
1FH : CONTROL REGISTER

Page 3 of 3
Control Word for LED Interfacing:
D7 D6 D5 D4 D3 D2 D1 D0 Control
word

If D7=0, BSR Mode If D7=1, I/O Mode

Mode 0 Mode 1 Mode 2

Page 4 of 3
Instructions/Program:

CODE SEGMENT
ASSUME CS:CODE,DS:CODE,ES:CODE,SS:CODE
;
PPIC_C EQU 1FH
PPIC EQU 1DH
PPIB EQU 1BH
PPIA EQU 19H
;
ORG 1000H
MOV AL,10000000B
OUT PPIC_C,AL
;
L1: MOV AL,00000001B
OUT PPIB,AL
CALL DELAY
MOV AL,00000000B
OUT PPIB,AL
CALL DELAY
JMP L1
DELAY: MOV CX,1111111111111111B
TIMER1: NOP
NOP
NOP
NOP
LOOP TIMER1
RET ;
CODE ENDS
END

Experiment Procedures:

1. Turn on the 8086 microprocessor kit


2. Write the codes in the MDA Winide-8086 compiler software
3. Press the load button (AL) in MDA winide-8086 Software
4. To execute the program press G in Terminal Windows then press Enter button.

Page 5 of 3
Home Work:
1. Create a new code where all the LEDs will turn on at the same time and after a while all
the LEDs will turn off.
2. Create a code where LEDs one and two are on while LED three and LED four are off and after
a while LED three and four are on while LED one and two are off.

Reference Book:
Assembly Language programming and Organization of the IBM PC
By Ytha Yu and Charles Marut

Page 6 of 3

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy