Sunteți pe pagina 1din 10

8086 HOW-TO GUIDE

Interfacing 8251 with


8086
Contents at a Glance

8086 Trainer Board ..........................................................3


8251 (USART)...................................................................3
Interfacing 8251 with 8085 ..............................................4
Pin Assignment with 8086 ................................................5
Circuit Diagram to Interface 8251 with 8086 ....................6
Assembly program to interface 8251 with 8086................7

Join the Technical Community Today! http://www.pantechsolutions.net


8086 Trainer Board

The 8086 trainer kit is specifically designed to help


students to master the required skills in the area of
embedded systems. The kit is designed in such way that all
the possible features of the microprocessor will be easily
used by the students. MICROPROCESSOR offers more
advantages than conventional discrete hardwired logic
circuits. The major advantage is its programmability to adapt
to different environment and in addition it reduces the PCB
space.

8251 (USART)
The RS232C interface of PS-TIMER & USART
comprises of the universal synchronous/asynchronous
receiver/transmitter 8251 (USART), RS232C driver max 232.

The 8251A is used here as a peripheral device for serial


communication and is programmed by the CPU to operate

Join the Technical Community Today! http://www.pantechsolutions.net


using virtually any serial data transmission technique. The
USART accepts data characters from the CPU in parallel
format and then converts them into a continuous serial data
stream for transmission. Simultaneously, it can receive serial
data streams and convert them into parallel data characters
for the CPU. The CPU can read the status of the USART at any
time. These include data transmission errors and control
signals.

Interfacing 8251 with 8085

Microprocessor don’t have the direct serial


communications, so to communicate the data serially to a
device we need a driver to send a character serially, here we
use 8251. 8251 is a driver which converts the parallel data to
a serial data the pin detail and control pins are given so
according to that we can develop the hardware.

Obviously, 8251 is not directly compatible with these


signal levels. Standard method to interfaceRS232C and TTL

Join the Technical Community Today! http://www.pantechsolutions.net


levels is with MC1488 quad TTL-to-RS232C drivers and
MC1489 quad RS232C-to-TTL receivers. Of the 25 handshake
signals provided by the RS232C standard, we will discuss only
four signals which are used in our design. They are the RTS,
CTS, RxD and TxD signals.

Pin Assignment with 8086

8085 8255 8255 PIN DIAGRAM

13 A1
29 RD
CONTROL L LINES

30 WR
24 CLK
3 RST
From
CS
decoder
12 D0
13 D1
8255 – DATA LINES

14 D2
15 D3
16 D4
17 D5
18 D6
19 D7

VCC 40 26 Address line and data lines are Decoded


20 7 using Latch
GND

Join the Technical Community Today! http://www.pantechsolutions.net


Circuit Diagram to Interface 8251 with 8086

VCC
VCC C1 C8
P1
0.1UF
5
U2 9

16
22MF 4
U1
26

8251 14 8 10
T1OUT

VCC
9 3
R2OUT
VCC

D7 8 23 R1OUT12 8 7 11
D6 7 D7 RTS 17 T1IN 11 R1OUT R2IN 2
D5 6 D6 CTS 10 T1IN 13 6
D4 5 D5 7 T2IN R1IN 1
D3 2 D4 T2OUT VCC
1 D3 C3
D2
D1 28 D2 22 2 COM2
MAX232
D0 27 D1 DSR V+
22MFD
PCLK 20 D0 14 5
21 CLK RXRDY C2- C4
RST
WR 10 RESET 4
RD 13 WR C2+
22MFD
11 11 RD 19 T1IN 3
12 CS TXD 3 C1- C5
19 R1OUT
GND

15 C/D RXD 1
V-

16 15 C1+
18 16 9 22MFD
6
15
GND

24 18 TXC 25 OUT2
24 RXC C6
4

22MFD

Join the Technical Community Today! http://www.pantechsolutions.net


Assembly program to interface 8251 with 8086
***************************************************************************************
Title : to transmit a character from 8251 to the HyperTerminal using 8086
***************************************************************************************

MEMORY OPCODE PNEMONICS


1100 Be 00 15 MOV SI,1500H
1103 B0 36 MOV AL,36H
1105 BA 06 FF MOV DX,FF06
1108 EE OUT DX,AL
1109 B0 40 MOV AL,40H
110B BA 04 FF MOV DX,FF04
110E EE OUT DX,AL
110F B0 01 MOV AL,01H
1111 BA 04 FF MOV DX,FF04
1114 EE OUT DX,AL
1115 B1 05 RELOAD: MOV CL,05H
1117 BA 12 FF CHECK: MOV DX,FF12
111A EC IN AL,DX
111B 24 02 AND AL,02H
111D 74 F8 JZ CHECK
111F BA 10 FF MOV DX,FF10
1122 EC IN AL,DX
1123 88 04 MOV [SI],AL
1125 46 INC SI
1126 3C 3F CMP AL,3FH
1128 75 EB JNZ RELOAD
112A FE C9 DEC CL
112C 75 E9 JNZ CHECK
112E CD 02 INT 02
1130 CD 02 INT 02

Join the Technical Community Today! http://www.pantechsolutions.net


ADDRESS DATA

1500 48H,45H,4CH,4CH

1504 4FH,2DH,38H,30H (HELLO-8086)

1508 38H,35H,0AH,0DH

150C END

Join the Technical Community Today! http://www.pantechsolutions.net


Did you enjoy the read?
Pantech solutions creates information packed technical
documents like this one every month. And our website is a rich
and trusted resource used by a vibrant online community of
more than 1,00,000 members from organization of all shapes
and sizes.

Join the Technical Community Today! http://www.pantechsolutions.net


What do we sell?
Our products range from Various Microcontroller
development boards, DSP Boards, FPGA/CPLD boards,
Communication Kits, Power electronics, Basic electronics,
Robotics, Sensors, Electronic components and much more . Our
goal is to make finding the parts and information you need
easier and affordable so you can create awesome projects and
training from Basic to Cutting edge technology.

Join the Technical Community Today! http://www.pantechsolutions.net