Seven Segment Display Card

advertisement
INTERFACE CARDS
Seven Segment Display
Card
Introduction
PS-ACC-7SEG card has 6 Nos. of Common Anode
7segment displays arranged in order by using NPN
transistors. All the 7-segment displays segment lines,
digit selections and power lines are terminated with 20-pin connector
to interface development kits.
Packages
7-SEG Display Add-on Card
Interface Cable
Reference Documents | Example Programs
Technical or Customer Support
Post your questions:
Pantech forum
:
www.pantechsolutions.net/forum
Web site
:
www.pantechsolutions.net
Join the Technical Community Today!
http://www.pantechsolutions.net
7-SEG DISPLAY INTERFACE CARD
-6 Nos. Common Anode Display
-20-pin Box Header
7-SEG DISPLAY
The High Efficiency Red source color devices are made with Gallium
Arsenide Phosphide on Gallium Phosphate Orange Light Emitting
Diode.
0.56 inch digit height.
Low current operation.
Excellent character appearance.
Easy mounting on P.C. boards or sockets.
Mechanically rugged.
SPECIFICATIONS
Digital Outputs
o 6 Nos. of Common Anode (7-SEG) Display.
20-pin Box Header
o All LED and Switch | Power lines terminated at box
connector
20-pin FRC Cable
o To connect host boards (Microcontroller/Processor/FPGA Kits)
Join the Technical Community Today!
http://www.pantechsolutions.net
HARDWARE DESCRIPTION
7-SEG Display card has 6 nos. of common anode 7segment
displays arranged in order with driver by using NPN transistors, all
the 7-segment displays segment lines and digit selections and
power lines are terminated with 20-pin connector, to interface
development kits.
Standard: gray face, white segment.
RoHS compliant.
CARD FEATURES
6 Nos. common anode 7-segment Display
Transistors driver Circuit for displays
20-pin Box Connector
HARDWARE
CONFIGURATION
OF
7
SEGMENTS
8051/8086/8085
Join the Technical Community Today!
http://www.pantechsolutions.net
WITH
3
Digit – 3
4
Digit - 4
5
Digit – 5
6
Digit - 6
7
NC
8
NC
9
Seg - a
10
Seg – b
11
Seg – c
12
Seg – d
13
Seg – e
14
Seg – f
15
Seg – g
16
Seg – dp
17,19
Vcc
18,20
Gnd
VCC
Digit - 1
1K
2
seg-a
Seg-b
Seg-c
seg-d
seg-e
seg-f
seg-g
seg--dp
7
6
4
2
1
9
10
5
A
B
C
D
E
F
G
DP
8
Digit – 2
U1
CA
2
1
Digit - 1
3
1
7-Segment Display Card
3
MODULES
CA
Digit select lines
Segment Lines
PWR
20PIN
CONNECTOR
7 SEG DISP
a
f g b Make high to - digit selection
e d c Make low to - segment
Supply form ARM7 Tyro Kit
SEVEN SEGMENT DISPLAY
The hex decimal data corresponding to the segments which have to
glow for displaying a character is output to port B
Join the Technical Community Today!
http://www.pantechsolutions.net
D7
D6
D5
D4
D3
D2
D1
D0
DP
G
F
E
D
C
B
A
Logic ‘0' in the above said format will turn ON that particular segment.
Logic ‘1' will keep the segment OFF.
The data for turning ON the display is through 8255.
DIODE
DATA
STATUS
COMMON CATHODE
0
ON
1
OFF
1
ON
0
OFF
COMMON ANODE
7-SEG DISPLAY
7-segment display, it is composed of 8 LEDs, 7
segments are arranged as a rectangle for symbol
displaying and there is an additional segment for
decimal point displaying. In order to simplify
connecting, anodes and cathodes of all diodes are
connected to the common pin so that there are
Join the Technical Community Today!
http://www.pantechsolutions.net
common anode displays and common cathode displays, respectively.
Segments are marked with the letters from A to G, plus DP, as shown in
the figure on the left. On connecting, each diode is treated separately,
which means that each must have its own current limiting resistor.
A seven segment display, as its name indicates, is composed of
seven elements. Individually on or off, they can be combined to
produce simplified representations of the Arabic numerals. Often
the seven segments are arranged in an oblique (slanted)
Hex value is
92H
arrangement, which aids readability. In most applications, the seven
segments are of nearly uniform shape and size (usually elongated
hexagons, though trapezoids and rectangles can also be used), though in
the case of adding machines, the vertical segments are longer and more
oddly shaped at the ends in an effort to further enhance readability.
Join the Technical Community Today!
http://www.pantechsolutions.net
TYPES OF SEVEN SEGMENT DISPLAY:
There are two types of seven segment display available, namely,
I) Common anode display and
ii) Common cathode display
7 SEGMENT ADDON CARD
Join the Technical Community Today!
http://www.pantechsolutions.net
PROGRAMS ON PS-ADDON 7 SEGMENT DISPLAY INTERFACE
CARD
MICROCONTROLLER (8051)
U2 8255
PORTS
ADDRESS
Control port
4003
PORT A
4000
PORT B
4001
PORT C
4002
AIM: TO INTERFACE 7 SEGMENT DISPLAY CARD WITH 8051
ADDRESS
OPCODE
MNEMONICS
8500
78 80
START : MOV A,#80
8502
90 40 03
MOV DPTR,#4000
8505
F0
MOVX @DPTR,A
8506
74 FF
MOV A,#FF
8508
90 40 00
MOV DPTR,#4000
850B
F0
MOVX @DPTR,A
850C
12 85 14
LCALL DATA
850F
12 85 2C
LCALL DELAY
8512
80 F2
SJMP START
8514
7A 0F
8516
7B 86
MOV R3,#86
8518
7C 00
MOV R4,#00
DATA : MOV R2,#0A
Join the Technical Community Today!
http://www.pantechsolutions.net
851A
8C 82
MOV DPL,R4
851C
8B 83
MOV DPH,R3
851E
E0
MOVX A,@DPTR
851F
90 40 01
MOV DPTR,#4001
8522
F0
MOVX @DPTR,A
8523
12 85 2C
LCALL DELAY
8526
12 85 2C
LCALL DELAY
8529
0C
INC R4
852A
DA EE
DJNZ R2,851A
852C
78 FF
DELAY : MOV R0,#FF
852E
79 FF
LOOP : MOV R1,#FF
8530
D9 FE
LOOP1 : DJNZ R1,LOOP1
8532
D8 FA
DJNZ R0,LOOP
8534
22
RET
LOOKUP TABLE:
8600
C0H, CFH, A4H, B0H, 99H
8605
92H, 82H, F8H, 80H, 98H
INPUT: Address location 4000 is for digit selection
Address location 4001 is for 7 segment display data
OUTPUT: view the output on 7 segment display card
Join the Technical Community Today!
http://www.pantechsolutions.net
MICROPROCESSOR (8086)
U1 8255
PORTS
ADDRESS
Control port
FF26
PORT A
FF20
PORT B
FF22
PORT C
FF24
PORTS
ADDRESS
Control port
FF36
PORT A
FF30
PORT B
FF32
PORT C
FF34
U2 8255
AIM: TO INTERFACE 7 SEGMENT DISPLAY CARD WITH 8086
USING 8255
ADDRESS
OPCODE
MNEMONICS
1200
B0 80
MOV AL, 80
1202
BA 36 FF
MOV DX, FF36
1205
EE
OUT DX, AL
1206
8D 36 00 13
120A
B9 06 00
MOV CX, 000A
120D
B3 7F
MOV BL, 7F
120F
88 D8
1211
BA 30 FF
START:
AGN:
LEA SI, [1300]
MOV AL, BL
MOV DX, FF30
Join the Technical Community Today!
http://www.pantechsolutions.net
1214
EE
OUT DX, AL
1215
8A 04
MOV AL, [SI]
1217
BA 32 FF
MOV DX, FF32
121A
EE
OUT DX, AL
121B
E8 07 00
CALL DLY
121E
46
INC SI
121F
D0 CB
ROR BL, 1
1221
E2 EC
LOOP AGN
1206
EB E1
JMP START
1225
BA FF FF
DLY:
1228
4A
M:
1229
75 FD
JNZ M
122B
C3
RET
MOV DX, FFFF
DEC DX
LOOKUP TABLE:
1300
1305
INPUT:
C0H, CFH, A4H, B0H, 99H,
92H, 82H, F8H, 80H, 98H
Address location FF30 is for digit selection
Address location FF31 is for 7 segment display data
OUTPUT: view the output on 7 segment display card
Join the Technical Community Today!
http://www.pantechsolutions.net
MICROPROCESSOR (8085)
U1 8255
PORTS
ADDRESS
Control port
23
PORT A
20
PORT B
21
PORT C
22
PORTS
ADDRESS
Control port
33
PORT A
30
PORT B
31
PORT C
32
U2 8255
AIM: TO INTERFACE 7 SEGMENT DISPLAY CARD WITH 8085
USING 8255
Join the Technical Community Today!
http://www.pantechsolutions.net
ADDRESS
9100
OPCODE
MNEMONICS
3E 80
MVI A,80
9102
D3 23
OUT 23
9104
3E FF
9106
D3 20
OUT 20
9108
CD 11 91
CALL DATA
910B
CD 21 91
CALL DELAY
910E
C3 04 91
JMP START
9111
0E 0A
9113
21 00 92
9116
7E
9117
D3 21
OUT 21
9119
CD 24 91
CALL DELAY
911C
23
INX H
911D
0D
DCR C
911E
C2 16 91
JNZ REP
9121
C3 11 91
JMP DATA
9124
06 FF
DELAY :
MVI B,FF
9126
3E FF
LOOP :
MVI A,FF
9128
3D
LOOP1 :
DCR A
9129
C2 28 91
912C
05
DCR B
912D
C2 26 91
JNZ LOOP
9130
C9
RET
START :
DATA :
MVI A,FF
MVI C,0A
LXI H,9200
REP :
MOV A,M
JNZ LOOP1
LOOKUP TABLE:
8600
8605
C0H, CFH, A4H, B0H, 99H,
92H, 82H, F8H, 80H, 98H
Join the Technical Community Today!
http://www.pantechsolutions.net
INPUT: Address location 20 is for digit selection
Address location 21 is for 7 segment display data
OUTPUT: view the output on 7 segment display card
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
Download