Vous êtes sur la page 1sur 5

SHAHJALAL UNIVERSITY OF SCIENCE AND TECHNOLOGY

DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING

Course Title: Computer interfacing and industrial automation Lab


Course Code: EEE-424
Experiment No.:
Experiment Name: Write a program to display the digits in decimal, from 0-9 into 7-

segment using the module.


Date of Submission: November 30, 2014

Submitted to:
Md. Rasedujjaman
Assistant Professor,
Department of Electrical and Electronic Engineering,
Shahjalal University of Science and Technology.

Submitted by: GroupJibesh Kanti Saha


Reg. No.: 2010338014
4th Year 1st Semester
Department of Eletrical and Eletronic Engineering,
Shahjalal University of Science and Technology.

Objective:
The main objective of this experiment is to write a program in the software
provided for the module MDA-Win8086 and display digits 1-9 in the 7segment of the module.
Understanding the interface between the 7-segment and 8086 and how they
works.

Theory:
Interfacing:

The 7 segment inside the MDA 8086 trainer kit can be used to display
numbers.
This requires PIO 8255 ports which are already connected to the 7 segment
internally.
Through the code we can access these ports and provide binary or hex
value to switch the required segment on and off.
In order to turn a segment ON, a logical 0 is required as shown below. So
the 7 segment is Common Anode (CA).

Any number from 0 9 can be display on the 7 segment by providing the


actual hex or binary value which turns those segments ON to display the
digit.

dp

Decimal hex

C0

F9

A4

B0

99

92

82

1
1

1
0

1
0

1
0

1
0

0
0

0
0

0
0

7
8

F8
80

90

The interfacing circuit of the 7-segment and the 8086 via the PPI 8255A:

Process:
Connected the kit with the PC and set the kit in PC mode.
Opened the MDA-WinIDE8086 program.
Wrote the code on the editor window.
Complied and ran the code.
Output was shown in the 7-segment of of the module.
In this experiment we operated the 8255 in Mode-0 where all 3 ports (PortA, port-B and port-C) are set as output port by inputting proper control
word in the control register.
In mode-0 the imput data at once is shown in the output. So when the code is
executed, the data is accordingly transferred to output (7-segment display) in
parallel lines.

Discussion:
The communication between 8086 and 7-segment is done by simple I/O
method via the peripheral interface device 8255A. In this method the 8086
sends data assuming 7-segment is always ready to receive the byte. This is
the simplest form of data transfer between a microprocessor and a peripheral
device.

Vous aimerez peut-être aussi