Professional Documents
Culture Documents
CODE SEGMENT
CODE ENDS
END START
LABEL:
A label is a symbol or group of symbols used to represent an address,
which is not known at the time the statement, is written.
PROGRAM ANALYZATON:
MOV
START
AL,90H
MOV
DX,CNT
JI:Out
Dx,APo
rt
MOV
DX,APort
IN
Al.Dx
MOV Dx,BP
OUT
DX,Al
JMP JI STOP
BLOCK DIAGRAM OF PROJECT:
SCHEMATIC DIAGRAM:
VCC
8
7
6
5
8
7
6
5
10k
3 2 A0-A2
4 D0 Q0 5
7 D1 Q1 6
1
2
3
4
1
2
3
4
8 D2 Q2 9 34 4
13 D3 Q3 12 33 D0 PA0 3
14 D4 Q4 15 32 D1 PA1 2
17 D5 Q5 16 31 D2 PA2 1
18 D6 Q6 19 30 D3 PA3 40
D7 Q7 29 D4 PA4 39
11 28 D5 PA5 38
16 8 1 LE A14-A19 27 D6 PA6 37
15 AD0 AD8 7 OE D7 PA7
14 AD1 AD9 6 74LS 373 2 9 18 2 18
13 AD2 AD 10 5 1 8 A0 PB0 19 4 A1 Y 1 16
12 AD3 AD 11 4 3 A1 PB1 20 6 A2 Y 2 14
6
1
17 MN 25 18 D6 Q6 19 3 B Y1 13 PC2 17
22 NMI A LE 34 D7 Q7 C Y2 12 PC3 13
21 READY B H E /S 7 26 11 6 Y3 11 PC4 12
23 RST DEN 27 1 LE 4 G1 Y4 10 PC5 11
TEST D T /R 30 OE 0 5 G 2A Y5 9 PC6 10
H LD A 24 74LS373 G 2B Y6 7 PC7 VCC
IN TA 28 Y7 8255
M /IO 32 74LS138
2
3
RD 29 A16-A17 A8-A15 2 1 11 9
WR 13 A1 Y1 7
8 0 8 6 M IN A8-A13 15 A2 Y2 5
17 A3 Y3 3
10 7 4 L S 1 41 1 A4 Y4
9 A0 D 0 12 19
8 A1 D 1 13 G
7 A2 D 2 15 74LS240
6 A3 D 3 16
5 A4 D 4 17
4 A5 D 5 18
3 A6 D 6 19
25 A7 D7
24 A8
21 A9
23 A10
2 A11
A12
2 22
6
31
1 27 O E
3 20 W E
74LS 14 26 C S1
CS2 VCC
6264
42
510
C P U- C LK
C RY S TA L O S CI LA T OR
510
100
CL K S Y S- C LK
U 16
P CL K
3 8
7 AEN1 C LK 2
AEN2 PC LK
1 4 .7 4 5 6 M H Z 14 5 R AM - VC C
EFI R EAD Y 10 1 2 3
12 RESET
17 O S C
16 X1
X2
C R Y STAL 15 2K 2K1
1 ASY NC
C1 CSYNC
13 R A M- A
4 F /C
6 RDY1
11 RDY2 R A M- B
RES
D 10 8284
470K
V CC
511
D 3 -1 N 4 1 4 8
1 M IC R O F
100
RA M -V C C
D4
C 6 -4 7 3 .6 V
B A TTE R Y
VCC
470K
74LS14
SW2 NMI R3
1 2 TO NMI PINOF MP
100
1 M IC R O F 2
M/IO'
2
3
1 IOR'
3
4
RD' 2
1 MEMR'
3
2
1 1OW'
WR' 3
2
1 MEMW'
3
RECTIFIER BRIDGE
STEPDOWN TRANSFORMER
D1
1
T1
1 5
VOLTAGE
220V 2 - + 4 FILTERS REGULATOR +5V
VCC
4 8
TR A N S F O R M E R
3 B R ID G E
VCC
470K
IC 6 D VCC
SW 1
100
9 8
NMI
IN 4 1 4 8
1uF
7 4 L S 1 4 /S O
100
R A M -V C C
47
IN 4 1 4 8
3 .6 V
BATTER Y
ADDRESS DECODING:
PORT A:
8255
I/P
ENB
0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 1 0 0 0 0
DEC
IP
HEX CODE: 03FD0H
PORT B:
0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 1 0 0 1 0
PORT C:
0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 1 0 1 0 0
CONTROL REGISTER:
0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 1 0 1 1 0
HEX CODE:03FD6H
Intel 8086 microprocessor architecture:
The Intel 8086 is16 bit microprocessor that is use as CPU in microcomputer. Its
chareristics are
(1): The 8086 has16-bit data bus. So it can read data from or write data to memory
and ports either 16-bit or 8-bit at a time
(2):The 8086 has 20-bit address bus. So it can address any one of (2^20) memory
location.
(3):It has17 control/timing,3 power = 56. But 8086 has just 40 pins.
MN/MX* (in):
Minimum/maximum
operating mode
CLK(in):Pin number
19 is System clock
DEN* (out): Data enable, signals that bus lines are being used to transfer data
HLDA (out): Hold acknowledge, signals bus lines have been relinquished
TEST* (in): If high, 8086 enters idle mode (for use with other processors, e.g., 8087)
Carry Flag (CF) - set if there was a carry from or borrow to the most
significant bit during last result calculation.
Auxiliary carry Flag (AF) - set if there was a carry from or borrow to
bits 0-3 in the AL register
Single-step Flag (TF) - if set then single-step interrupt will occur after
the next instruction.
Sign Flag (SF) - set if the most significant bit of the result is set.
Parity Flag (PF) - set if parity (the number of "1" bits) in the low-order
byte of the result is even.
Overflow Flag (OF) set if the result is too large positive number, or is
too small negative number to fit into destination operand.
8255 Programmable Peripheral Interface (PPI):
The 8086 microprocessor has no port to connect input and output devices
With it so in order to interface the input and output devices with 8086
microprocessor we use another IC numbered 8255 (ppi).
8255 SPECIFICATIONS;
GROUPS OF 8255:
The ports of 8255(ppi) are divided in to two (2) groups i.e. group A&B
1. G.A=PA+PC(low)
2. G.B=PB+PC(high)
CONTROL REGISTER:
Control register contains the control word and on the basis of this control
word the ports are configured as input or output port.
8 bit word:
1 0 0 1 0 0 0 0