Está en la página 1de 0

4 inch Character Height

7-segment LED Information Board


Users Guide
2004-2008 Sure Electronics Inc. DE-DP004-Ver1.0
4 inch Character Height
7-segment LED Information Board
Users Guide
2004-2008 Sure Electronics Inc.
Table of contents
Chapter1.Overview and Main Feature.............................................................................. 1
1-1. Overview.................................................................................................................... 1
1-2. Part Layout.................................................................................................................. 2
1-3. Main Feature ............................................................................................................. 3
Chapter2.Hardware Detail .................................................................................................... 4
2-1. Schematic ................................................................................................................ 4
2-2. Physical Dimension ............................................................................................... 5
2-3. Circuit Diagram....................................................................................................... 5
2-4. Electric Characters................................................................................................. 6
2-5. Port Definition......................................................................................................... 7
2-5-1. 7-segment LED............................................................................................ 7
2-5-2. Shift Register Data Drive ........................................................................... 7
2-5-3. Data Ports Definition.................................................................................. 8
2-5-4. Auxiliary Power Port ...................................................................................9
2-5-5. Data Buffer................................................................................................... 9
Chapter3.Sample Codes..................................................................................................... 11
3-1. LED Segment Drive Demo Boards Schematic ............................................... 11
3-2. How to Connect Load.......................................................................................... 12
3-3. How to display data with PIC10F200 and PICC8.05 environment................ 12
Chapter4.Contact Us............................................................................................................ 15
DE-DP004-Ver1.0-page i
4 inch Character Height
7-segment LED Information Board
Users Guide
Table of contents
NOTES:
Product Version Ver 1.0
Document Version Ver 1.0
DE-DP004-Ver1.0-page ii 2004-2008 Sure Electronics Inc.
4 inch Character Height
7-segment LED Information Board
Users Guide
2004-2008 Sure Electronics Inc.
Chapter1.Overview and Main Feature
4 digits 7segment panels are manufactured by Sure Electronics. This series includes 5
different size panels, such as 1.5 inches, 1.8 inches, 2.3 inches, 4 inches, and 7 inches
(character height). All those panels are driven by SPI like interface and all work in full static
mode. They are easy to be interfaced to any Microcontrollers. They could be widely used in
panel meters, big clocks and any other information display usage.
Sure Electronics provides series of such information boards which are supposed to reduce
your development time and make them standard. In this series, most boards are 4 digits
and static, if customer needs any special digits and special size ones, you could contact us
with the contact information at the end of this document. The 4 inch character height one is
2digit/board. The 7inch character height one is 1digit/board.
This document is used to describe how to use 4 inch character height panels.
1-1. Overview
DE-DP004-Ver1.0-page 1
Overview and Main Feature
1-2. Part Layout
Figure Top Part Layout
Figure 1 Bottom Part Layout
2004-2008 Sure Electronics Inc. DE-DP004-Ver1.0-page 2
Overview and Main Feature
2004-2008 Sure Electronics Inc. DE-DP004-Ver1.0-page 3
1-3. Main Feature
1-3-1. 2 digits 7-segment 4 inches LEDs are installed on this panel, those segments are
common anode type.
1-3-2. 2*10pin interface for power serializing and data transferring, data inputs from J1
and flows out from J2.
1-3-3. A 74HC00 Nand chip is used to buffer CLK_IN and DIMM_IN control signal.
1-3-4. LED driver chips are composed of 2pcs of 74HC595, 2pcs MMBT9014 and 2pcs
of ULN2003, they are serialized to each other, the first chip receives data from
Microcontroller or the board ahead, the final chip shifts data to next boards. Data should be
clocked in from CLK_IN and DATA_IN in J1, and DIMM_IN pin should be pulled down to
enable display. ULN2003 is used to drive the cathode of those led segments.

