You are on page 1of 13

Tel 020 38730976 38730977 Fax 38730925 Http://www.zlgmcu.

com

3.2 ZLG7289A LED

3.2.1

ZLG7289A SPI 8
64 LED 64
LED
ZLG7289A BCD 16 2

ZLG7289A 8 64



LED
/
/
LED
64

VCC=5.0V Fosc=16MHz,TA=25

VCC 2.7 5.0 6.0 V
ICC LED 3 5 mA
ICC LED 60 100 mA
ISEG=10mA
VIH 2.0 5.5 V
VIL 0 0.8 V
TKEY 10 18 40 mS
IKO KEY 7 mA
IKI KEY 10 mA
T1 CS CLK 25 50 250 uS
T2 CLK 5 8 250 uS
T3 CLK 5 8 250 uS
T4 15 25 250 uS
T5 15 25 250 uS
T6 5 8 uS
T7 CLK 5 8 250 uS
T8 DATA 5 uS

-1-
Tel 020 38730976 38730977 Fax 38730925 Http://www.zlgmcu.com


1 2 VDD
3 5 NC
4 VSS
6 /CS
7 CLK

8 DATA /

9 /KEY
10-16 SG-SA g a
17 DP
18-25 DIG0-DIG 0 7
7
26 OSC2
27 OSC1
28 /RESET

3.2.2

ZLG7289A
1.
(1)
D7 D6 D5 D4 D3 D2 D1 D0
1 0 1 0 0 1 0 0
ZLG7289A

(2)
D7 D6 D5 D4 D3 D2 D1 D0
1 0 1 1 1 1 1 1
LED

(3)
D7 D6 D5 D4 D3 D2 D1 D0
1 0 1 0 0 0 0 1
1 8

1 2 3 4 5 6 7 8

-2-
Tel 020 38730976 38730977 Fax 38730925 Http://www.zlgmcu.com

2 2 4 4
2 3 4 5 6 7 8
3 5

(4)
D7 D6 D5 D4 D3 D2 D1 D0
1 0 1 0 0 0 0 0

8 1

(5)
D7 D6 D5 D4 D3 D2 D1 D0
1 0 1 0 0 0 1 1
8 1

2 3 4 5 6 7 8 1
3 5

(6)
D7 D6 D5 D4 D3 D2 D1 D0
1 0 1 0 0 0 1 0

2.

(1) 0
D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0
1 0 0 0 0 a2 a1 a0 DP X X X d3 d2 d1 d0
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289A

8
d1 d8 0
ZLG7289A

(6)
D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0
1 1 1 0 0 0 0 0 X X d5 d4 d3 d2 d1 d0

LED LED
X= d0 d5 00H 3FH
1 G 00H F 01H . A 06H, DP 07H, 2
G 08H,F 09H, , 8 DP 3FH

(7)
D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0
1 1 0 0 0 0 0 0 X X d5 d4 d3 d2 d1 d0

(8)
D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0
0 0 0 1 0 1 0 1 d7 d6 d5 d4 d3 d2 d1 d0
ZLG7289A 0001010B
ZLG7289A d0 d7 ZLG7289A 0 3FH
0xFF ZLG7289A 7
S0--S63 0--63 0--3FH
ZLG7289A DATA

-5-
zlg7289.doc

DATA DATA I/O



ZLG7289A KEY
ZLG7289A
ZLG7289A FFH 11111111B

3.2.3 SPI

ZLG7289A DATA CLK


DATA CLK ZLG7289A
ZLG7289A 1. 8 BIT
8 CLK 2. 16 BIT 16 CLK 3.
16 BIT 8 ZLG7289A 8 BIT ZLG7289A
ZLG7289A DATA 9 CLK
16

-6-
zlg7289.doc

ZLG7289A

ZLG7289A

8 10K 8 100K
10K 8 100K
DP SA-SG 8
8 8 DIG0-DIG7 8
5 50 10
10K-100K 1K-10K

ZLG7289A F=16MHz C=15P



ZLG7289A
ZLG7289A RESET VCC
MCU RESET ZLG7289A
18-25MS
KEY
ZLG7289A
2 10 ZLG7289A
0FFH 255
CPU ZLG7289A
LED
47U 220U

-7-
zlg7289.doc

2 ZLG7289A ZLG7289A
2 2

3.2.5

PHILIPS P87LPC762 ZLG7289A


10 ZLG7289A

P87LPC762 6MHz
ZLG7289A 12MHz

-8-
zlg7289.doc

BIT_CNT DATA 30H


DELAY1 DATA 31H
DECIMAL DATA 32H
REC_BUF DATA 20H
SEND_BUF DATA 21H

CS BIT P0.1
CLK BIT P0.2
DIO BIT P0.3
KEY BIT P0.4

ORG 00H
AJMP RESET

RESET

MOV P0M2,#00000000B
MOV WDCON,#00010101B ; 1
SETB CS
SETB KEY
SETB DIO
MOV DELAY,#25 ; 25MS
RST_DELAY1
MOV WDRST,#01EH
MOV WDRST,#0E1H
DJNZ DELAY1,RST_DELAY1
DJNZ DELAY,RST_DELAY1
MOV SEND_BUF,#10100100B ;
CALL SEND
SETB CS
MAIN_LP
MOV WDRST,#O1EH ;
MOV WDRST,#0E1H
JB KEY,MAIN_LP

-9-
zlg7289.doc

