4 inch character height 7-segment led information board user's
TRANSCRIPT
4 inch Character Height 7-segment LED Information Board
User’s Guide
© 2004-2008 Sure Electronics Inc. DE-DP004-Ver1.0
4 inch 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 .................................................................................................................... 11-2. Part Layout.................................................................................................................. 21-3. Main Feature ............................................................................................................. 3
Chapter2.Hardware Detail .................................................................................................... 42-1. Schematic ................................................................................................................ 42-2. Physical Dimension ............................................................................................... 52-3. Circuit Diagram ....................................................................................................... 52-4. Electric Characters................................................................................................. 62-5. Port Definition ......................................................................................................... 7
2-5-1. 7-segment LED............................................................................................ 72-5-2. Shift Register Data Drive ........................................................................... 72-5-3. Data Ports Definition .................................................................................. 82-5-4. Auxiliary Power Port ...................................................................................92-5-5. Data Buffer ................................................................................................... 9
Chapter3.Sample Codes ..................................................................................................... 113-1. LED Segment Drive Demo Board’s Schematic ............................................... 113-2. How to Connect Load .......................................................................................... 123-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
User’s 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
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, 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
User’s 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
DA
TA_O
UT
U4
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
A3
B5
U5B
74H
C00
4 56
14 7
U5D
74H
C00
12 1311
14 7
B2
+5V
+12V
R7
331
DIM
M_O
UT
A7
U5A
74H
C00
1 23
14 7
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
A4
CLK
_OU
T
+5V
A6
C7
104
1 2
R5
331
R4
331
A4
U5C
74H
C00
9 108
14 7
J2C
ON
10B
1 2 3 4 5
6 7 8 9 10
R2
331
+12V
DIM
M_O
UT
A1
+12V
A5
CLK
_OU
T
A2
B3
C4
104
1 2
DIM
M_O
UT
R8
152
C8
104
1 2
A5
C3
104
1 2
B7
D1
1N58
191
2
R9
102
U8
78M
05/T
O1
4
3V
IN
GNDVO
UT
C10
104
1 2
R6
331
B1
+C
5
10V
/100
UF
1 2
A2
J4 CO
N2
1 2
B2
DAT
A_I
N
R18
102
J1C
ON
10B
1 2 3 4 5
6 7 8 9 10
DIM
M_I
N
+12V
B0
U6
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
B5
+C
1
25V
,470
uF
1 2
+12V
B6
R15
331
C6
104
1 2
+12V
A6
+12V
R17
152
R11
331
A7
A3
+12V
U3
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
QCQA
VC
C
C9
104
1 2
DIM
M_I
N
J3 CO
N2
1 2
+12V
B1
+5V
DA
TA_I
N
R10
331
B4
B7
R12
331
DA
TA_O
UT
+C
2
25V
,470
uF
1 2
A1
+12V
B3
A0
B0
CLK
_IN
R14
331
+5V
CLK
_OU
T
R3
331
+5V
A0
B4
R13
331
R1
331
R16
331
Q2
9014
2
13
CLK
_IN
Q1
9014
2
13
8U
1
D40
011
9 10 5
1
7 2346
8
F G DP
COM1
A EDCB
COM2
B6
8U
2
D40
011
9 10 5
1
7 2346
8
F GD
P
COM1
A EDCB
COM2
Hardware Detail
marked in the schematic. 2-2. Physical Dimension
Figure 32-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 B6B58
U1
D40011
9105
1
7
2346
8FGDP
CO
M1A
EDCB
CO
M2
A2A3
A0 B0
8U2
D40011
9105
1
7
2346
8
FG
DP
CO
M1 A
EDCB
CO
M2
B7A7
B2
+12V
A1
B3
A5A4 B4
B1
U6 74HC595
7
8
9
14
3456
10
1112
13
12
1516
QH
GND
QH'
SI
QDQEQFQG
SCLR
SCKRCK
G
QBQC
QAVCC
R14 331
B6B5
Q2
90142
13
A2
R6 331
A3
R11 331
R1 331
B4
R2 331
R7 331A7
R16 331
R12 331
A0
R15 331
DIMM_OUT
A1
B1
R3 331
R10 331
+5VU3 74HC595
7
8
9
14
3456
10
1112
13
12
1516
QH
GND
QH'
SI
QDQEQFQG
SCLR
SCKRCK
G
QBQC
QAVCC
B2
DATA_IN
DATA_OUT R18 102
U7 ULN2003
9
45
14
1
13
6
32
8
71112
10
1516
COM
4B5B
3C
1B
4C
6B
3B2B
E
7B6C5C
7C
2C1C
Q1
90142
13
R9 102
R13 331
R8 152
U4 ULN2003
9
45
14
1
13
6
32
8
71110
12
1516
COM
4B5B
3C
1B
4C
6B
3B2B
E
7B6C5C
7C
2C1CCLK_OUT
R5 331
B7
B0
R4 331
+5V
B3
R17 152
A6
A4A5
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
00xda 0xf2 0x6
60xb6
0xbe
0xe0 0xfe 0xf6
Character Patterns a b c d E f g h i j
Character Codes
0xee
0x3e
0x1a
0x7a
0x9e
0x8e 0xf6 0x6
e0x60
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
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 board’s input to previous one’s output. Then you could connect up to
CLK_IN
+12V+12V +12VJ2 CON10B
12345
6789
10DATA_IN
+12V
CLK_OUT
J1 CON10B
12345
6789
10
DIMM_IN DIMM_OUTDATA_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
108
14
7
DIMM_IN
CLK_INCLK_OUT
U5D
74HC00
12
1311
14
7
+5V
DIMM_OUT
U5A
74HC00
1
23
14
7
U5B
74HC00
14
4
56
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
User’s Guide
© 2004-2008 Sure Electronics Inc.
Chapter3.Sample Codes
3-1. LED Segment Drive Demo Board’s Schematic
DE-DP004-Ver1.0-page 11
Figure 11
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
3-2. How to Connect Load
10 Pin IDC Flat Cable
J1
J4
J3 J2
4 inch LED Board
+J1-
LED SegmentDrive DemoBoard
Power Supply form J3 or J4DC 12V,1A Input
Figure 12
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-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; //Active–low Output Enable
delay_2ms(); } }
4 inch 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-DP004-Ver1.0-page 15