4 inch Character Height
7-segment LED Information Board
Users Guide
2004-2008 Sure Electronics Inc. DE-DP004-Ver1.0-page 4
2-1. Schematic
Figure 2
Note: Because of the LED's voltage drop difference, the resistance may vary from the value
Chapter2.Hardware Detail
D
A
T
A
_
O
U
T
U
4
U
L
N
2
0
0
3
9
4 5
1
4
1
1
3
6328 7
1
1
1
2
1
0
1
5
1
6
C
O
M
4
B
5
B
3
C
1
B
4
C
6
B
3
B
2
B
E 7
B
6
C
5
C
7
C
2
C
1
C
A
3
B
5
U
5
B
7
4
H
C
0
0
45
6
1
4
7
U
5
D
7
4
H
C
0
0
1
2
1
3
1
1
1
4
7
B
2
+
5
V
+
1
2
V
R
7
3
3
1
D
I
M
M
_
O
U
T
A
7
U
5
A
7
4
H
C
0
0
12
3
1
4
7
U
7
U
L
N
2
0
0
3
9
4 5
1
4
1
1
3
6328 7
1
1
1
2
1
0
1
5
1
6
C
O
M
4
B
5
B
3
C
1
B
4
C
6
B
3
B
2
B
E 7
B
6
C
5
C
7
C
2
C
1
C
A
4
C
L
K
_
O
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7
0
u
F
12
A
1
+
1
2
V
B
3
A
0
B
0
C
L
K
_
I
N
R
1
4
3
3
1
+
5
V
C
L
K
_
O
U
T
R
3
3
3
1
+
5
V
A
0
B
4
R
1
3
3
3
1
R
1
3
3
1
R
1
6
3
3
1
Q
2
9
0
1
4
2
1 3
C
L
K
_
I
N
Q
1
9
0
1
4
2
1 3
8
U
1
D
4
0
0
1
1
9
1
05
1
72 3 4 6
8
FGD
P
C O M 1
AE D C B
C O M 2
B
6
8
U
2
D
4
0
0
1
1
91
0
5
1
72 3 4 6
8
FG
D
P
C O M 1
AE D C B
C O M 2
Hardware Detail
marked in the schematic.
2-2. Physical Dimension
Figure 3
2-3. Circuit Diagram
2004-2008 Sure Electronics Inc. DE-DP004-Ver1.0-page 5
Hardware Detail
Figure 4
Figure 5
2-4. Electric Characters
Power Supply: DC12V (Low9V-High13V), 0.16A/pcs (Maximum), for each additional
panel, adding another 0.16A, if voltage is less than 9V, the brightness would not be
enough.
For over 2 panels, users must add auxiliary power on the auxiliary power, or the 10pin
communication port could not carry so much current.
Maximum clock freq: 1MHz, 4 boards serialized
100KHz, 20 boards serialized
If the communication speed is too high, it may cause communication problems.
Suggested Refresh Rate: Less than 10Hz if DIMM is not used. Less than 50Hz if DIMM
is used.
Drive Current/segment: 10mA +3mA/-2mA, this value may be changed based on the
production batch, and the dot uses different current.
Drive Method: Fully static.
Connection Method: 74HC595 in series, SPI like interface.
Maximum Cascade Level: 20 boards in series, clock less than 100 kHz.
2004-2008 Sure Electronics Inc. DE-DP004-Ver1.0-page 6
Hardware Detail
Interface Voltage Level: 4-5.5V, standard CMOS level. If you need TTL/CMOS
compatible interface in batch, please contact us but the quantity should be no less than
100pcs.
2-5. Port Definition
2-5-1. 7-segment LED
2004-2008 Sure Electronics Inc. DE-DP004-Ver1.0-page 7
Figure 6
2 Digits of 4 inches, common anode, high brightness red 7-segment LEDs are installed on
this board. They are marked as U1-2.
2-5-2. Shift Register Data Drive
Figure 7
A6 B6
B5
8
U1
D40011
9
10
5
1
7
2
3
4
6
8
F
G
DP
C
O
M
1
A
E
D
C
B
C
O
M
2
A2
A3
A0 B0
8
U2
D40011
9
10
5
1
7
2
3
4
6
8
F
G
DP
C
O
M
1
A
E
D
C
B
C
O
M
2
B7 A7
B2
+12V
A1
B3
A5
A4 B4
B1
U6 74HC595
7
8
9
14
3
4
5
6
10
11
12
13
1
2
15
16
QH
GND
QH'
SI
QD
QE
QF
QG
SCLR
SCK
RCK
G
QB
QC
QA
VCC
R14 331
B6
B5
Q2
9014
2
1
3
A2
R6 331
A3
R11 331
R1 331
B4
R2 331
R7 331
A7
R16 331
R12 331
A0
R15 331
DIMM_OUT
A1
B1
R3 331
R10 331
+5V
U3 74HC595
7
8
9
14
3
4
5
6
10
11
12
13
1
2
15
16
QH
GND
QH'
SI
QD
QE
QF
QG
SCLR
SCK
RCK
G
QB
QC
QA
VCC
B2
DATA_IN
DATA_OUT R18 102
U7 ULN2003
9
4
5
14
1
13
6
3
2
8
7
11
12
10
15
16
COM
4B
5B
3C
1B
4C
6B
3B
2B
E
7B
6C
5C
7C
2C
1C
Q1
9014
2
1
3
R9 102
R13 331
R8 152
U4 ULN2003
9
4
5
14
1
13
6
3
2
8
7
11
10
12
15
16
COM
4B
5B
3C
1B
4C
6B
3B
2B
E
7B
6C
5C
7C
2C
1C
CLK_OUT
R5 331
B7
B0
R4 331
+5V
B3
R17 152
A6
A4
A5
Hardware Detail
74HC595 is used as shift register in this board. They are U3 and U6, the parallel output of
those 74HC595 is connected to the base of ULN2003, and the collector of those ULN2003
is connected to the LED segments. CLK_OUT is driven by a buffered output from CLK_IN
with 74HC00. DATA_IN is data input pin of the first 74HC595, then all 74HC595 of
cascaded boards will be serialized. All those pins receive only CMOS signals. DIMM_IN
signal is for brightness control usage, you could add simple on/off or PWM signal on this
signal, when this signal is set to low, all segments will be lighted on if valid data is shifted out
from the 74HC595 chip. If you change the data in the 74HC595 driven chip, you should set
this pin to low in order that the hash signal will not affect the display. Of course if you want to
adjust the brightness of those LEDs, PWM signal could be applied on the DIMM_IN pin. It is
buffered with a 74HC00, and DIMM_IN signal will drive this board and next. Once you clock
in correct data through these 2 pins, and ensure that PWM signal or ON/OFF signal is
applied correctly on the DIMM_IN pin, the board will begin to display.
Correspondence between Character Codes and Character Patterns:
Character
Patterns
0 1 2 3 4 5 6 7 8 9
Character
Codes
0xfc
0x6
0
0xd
a
0xf2
0x6
6
0xb
6
0xb
e
0xe
0
0xfe 0xf6
Character
Patterns
a b c d E f g h i j
Character
Codes
0xe
e
0x3
e
0x1
a
0x7
a
0x9
e
0x8
e
0xf6
0x6
e
0x6
0
0x7
0
Character
Patterns
l n o p Q r s t u y
Character
Codes
0x1
c
0x2
a
0x3
a
0xc
e
0xe
6
0x0
a
0xb
6
0xe
0
0x3
8
0x7
6
2-5-3. Data Ports Definition
2004-2008 Sure Electronics Inc. DE-DP004-Ver1.0-page 8
Figure 8
2 IDC sockets are located on the board. They are data input and output interface, marked
as J1 and J2. The definition is shown in Figure 11. When the board is working separately,
connect J1 to the Microcontroller board and leave J2 open. If lots of same boards are in
series, connect next boards input to previous ones output. Then you could connect up to
CLK_IN
+12V +12V +12V
J2 CON10B
1
2
3
4
5
6
7
8
9
10
DATA_IN
+12V
CLK_OUT
J1 CON10B
1
2
3
4
5
6
7
8
9
10
DIMM_IN DIMM_OUT
DATA_OUT
Hardware Detail
20 boards in series. Notice if over 4pcs of such boards were serialized, you must add
auxiliary power cable to some boards to enhance the current transfer.
2-5-4. Auxiliary Power Port
Figure 9
There are 2 auxiliary power ports on this board. If you use less than 4pcs of such boards in
series, you could simply use a 10pin IDC flat cable to connect those boards. But if over 4
boards are connected together, you must add additional power supply to some of those
boards, or the current may be lacking. Just apply +12V to some boards on the AUX power
port. Make sure the polarity is correct.
2-5-5. Data Buffer
2004-2008 Sure Electronics Inc. DE-DP004-Ver1.0-page 9
U5C
74HC00
9
10
8
14
7
DIMM_IN
CLK_IN
CLK_OUT
U5D
74HC00
12
13
11
14
7
+5V
DIMM_OUT
U5A
74HC00
1
2
3
14
7
U5B
74HC00
14
4
5
6
7
Hardware Detail
2004-2008 Sure Electronics Inc. DE-DP004-Ver1.0-page 10
Figure 10
74HC00 chip is used to buffer Clock and DIMM signal in this board. A CMOS chip is not
able to drive over 10pcs CMOS input if the cable is so long, here 74HC00 is used as NOT
gate, and 2 gates in series is a buffer.
4 inch Character Height
7-segment LED Information Board
Users Guide
2004-2008 Sure Electronics Inc.
Chapter3.Sample Codes
3-1. LED Segment Drive Demo Boards Schematic
DE-DP004-Ver1.0-page 11
Figure 11
R4 472
DATA
SW2 SW DIP-4
1
2
3
4
8
7
6
5
POWER
ICSPCLK
C5
104
1
2
C1
104
1
2
U2 78M05/TO
1
4
3
VIN
G
N
D
VOUT
DIMM
+5V
+12V
R3 472
J4 DJ005B
3
2
1
J2 CON 6
1
2
3
4
5
6
+ C2
100uF/16V
1
2
U1 PIC10F200
4
1 6
5
3
2
GP2/T0CKI/FOSC4
GP0/ICSPDAT GP3/MCLR/VPP
VDD
GP1/ICSPCLK
VSS
+5V
DIMM
CLK
+12V
MCLR
+5V
CLK R5 472
R1
472
SW1
+5V
POWER
D11N5817
1 2
ICSPCLK
POWER
ICSPDAT
ICSPDAT R2 472
J3
CON2
1
2
DATA
4
+
C3
100UF/10V
1
2
+5V
1
2
3
C4
104
1
2
MCLR
J1 CON10B
1
2
3
4
5
6
7
8
9
10
Sample Codes
3-2. How to Connect Load
10 Pin IDC Flat Cable
J1
J4
J3 J2
4 inch LED Board
+
J1 -
LED Segment
Drive Demo
Board
Power Supply form J3 or J4
DC 12V,1A Input
Figure 12
Output
Voltage
Encoder Position Setting(1)(2)
5V
4 3 2 1
+5V
12V
+12V
4 3 2 1
0V
0V
4 3 2 1
ON
OFF
Notice:
(1) DIP switch only has the 3 ways as shown above to work; any other switching ways are
prohibited.
(2) Users shouldnt change the voltage while LED Segment Drive Demo Board is working. It
is only allowed to change it before applying the current.
3-3. How to display data with PIC10F200 and PICC8.05 environment
Source code is shown below,
#include <pic.h>
__CONFIG(UNPROTECT&MCLRDIS&WDTDIS); //Configure Word
2004-2008 Sure Electronics Inc. DE-DP004-Ver1.0-page 12
Sample Codes
2004-2008 Sure Electronics Inc. DE-DP004-Ver1.0-page 13
#define Fuc_key GP3
#define DIMM GP2
#define CLK GP1
#define DATA GP0
unsigned char disp_data;
unsigned char key_pressed,last_key_pressed;
unsigned char Value;
unsigned char time;
//The total of cathode
const unsigned char Digital_TAB[] =
{0xff,0xfc,0x60,0xda,0xf2,0x66,0xb6,0xbe,0xe0,0xfe,0xf6,
0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x01};
void change(void);
void LED_data(void);
void LED_display(void);
void delay_2ms(void)
{
unsigned char i, j, k;
for(i = 0; i < 5; i++)
{
for(j = 0; j < 200; j++)
k--;
}
}
void change(void)
{
key_pressed=Fuc_key;
if((key_pressed==0)&(last_key_pressed==1))
{
delay_2ms();
if(key_pressed==0)
{
disp_data++;
if(disp_data==19)disp_data=0;
}
}
last_key_pressed=key_pressed;
}
void LED_data(void)
{
unsigned char i;
for(i = 0; i <19; i++)
{
if(i==disp_data){Value = Digital_TAB[i];}
}
Sample Codes
2004-2008 Sure Electronics Inc. DE-DP004-Ver1.0-page 14
}
void LED_display(void)
{
unsigned char i;
unsigned char U;
U=Value;
for(i = 0;i < 8; i++)
{
DATA = U & 0x01;
CLK = 0;
CLK = 1;
U = U>>1;
}
U=Value;
for(i = 0;i < 8; i++)
{
DATA = U & 0x01;
CLK = 0;
CLK = 1;
U = U>>1;
}
CLK = 0;
CLK = 1;
}
void main(void)
{
OSCCAL=0;
TRIS = 0b11111000;
OPTION=0b11011111;
while(1)
{
change();
LED_data();
DIMM = 1;
LED_display();
DIMM = 0; //Activelow Output Enable
delay_2ms();
}
}
4 inch Character Height
7-segment LED Information Board
Users Guide
2004-2008 Sure Electronics Inc.
Chapter4.Contact Us
Sure Electronics Co., Ltd.
Floor 5, A zone,
Qinhuai Technology Innovation center,
NO.105-2, DaMing Road,
Nanjing,
China
Tel: +8613601408832
+86-25-66606340
(English service, from GMT1-10AM, only for technical questions)
Email: support@sure-electronics.net
Website: www.sure-electronics.net
www.sure-electronics.com
www.sureelectronics.net
DE-DP004-Ver1.0-page 15

También podría gustarte