MOV SEND_BUF,#00010101B ;,
CALL SEND
CALL RECEIVE ;
SETB CS
MOV B,#10 ;10
MOV A,REC_BUF
DIV AB
MOV DECIMAL,A
MOV SEND_BUF,#10100001B ; 2 .
CALL SEND
SETB CS
MOV SEND_BUF,#10100001B
CALL SEND
SETB CS
MOV SEND_BUF,#10000001B ;.
CALL SEND
MOV SEND_BUF,DECIMAL ; 10 ZLG7289A
CALL SEND
SETB CS
MOV SEND_BUF,#10000000B ;.
CALL SEND
MOV SEND_BUF,B ; ZLG7289A
CALL SEND
SETB CS
MOV SEND_BUF,#10001000B ;
CALL SEND
MOV SEND_BUF,#11111100B
CALL SEND
SETB CS
MAIN_LP2:
JNB KEY,MAIN_LP2 ;.
AJMP MAIN_LP

-----------------------------------------
ZLG7289A,
-----------------------------------------
SEND
MOV BIT_CNT,#8 ; 8 .
CLR CS
CALL LONG_DELAY ; 50 .
SEND_LP:
MOV A,SEND_BUF
RLC A
MOV SEND_BUF,A

- 10 -
zlg7289.doc

MOV DIO,C
NOP
NOP
SETB CLK
CALL SHORT_DELAY ; 10 .
CLK CLK
CALL SHORT_DELAY ; 10 .
DJNZ BIT_CNT,SEND_LP
CLR DIO
RET
-------------------------------------
ZLG7289A ,
-------------------------------------
RECEIVE:
MOV BIT_CNT,#8 ; 8 .
SETB DAT
CALL LONG_DELAY ; 50 .
RECEIVE_LP
SETB CLK
CALL SHORT_DELAY ; 10 .
MOV C,DIO ; REC_BUF .
MOV A,REC_BUF
RLC A
MOV REC_BUF,A
CLR CLK
CALL SHORT_DELAY ; 10 .
DJNZ BIT_CNT,RECEIVE_LP
CLR DIO
RET
LONG_DELAY:
MOV DELAY,#25
DJNZ DELAY,$
RET
SHORT_DELAY
MOV DELAY,#4
DJNZ DELAY,$
RET

- 11 -
Tel: (020)38730976 38730977 Fax: 38730925 http://www.zlgmcu.com

28-L ead P las tic Dual In-line (P ) 600 mil (P DIP )

E1

2
n 1

A A2

c L

B1
A1
B p
eB

Units INC HE S * MILLIME T E R S


Dimens ion Limits MIN NO M MAX MIN NOM MAX
Number of P ins n 28 28
P itch p .100 2.54
Top to S eating P lane A .160 .175 .190 4.06 4.45 4.83
Molded P ackage T hicknes s A2 .140 .150 .160 3.56 3.81 4.06
B as e to S eating P lane A1 .015 0.38
S houlder to S houlder W idth E .595 .600 .625 15.11 15.24 15.88
Molded P ackage W idth E1 .505 .545 .560 12.83 13.84 14.22
Overall Length D 1.395 1.430 1.465 35.43 36.32 37.21
Tip to S eating P lane L .120 .130 .135 3.05 3.30 3.43
Lead T hicknes s c .008 .012 .015 0.20 0.29 0.38
Upper Lead W idth B1 .030 .050 .070 0.76 1.27 1.78
Lower Lead W idth B .014 .018 .022 0.36 0.46 0.56
Overall R ow S pacing eB .620 .650 .680 15.75 16.51 17.27
Mold Draft Angle Top 5 10 15 5 10 15
Mold Draft Angle B ottom 5 10 15 5 10 15
* C ontrolling P arameter
S ignificant C haracteris tic
Notes :
Dimens ions D and E 1 do not include mold flas h or protrus ions . Mold flas h or protrus ions s hall not exceed
.010( 0.254mm) per s ide.
J E DE C E quivalent: MO -011
Drawing No. C 04-079
Tel: (020)38730976 38730977 Fax: 38730925 http://www.zlgmcu.com

28-L ead P las tic S mall Outline (S O) Wide, 300 mil (S OIC )

E
E1
p

B
2
n 1

45

c
A A2


L A1

Units INC HE S * MILLIME T E R S


Dimens ion Limits MIN NOM MAX MIN NOM MAX
Number of P ins n 28 28
P itch p .050 1.27
Overall Height A .093 .099 .104 2.36 2.50 2.64
Molded P ackage T hicknes s A2 .088 .091 .094 2.24 2.31 2.39
S tandoff A1 .004 .008 .012 0.10 0.20 0.30
Overall W idth E .394 .407 .420 10.01 10.34 10.67
Molded P ackage W idth E1 .288 .295 .299 7.32 7.49 7.59
Overall Length D .695 .704 .712 17.65 17.87 18.08
C hamfer Dis tance h .010 .020 .029 0.25 0.50 0.74
F oot Length L .016 .033 .050 0.41 0.84 1.27
F oot Angle Top 0 4 8 0 4 8
Lead T hicknes s c .009 .011 .013 0.23 0.28 0.33
Lead W idth B .014 .017 .020 0.36 0.42 0.51
Mold Draft Angle Top 0 12 15 0 12 15
Mold Draft Angle B ottom 0 12 15 0 12 15
* C ontrolling P arameter
S ignificant C haracteris tic
Notes :
Dimens ions D and E 1 do not include mold flas h or protrus ions . Mold flas h or protrus ions s hall not exceed
.010 (0.254mm) per s ide.
J E DE C E quivalent: MS -013
Drawing No. C 04-052