0% found this document useful (0 votes)
43 views

International Islamic University Chittagong Department of Electrical and Electronic Engineering

report

Uploaded by

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

International Islamic University Chittagong Department of Electrical and Electronic Engineering

report

Uploaded by

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

International Islamic University Chittagong

Department of Electrical and Electronic Engineering


EEE-3506: Microprocessor and Interfacing Sessional

Experiment No. 08: Operation of Dot Matrix LED using PPI 8255A.

8.1 Objectives:
To load a program to interface 8086 with a Dot Matrix LED, execute the program
and verify the output.

8.2 Background
A dot-matrix display is an electronic digital display device that displays information on machines such
as clocks and watches, public transport departure indicators, and many other devices requiring a simple
alphanumeric (and/or graphic) display device of limited resolution.
An 8×8 matrix consists of 64 dots or pixels. There is a LED for each pixel and these LEDs are connected
to total of 16 pins.

Figure: 8x8 Dot Matrix Display

8.3 Circuit Diagram:

Figure 1: Internal Circuit Diagram of a Dot Matrix LED


Prepared by Dr. Sikder Sunbeam Islam & Engr. Mohammed Abdul Kader, Dept. of EEE, IIUC.
Figure 2: Dot Matrix LED Interface

In some MDA-8086 Red LEDs remain connected to PORTB instead of PORTA and vice versa.

Figure 3: Interface between 8255A ports and Dot Matrix LED


Prepared by Dr. Sikder Sunbeam Islam & Engr. Mohammed Abdul Kader, Dept. of EEE, IIUC.
8.4 Program:
Address for PORTs of 8255A
CODE SEGMENT
ASSUME CS: CODE, DS: CODE, ES: CODE, SS: CODE
;
PPIC_C EQU 1EH; Control Word
PPIB EQU 1AH
PPIA EQU 18H
PPIC EQU 1CH; PortC
;
ORG 1000H
MOV AL,10000000B
OUT PPIC_C, AL
;
MOV AL, 11111111B
OUT PPIA, AL
;
MOV AL, 00000000B
OUT PPIB, AL
;
L1: MOV AL, 00000001B
L2: OUT PPIC, AL
CALL TIMER
CLC
ROL AL, 1
JNC L2
JMP L1
;
TIMER:
;
MOV CX,1111111111111111B
TIMER1:
;
NOP
NOP
NOP
NOP
NOP
LOOP TIMER1
RET
CODE ENDS
END

8.5 Experiment Requirements:

1. 8086 microprocessor kit.


2. Assembler “MASM” and loader “LOD186”.
3. WinComm.

Prepared by Dr. Sikder Sunbeam Islam & Engr. Mohammed Abdul Kader, Dept. of EEE, IIUC.
8.6 Experiment Procedures:

1. Write the program in notepad and save the file as “filename.asm”. Place this file in the
folder where “masm.exe” exists.

2. Go to command prompt and execute “masm.exe”. You will see the following message
Microsoft (R) Macro Assembler Version 5.10
Copyright (C) Misrosoft Corp 1981, 1988. All right
reserved. Source filename [.ASM]:

3. Follow the procedure given below to prepare machine code for your program:

Source filename [.ASM]: filename Press ENTER

Object filename [C:filename.OBJ]: Press ENTER

Source listing [NUL.LST]: filename Press ENTER

Cross reference [NUL.CRF]: Press ENTER

4. Execute “LOD186.exe”. You will see the following message


Paragon LOD186 Loader-Version 4.0h
Copyright (C) 1983 - 1986 Microtec Research
Inc. ALL RIGHT RESERVED.

Object/Command File [.OBJ]:

5. Follow the procedure given below to prepare HEX (ABS) file for your
program: Object/Command File [.OBJ]: filename Press ENTER
Output Object File [C:filename.ABS]: Press
ENTER Map Filename [C:NUL.MAP]: Press ENTER
**LOAD COMPLETE

6. Turn on the 8086 microprocessor kit

7. Move the jumper as follows

8. Open the “Wincomm” window. Press “L” then “Enter”. You will see the following message:

** Serial Monitor 1.0 **


** Midas 335-0964/5 **
8086 >L Press
ENTER Down load
start!!

Prepared by Dr. Sikder Sunbeam Islam & Engr. Mohammed Abdul Kader, Dept. of EEE, IIUC.
9. Strike PgUp or F3 key of your keyboard. A new window will appear. Locate the
“filename.ABS”
file and open it.

10. You will observe that file download has started. A message like the following one will
be shown:

:14100000B800008ED88EC0BB00208B078A6F028A4F038BEBB6
:101014003E8B5604268B76068B7E088B1E0A20CCCC
:0E20000012345678ABCDF0146853B1C41020E2
:00000001FF
OK
completed!!
11. After loading the program, execute it.
12. Verify the output.

Questions:

a) Match the items on the left with the items on the right for the dot-matrix display in MDA-8086
trainer board.
Anodes of LEDs are connected with PORTC
Cathodes of GREEN LEDs are connected PORTB
with
Cathodes of RED LEDs are connected with PORTA
b) How many LEDs are there in dot-matrix display used in the MDA-8086 trainer board?
c) Which information’s in the following are correct?
i) MDA-8086 has two 8255 IC ii) 8255 is operated in MODE-0 during interfacing with
dot matrix display. iii) The matrix display used in MDA-8086 is a tri-colour LED display iv) In
all interfacing experiment we have used fixed port addressing.
d) Variable port addressing always use............register.
e) Find the content of PORTA and PORTB to glow the LEDs as indicated in figure. Suppose,
LED anodes are connected with PORTA and cathodes with PORTA.

f) Write the control word to interface dot-matrix display with 8255 in the blank space.
g) Which statements of the following are not correct for 8255?
i) Pin of PORTB is set or reset in BSR mode ii) 8255 has 8-bit data bus iii) PORTB can
operate in Mode 2 iv) 8086 sends control word to PORTC v) A0, A1 and CS pin define the
address of internal registers of 8255

Prepared by Dr. Sikder Sunbeam Islam & Engr. Mohammed Abdul Kader, Dept. of EEE, IIUC.

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