Mpi Report
Mpi Report
Group Members:
Table of Contents
S. No. Description Pg. No.
1 Abstract 2
5 Simulation Results 6
6 Conclusion 7
ABSTRACT:
The microprocessor can communicate with a wide range of digital and analogue devices. A
microprocessor is a complete CPU on a single chip that is compact and powerful and is used
in a variety of applications. To perform the interfacing, the required circuitry and software are
required. Before connecting a circuit or device to a microprocessor, the terminal
characteristics of the microprocessor and its associated interfacing components must be
understood. In a microprocessor, interfacing is simply an integrated circuit that performs the
fundamental functions of the central processing unit. It enables the user to interact with the
computer. Microprocessors come in a variety of configurations. The number of bits that their
ALU can work with is a common way of categorising microprocessors. The number of bits
their ALU can work with at one time is a common way of categorizing microprocessors.
A 16-bit microprocessor is a microprocessor with a 16-bit ALU. A classic example of a 16-
bit microprocessor is the 8086 microprocessor. The interfacing of a multiplexed seven
segment display with the 8086 Microprocessor is the state of the art presented in this paper.
The assembly language programme was created and designed to display the the decimal
values from 0 till 9 on the 7 segment cathode display in a loop that means it will continue
repeating it's values again and again.
Achievement:
The interfacing of the 7 segment cathode display with the 8086 microprocessor was done on
both the hardware and software basis. On the software, proteus simulation was performed
that involved the 8086, 74HC373 and 7 segment cathode display showing the working of the
interfacing. For more practical achievement, we designed a hardware including 8086, 8 bit
latch 74373, 8284 clock of 5mhz, buffer 74244, 74245, 8255A programmable I/O, Capacitor
of 10 micro farad and 22 pico farad, quartz crystal and 7 segment cathode display.
PIN Configuration:
Pin 9 GND is grounded.
Pin 18 VCC is connected to 5V.
Pin 1 CSYNC is also grounded.
Pin 8 CLK provide clock to 8086.
Pin 30 F/C (bar) is also grounded.
Pin 17 and 16 X1, X2 is connected to the 15 MHz quartz crystal through 2 capacitors
of 22 pF.
Pin 11 RES(bar) to the RESET circuitry.
Pin 10 RESET is connected to 8086 RESET.
8086 Microprocessor:
It consist of 40 pins.
VCC – Pin number 40 – At this pin, the external power supply of + 5V is provided to
the processor.
GND – Pin number 1 and 20 – These two pins acts as the ground. This pin directs the
AD0 – AD15 – Pin number 2 to 16 and 39 – These are the multiplexed address and
data bus.
74373 (Latch):
It is a 20 pin D-Latch, in which there are 8 input pins and 8 output pins.
The IC 74LS373 is a transparent latch consists of a eight latches with three state
input data lines (D0-D7) and eight output lines (O0-O7). The OE pin was meant for
74245 (buffer)
Pin configuration
1 Direction Control (DIR): This pin decides the direction of the Data.
2 to 9 Data Input/output (A0-A7): These 8 pins can be used as 8-bit Input or 8-bit Output
11 to 18 Data Input/output (B0-B7): These 8 pins can be used as 8-bit Input or 8-bit Output
74138 (Decoder)
Pin1 (A): Address input pin
Pin2 (B): Address input pin
Pin3 (C): Address input pin
Pin4 (G2A’/E1’): Active low enable pin
Pin5 (G2B’/E2’): Active low enable pin
Pin6 (G1’/E3’): Active high enable pin
Pin7 (Y7): Output pin
Pin8 (GND): Ground pin
Pin9 (Y6): Output pin 6
Pin10 (Y5): Output pin 5
Pin11 (Y4): Output pin 4
Pin12 (Y3): Output pin 3
Pin13 (Y2): Output pin 2
Pin14 (Y1): Output pin 1
Pin15 (Y0): Output pin 0
Pin16 (VCC): Power supply pin
2816 (EEPROM):
1 A7 - Address Input
2 A6 - Address Input
3 A5 - Address Input
4 A4 - Address Input
5 A3 - Address Input
6 A2 - Address Input
7 A1 - Address Input
8 A0 - Address Input
12 GND - Ground
18 CE - Chip Enable
20 OE - Output Enable
21 WE - Write Enable
22 A9 - Address Input
23 A8 - Address Input
8255A (PPI)
RD bar read
WR bar write
GND -- ground
VCC -- 5 volts
GND ground
COM ground
ASSEMBLY LANGUAGE PROGRAM:
DATA SEGMENT
CODE EXPLAINATION:
In the Data segment we define our ports with their addresses for example
port A= 00H
port B= 02H
port C= 04H
port CON= 06H
In code segment we start to perform our coding for example
MOV AX,DATA this tells us that to move our data which is defined above as
ports into AX register.
MOV DS, AX in this instruction we move our data from AX into DS (data
segment)
ORG 0000H indicates the origin of our code and START instruction is given to
start from the origin.
MOV DX, PORT_CON is the instruction given to move the address of port
CON (06H) into the DX register.
MOV AL, 10000000H is given to move 10000000H into the AL register.
JMP XX is the instruction given to Jump directly into the XX portion of the
code.
In XX we display our values from 0-9 with delay.
JMP START instruction is given to jump back to the start point so the code
starts to re-execute.
CODE END indicates the end of the code
END indicates the end of the assembly language program.
SIMULATION RESULTS:
The interfacing of the 7 segment cathode display with the 8086 microprocessor was done on
both the hardware and software basis. On the software, proteus simulation was performed
that involved the 8086, 74HC373 and 7 segment cathode display showing the working of the
interfacing. For more practical achievement, we designed a hardware including 8086, 8 bit
latch 74373, 8284 clock of 5mhz, buffer 74244, 74245, 8255A programmable I/O, Capacitor
of 10 micro farad and 22 pico farad, quartz crystal and 7 segment cathode display.