2.3" Character Height 7-Segment LED Information Board User’s Guide © 2004-2008 Sure Electronics Inc. DE-DP003-Ver1.0
2.3" Character Height 7-Segment LED Information Board
User’s Guide
© 2004-2008 Sure Electronics Inc. DE-DP003-Ver1.0
2.3" Character Height 7-Segment LED Information Board
User’s Guide
© 2004-2008 Sure Electronics Inc.
Table of contents
Chapter1.Overview and Main Feature .........................................................................11-1. Overview ...................................................................................................................................... 1
1-2. Part Layout ........................................................................................................2Chapter2. Hardware Description ..................................................................................4
2-1. Schematic..........................................................................................................4 2-2. Physical Dimension..........................................................................................5 2-3. Circuit Diagram.................................................................................................5 2-4. Electric Characters...........................................................................................6
2-5-1. 7-segment LED ......................................................................................7 2-5-2. Shift Register Data Driver.....................................................................7 2-5-3. Data Ports Definition.............................................................................8 2-5-4. Auxiliary Power Port .............................................................................8 2-5-5. Data Buffer .............................................................................................9
Chapter3. Sample Codes ..............................................................................................103-1. LED Segment Drive Demo Board’s Schematic............................................10 3-2. How to Connect Load.....................................................................................10 3-3. How to display data with PIC10F200 and PICC8.05 environment..............11
Chapter4. Contact Us.....................................................................................................15
DE-DP003-Ver1.0-page i
2.3" Character Height 7-Segment LED Information Board
User’s Guide
© 2004-2008 Sure Electronics Inc.
Table of contents
NOTES:
Product Version : Ver 1.0
Document Version : Ver 1.0
DE-DP003-Ver1.0-page ii
2.3" Character Height 7-Segment LED Information Board
User’s 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, they are 1.5inches, 1.8inches, 2.3inches, and 4inches, 7inches (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 need any special digits and special size ones, could contact us with the contact information at the end of this document. The 7 inch character height one is 1digit/board.
This document is used to describe how to use 2.3inches character height panels.
1-1. Overview
Figure 1
DE-DP003-Ver1.0-page 1
Overview and Main Feature
1-2. Part Layout
Figure 2 Top Part Layout
Figure 3 Bottom Part Layout
© 2004-2008 Sure Electronics Inc. DE-DP003-Ver1.0-page 2
Overview and Main Feature
© 2004-2008 Sure Electronics Inc. DE-DP003-Ver1.0-page 3
1-3-1. 4 digits 7-segment 2.3inches 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 4pcs of 74HC595 and 5pcs 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 pull to low to enable display. ULN2003 is used to drive the cathode of those led segments.
2.3" Character Height 7-Segment LED Information Board
User’s Guide
© 2004-2008 Sure Electronics Inc. DE-DP003-Ver1.0-page 4
2-1. Schematic
Figure 4 Note: Because of the LED's voltage drop difference, the resistance may vary from the value marked in the schematic.
Chapter2. Hardware Description
A2
R11
471
C8
104
1 2
D7
DIM
M_O
UT
R32
152
C1
U15
78M
05/T
O1
4
3V
IN
GND
VO
UT
R2
471
B4
C5
A1
8U
4
D23
011
9 10 8
1
7 2346
5
F GD
P
COM1
A EDCB
COM2
U12
74H
C59
5
7
8
9
14
3 4 5 6
10 111213
1 21516
QH
GN
D
QH
'
SI
QD
QE
QF
QG
SC
LR
SC
KR
CK
G
QB
QC
QA
VC
C
+C
1 10V/100UF
1 2A2
DA
TA_I
N
C5
104
1 2
A7
DA
TA_O
UT
D6
R14
471
+5V
A1
D6
DA
TA_I
N
U14
A
74H
C00
1 23
14 7
+12V
U9
ULN
2003
9
45
14
1
13
6 3 2 8711 1210 15 16
CO
M
4B5B
3C
1B
4C
6B 3B 2B E7B6C 5C7C 2C 1C
+5V
D5
B5
U6
ULN
2003
9
45
14
1
13
6 3 2 8711 1210 15 16
CO
M
4B5B
3C
1B
4C
6B 3B 2B E7B6C 5C7C 2C 1C
CLK
_OU
T
B7
C2
A0
D3
C0
+12V
C4
D4
A3
C4
A7
R22
471
B0
C7
U11
ULN
2003
9
45
14
1
13
6 3 2 8711 1210 15 16
CO
M
4B5B
3C
1B
4C
6B 3B 2B E7B6C 5C7C 2C 1C
U13
ULN
2003
9
45
14
1
13
6 3 2 8711 1210 15 16
CO
M
4B5B
3C
1B
4C
6B 3B 2B E7B6C 5C7C 2C 1C
+12V
D7
R29
471
U10
74H
C59
5
7
8
9
14
3 4 5 6
10 111213
1 21516
QH
GN
D
QH
'
SI
QD
QE
QF
QG
SC
LR
SC
KR
CK
G
QB
QC
QA
VC
C
+12V
A0
CLK
_IN
U14
C
74H
C00
9 108
14 7
R3
471
+5V
B4
DIM
M_O
UT
8U
1
D23
011
9 10 8
1
7 2346
5
F G DP
COM1
A EDCB
COM2
8U
2
D23
011
9 10 8
1
7 2346
5
F GD
P
COM1
A EDCB
COM2
C13
104
1 2
CLK
_OU
T
J1 CO
N10
B
1 2 3 4 5
6 7 8 9 10
DIM
M_I
N
R13
471
R12
471
D0
+
C3 25V,470uF
12
A4
C1
R28
471
C9
104
1 2
C10
104
1 2
U5
74H
C59
5
7
8
9
14
3 4 5 6
10 111213
1 21516
QH
GN
D
QH
'
SI
QD
QE
QF
QG
SC
LR
SC
KR
CK
G
QB
QC
QA
VC
C
DA
TA_O
UT
D2
R6
471
CLK
_IN
R7
471
B0
R30
471
C11
104
1 2
A5
J2 CO
N10
B
1 2 3 4 5
6 7 8 9 10
R24
152
B2
+5V
R19
471
R18
471
R10
471
C3
R23
471
D2
A3
C5
R20
471
R25
471
+
C4 25V,470uF
12
DIM
M_I
N
B2
D5
B3
R1
471
U14
B
74H
C00
4 56
14 7
C0
D4
C6
104
1 2
D1
+12V
B5
C6
U7
ULN
2003
9
45
14
1
13
6 3 2 8711 1210 15 16
CO
M
4B5B
3C
1B
4C
6B 3B 2B E7B6C 5C7C 2C 1C
R16
152
R8
152
R5
471
D3
U14
D
74H
C00
12 1311
14 7
A4
8U
3
D23
011
9 10 8
1
7 2346
5
F G DP
COM1
A EDCB
COM2
R26
471
A6
R21
471
B3
B7
C12
104
1 2
R9
471
B1
A5
C7
104
1 2
C7
R17
471
+5V
D0
C2
C3
R31
471
CLK
_OU
T
B6
A6
+C
2 10V/100UF
1 2
B6
B1
R27
471
DIM
M_O
UT
+5V
D1
+5V
R15
471
U8
74H
C59
5
7
8
9
14
3 4 5 6
10 111213
1 21516
QH
GN
D
QH
'
SI
QD
QE
QF
QG
SC
LR
SC
KR
CK
G
QB
QC
QA
VC
C
+12V
C6
R4
471
Hardware Description
2-2. Physical Dimension
Figure 52-3. Circuit Diagram
Figure 6
© 2004-2008 Sure Electronics Inc. DE-DP003-Ver1.0-page 5
Hardware Description
Figure 72-4. Electric Characters
Power Supply: DC12V (Low9V-High13V), 0.3A/pcs (Maximum), for each additional panel, add another 0.3A, if voltage is less than 9V, the brightness would not be enough.
For over 4 panels, user 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 100kHz.
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.
© 2004-2008 Sure Electronics Inc. DE-DP003-Ver1.0-page 6
Hardware Description
2-5. Port Definition2-5-1. 7-segment LED
© 2004-2008 Sure Electronics Inc. DE-DP003-Ver1.0-page 7
Figure 8 4 Digits of 2.3 inches, common anode, high brightness red 7-segment LEDs are installed on this board. They are marked as U1-4.
2-5-2. Shift Register Data Driver
Figure 9
74HC595 is used as shift register in this board. They are U5, U8, U10, and U12, the parallel output of those 74HC595 was connected to the base of ULN2003, and collector of those ULN2003 was 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 accept 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 light on if valid data is shifted out from the 74HC595 chip. If you are changing the data in the 74HC595driven chip, set this pin to low then 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 display.
Correspondence between Character Codes and Character Patterns:
Character Patterns 0 1 2 3 4 5 6 7 8 9
Character Codes 0xfc 0x60 0xda 0xf2 0x66 0xb6 0xbe 0xe0 0xfe 0xf6
D78U4
D23011
9108
1
7
2346
5
FG
DP
CO
M1 A
EDCB
CO
M2
A2
A
A
7
1
D6B7
A0
C4
B0
C7
+12V
B48U1
D23011
9108
1
7
2346
5
FGDP
CO
M1A
EDCB
CO
M2
8U2
D23011
9108
1
7
2346
5FG
DPC
OM
1 A
EDCB
CO
M2
A4
C1B2 D2
A3
C5 D5
B3
C0
D4
D1
B5C6
D38U3
D23011
1 5
FGDP
CO
M1A
EDCB
CO
M27
9108
2346
A5
D0
C2C3
A6 B6
B1
CLK_OUT
+5V
DATA_INDIMM_OUT
U12 74HC595
7
8
9
14
3456
10
1112
13
12
1516
QH
GND
QH'
SI
QDQEQFQG
SCLR
SCKRCK
G
QBQC
QAVCC
+5V
U5 74HC595
7
8
9
14
3456
10
1112
13
12
1516
QH
GND
QH'
SI
QDQEQFQG
SCLRQBQC
QAVCC
SCKRCK
G
DATA_OUT
Hardware Description
Character Patterns a b c d E f g h i j
Character Codes 0xee 0x3e 0x1a 0x7a 0x9e 0x8e 0xf6 0x6e 0x60 0x70
Character Patterns l n o p Q r s t u y
Character Codes 0x1c 0x2a 0x3a 0xce 0xe6 0x0a 0xb6 0xe0 0x38 0x76
Figure 10
2-5-3. Data Ports Definition
© 2004-2008 Sure Electronics Inc. DE-DP003-Ver1.0-page 8
Figure 11
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 board’s input to previous one’s output. Then you could connect up to 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 12
AUXpower
AUXpower
DIMM_OUT
+12V +12VJ1
CON10B
12345
6789
10
DIMM_IN
+12V
DATA_OUT
J2
CON10B
12345
6789
10DATA_IN CLK_OUTCLK_IN
+12V
Hardware Description
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 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. And be sure the polarity is correct.
2-5-5. Data Buffer
© 2004-2008 Sure Electronics Inc. DE-DP003-Ver1.0-page 9
Figure 13
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.
DIMM_OUT
U14A
74HC00
1
23
14
7
CLK_IN
U14C
74HC00
9
108
14
7
DIMM_IN
U14B
74HC00
4
56
14
7
U14D
74HC00
12
1311
14
7
+5V
CLK_OUT
2.3" Character Height 7-Segment LED Information Board
User’s Guide
© 2004-2008 Sure Electronics Inc.
Chapter3. Sample Codes
3-1. LED Segment Drive Demo Board’s Schematic
DE-DP003-Ver1.0-page 10
Figure 14
3-2. How to Connect Load
R4 472
DATA
SW2SW DIP-41234
8765
POWER
ICSPCLK
C5
104
12
C1
104
12
U2 78M05/TO
1
4
3VIN
GN
D
VOUT
DIMM
+5V
+12V
R3 472
J4 DJ005B
321
J2 CON 6
123456
+ C2
100uF/16V
12
U1 PIC10F200
4
1 6
5
3
2
GP2/T0CKI/FOSC4
GP0/ICSPDAT GP3/MCLR/VPP
VDD
GP1/ICSPCLK
VSS
+5V
DIMMCLK
+12V
MCLR+5V
CLK R5 472
R1
472
SW1
+5VPOWER
D11N58171 2
ICSPCLK
POWER
ICSPDAT
ICSPDATR2 472
J3
CON2
12
DATA
4
+C3
100UF/10V
12
+5V
1
2
3
C4
104
12
MCLR
J1 CON10B
12345
6789
10
Sample Codes
J4
J3 J- 1
10 Pin IDC Flat Cable
DC 12V,1A InputPower Supply form J3 or J4
LED SegmentDrive DemoBoard
J1+
J2
2.3inch LED Board
Figure 15
OutputVoltage 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 shouldn’t 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-DP003-Ver1.0-page 11
Sample Codes
� 2004-2008 Sure Electronics Inc. DE-DP003-Ver1.0-page 12
#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-DP003-Ver1.0-page 13
}
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; } 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();
Sample Codes
© 2004-2008 Sure Electronics Inc. DE-DP003-Ver1.0-page 14
LED_data(); DIMM = 1; LED_display(); DIMM = 0; //Active–low Output Enable
delay_2ms(); } }
2.3" Character Height 7-Segment LED Information Board
User’s 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: [email protected] Website: www.sure-electronics.net www.sure-electronics.com
www.sureelectronics.net
DE-DP003-Ver1.0-page 15