0% found this document useful (0 votes)
296 views5 pages

7 Segment Report

This document describes an experiment to display the digits 0-9 on a 7-segment display using an 8086 microprocessor module. The objective is to write a program that interfaces with the 7-segment display via the 8255 peripheral interface. It provides the pin configurations and hex/binary values needed to turn on the required segments to display each digit. The process involves connecting the module to a PC, writing the code in MDA-WinIDE8086 software to output the digit values to the 8255 ports, compiling and running the code to display the output on the 7-segment display. Communication between the 8086 and display is achieved simply through input/output methods using the 8255 interface.
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)
296 views5 pages

7 Segment Report

This document describes an experiment to display the digits 0-9 on a 7-segment display using an 8086 microprocessor module. The objective is to write a program that interfaces with the 7-segment display via the 8255 peripheral interface. It provides the pin configurations and hex/binary values needed to turn on the required segments to display each digit. The process involves connecting the module to a PC, writing the code in MDA-WinIDE8086 software to output the digit values to the 8255 ports, compiling and running the code to display the output on the 7-segment display. Communication between the 8086 and display is achieved simply through input/output methods using the 8255 interface.
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/ 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.

You might also like