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ZH2
0
.
5
T
TH
Z
1
2
0
CL=30
0p
F
Se
g
n
Gr
id
n
F
ma
x
M
Hz
50
%
CI
15
p
F
l Ta=-40+
85
VDD=4.
5 5
.
5V
PW
CL
K
40
0
n
s
PW
ST
B
t
S
ET
UP
10
0
n
s
tH
OL
D
10
0
n
s
tW
AI
T
CL
K
C
LK
www.titanmec.com
Page 4 of 16
Rev.03
L
ED
T
M16
40
TM1640
CLK DIN CLK
DIN ,
. CLK DIN
CLK DIN
SCLK
DIN
bit0
bit1
bit2
bit3
bit4
bit5
bit6
bit7
End
Start
SRAM 1
Command1
Command2
dat
a1
dat
aN
start endstart
Command3
endstart
end
Command1:
Command2:
Data1~N:
Command3:
SRAM
Command1
Command2
dat
a1
Command2
start endstart
dat
aN
Command3
endstart
Command1:
Command2:
Data1~N:
Command3:
www.titanmec.com
Page 5 of 16
Rev.03
end
L
ED
T
M16
40
LED
STARTDIN
B7B6
B7
B6
0
1
1
0
1
1
END
7.1
B7
B6
0
0
1
1
B5
B4
B3
B2
0
1
B1
B0
()
7.2
B7
B6
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
B5
B4
B3
B2
B1
B0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
00H
01H
02H
03H
04H
05H
06H
07H
08H
09H
0AH
0BH
0CH
0DH
0EH
0FH
www.titanmec.com
Page 6 of 16
Rev.03
L
ED
T
M16
40
00H
SEG8 SEG7
B7
B6
SEG6
SEG5
B5
B4
SEG4 SEG3
B3
B2
SEG2
SEG1
B1
B0
00H
01H
02H
03H
04H
05H
06H
07H
08H
09H
0AH
0BH
0CH
0DH
0EH
0FH
GRID1
GRID2
GRID3
GRID4
GRID5
GRID6
GRID7
GRID8
GRID9
GRID10
GRID11
GRID12
GRID13
GRID14
GRID15
GRID16
7.3
MSB
LSB
B7
B6
1
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
B5
B4
B3
B2
B1
B0
1
1
1
1
1
1
1
1
0
1
0
0
0
0
1
1
1
1
X
X
0
0
1
1
0
0
1
1
X
X
0
1
0
1
0
1
0
1
X
X
()
1/16
2/16
4/16
10/16
11/16
12/16
13/16
14/16
www.titanmec.com
Page 7 of 16
Rev.03
L
ED
T
M16
40
www.titanmec.com
Page 8 of 16
Rev.03
L
ED
T
M16
40
LED1
SEG1 1
SEG2 2
SEG3 3
SEG4 4
SEG5 5
SEG6 6
SEG7 7
SEG8 8
LED3
DPY
a
a
b
c f
b
g
d
e e
c
d
f
dp
g
dp
GRID1
SEG1 1
SEG2 2
SEG3 3
SEG4 4
SEG5 5
SEG6 6
SEG7 7
SEG8 8
LED2
SEG1 1
SEG2 2
SEG3 3
SEG4 4
SEG5 5
SEG6 6
SEG7 7
SEG8 8
LED5
DPY
a
a
b
c f
b
g
d
e e
c
d
f
dp
g
dp
GRID3
SEG1 1
SEG2 2
SEG3 3
SEG4 4
SEG5 5
SEG6 6
SEG7 7
SEG8 8
LED4
DPY
a
a
b
c f
b
g
d
e e
c
d
f
dp
g
dp
GRID2
SEG1 1
SEG2 2
SEG3 3
SEG4 4
SEG5 5
SEG6 6
SEG7 7
SEG8 8
DPY
a
a
b
c f
b
g
d
e e
c
d
f
dp
g
dp
GRID5
LED6
DPY
a
a
b
c f
b
g
d
e e
c
d
f
dp
g
dp
GRID4
SEG1 1
SEG2 2
SEG3 3
SEG4 4
SEG5 5
SEG6 6
SEG7 7
SEG8 8
DPY
a
a
b
c f
b
g
d
e e
c
d
f
dp
g
dp
GRID6
U1
VCC
C1
104
VCC
C2
100uF
R1
10K
MCU_DO
MCU_SCLK
R2
10K
1
2
3
4
5
6
7
8
SEG1 9
SEG210
SEG311
SEG412
SEG513
SEG614
GRID12
GRID13
GRID14
GRID15
GRID16
VSS
DIN
SCLK
SEG1
SEG2
SEG3
SEG4
SEG5
SEG6
GRID11
GRID10
GRID9
GRID8
GRID7
GRID6
GRID5
GRID4
GRID3
GRID2
GRID1
VDD
SEG8
SEG7
28
27
26
25
24
23
22
21
20
19
18
17
16
15
GRID6
GRID5
GRID4
GRID3
GRID2
GRID1
VCC
SEG8
SEG7
TM1640
www.titanmec.com
Page 9 of 16
Rev.03
L
ED
T
M16
40
IC (SOP28)
www.titanmec.com
Page 10 of 16
Rev.03
L
ED
T
M16
40
1. Description
TM1640 is a LED(lighting diodes displayer) driver controller, MCU digit interface, data latch, LED high pressure driver
build in a single chip with good performance, reliable quality. TM1640 is main apply for screen driver of electronic scale
and small household. SOP28 is available.
2. Feature
Power CMOS technology
Display mode (8seg16grid), support common cathode output
Grid adjustable circuit ( duty ratio 8 level adjustable)
2line serial interface (CLK, DIN)
Oscillation mode: inner oscillation (450 KHz450KHz+5%)
Build-in power-on reset circuit
Package:SOP28
3, Pin Definition
4.P
i
nfu
n
cti
onde
fi
ni
t
io
n
Symbol
Pin Name
Pin No
description
D
I
N
Da
tain
pu
t
Se
ri
alda
tain
pu
t,in
pu
td
a
t
ac
ha
ng
eu
nd
er
S
CL
Kl
owl
ev
e
l,a
n
dbe
ent
r
an
sm
i
tun
de
rS
C
L
K
hi
g
hle
v
el
S
CL
K
C
lo
c
kin
p
ut
I
np
u
tda
t
aatth
er
i
s
in
ge
d
g
e
www.titanmec.com
Page 11 of 16
Rev.03
L
ED
S
G1
~
SG
8
ou
t
pu
t
se
gm
en
t
916
GR
I
D1
~G
RI
D
1
1
1
8
-2
8
O
ut
p
ut
(b
i
t)
GR
ID
12
~
GR
ID
16
1
-5
T
M16
40
S
eg
m
en
to
ut
pu
t,Pc
h
a
nn
elo
p
en
-d
r
ai
nou
t
pu
t
B
i
tou
tp
u
t
N
ch
an
n
elo
pe
n
d
ra
i
nou
tp
u
t
V
D
D
L
og
i
cpo
w
er
1
7
5V
1
0%
V
S
S
L
og
ic
gr
o
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
t
co
n
di
ti
o
n
C
l
oc
kp
ul
sew
i
dt
h
P
WC
LK
4
00
n
s
Ga
t
epu
ls
ew
id
t
h
P
WS
TB
D
at
ab
ui
ld
i
ngt
im
e
tS
E
TU
P
1
00
n
s
D
at
as
to
ckt
i
me
t
HO
LD
1
00
n
s
Wa
i
ti
ngti
m
e
t
WA
IT
C
LK
C
LK
6. Interface description
Data of MPU communicate via 2line bus interface and TM1640, when input data under
high level, the signal of DIN must keep same; when the clock signal of CLK is low level,
the signal of DIN could change. Data input always low bit first, high level later. The
start condition of data input is DIN from high to low during CLK is high level; the over
condition is DIN from low level to high level during CLK is high.
Instruction data transmit as below chart:
www.titanmec.com
Page 14 of 16
Rev.03
L
ED
T
M16
40
SCLK
DIN
bit0
bit1
bit2
bit3
bit4
bit5
bit6
bit7
End
Start
Command1
Command2
dat
a1
dat
aN
start endstart
Command3
endstart
end
Command1
Command2
dat
a1
dat
aN
start endstart
Command3
endstart
end
Command1:setting data
Command2:setting address
Data1~N:transmit display data
Command3:control display
Write SRAM data fixed address mode:
Command1
Command2
dat
a1
start endstart
Command2
dat
aN
Command3
endstart
end
Page 15 of 16
Rev.03
L
ED
T
M16
40
translate decoding, get the highest B7,B6 bit to distinguish different instruction.
B7
B6
0
1
Data instruction setting
Display control instruction
1
0
setting
1
1
Address instruction setting
Chart7 instruction setting
If END valid during transmitting data or instruction, serial communication is
initialized, and the transmitting data and instruction is invalid (the data and
instruction transmitted before that still valid.)
7.1 Data instruction setting:
7.2
B7
B6
B5
B4
B3
B2
B1
B0
0
For
irrelevant
term
input 0
1
0
For
irrelevant
term
input 0
description
Address
auto-add 1
Fixed address
Normal mode
Test mode
(inner use)
B6
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
B5
B4
Irrelevant
term
input 0
B3
B2
B1
B0
Display address
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
00H
01H
02H
03H
04H
05H
06H
07H
08H
09H
0AH
0BH
0CH
0DH
0EH
0FH
www.titanmec.com
Page 16 of 16
Rev.03