TM1638-Titan Micro
TM1638-Titan Micro
TM1638 is LED driver controller with key-scan interface, MCU digital interface, data latch, LED
high pressure driver, key-scan is integrated into a single chip. TM1638 main apply for fridge, air
condition and home theatre as high-seg display driver.
2. Feature
3. Pin definition
1 28
K1 STB
2 27
K2 CLK
3 26
K3 DIO
4 25
VDD GND
5 24
SEG1/KS1 GRID1
6 23
SEG2/KS2 GRID2
7 22
SEG3/KS3 GRID3
8 21
SEG4/KS4 GRID4
9 20
SEG5/KS5 GRID5
10 19
SEG6/KS6 GRID6
11 18
SEG7/KS7 GND
12 17
SEG8/KS8 GRID7
13 16
SEG9 GRID8
14 15
SEG10 VDD
www.titanmec.com
-1-
4. Pin function definition
Key-scan data data inputted into the Pin would be latch after
K1 K3
input display cycle close.
SEG1/KS1~ output
Segment output, P pipe open-drain output
SEG8/KS8 segment
output
SEG9 SEG10 Segment output, p pipe open-drain output
segment
Note: DIO output data is N pipe open-drain output, when read key demand connect 1K-10K rising
resistance. We promote 10K rising resistance. The read data is unsteady during DIO control N
pipe action at the falling edge of shift close. You could refer to below chart(6), the data is steady
during the rising edge.
VCC
10K
DIO
CT
GND
www.titanmec.com
-2-
5. Display register address and display mode
The register transmits data from outside device to TM1638 via serial interface, address
from00H-0FH total 16 byte units. And separately correspond with LED light of chip SGE and
GRID pin. As below chart:
Write LED display data from high to low of display address, from low to high of data byte.
Write LED display data from high to low of display address, from low to high of data byte. For
don’t used SEG output interface, please input 0 into correspond BIT address.
K2
K3
KS1
KS2
KS3
KS4
KS5
KS6
KS7
KS8
Key-scan data stock address as chart(4), after send read key instruction, start to read key data
BYTE1-BYTE4, read data from low to output, when press pin of chipK and KS, the BIT of
correspond byte is 1.
www.titanmec.com
-3-
Chart(4)
7. Instruction description
www.titanmec.com
-4-
7.2 Address instruction setting
MSB LSB
Display
B7 B6 B5 B4 B3 B2 B1 B0
address
1 1 0 0 0 0 00H
1 1 0 0 0 1 01H
1 1 0 0 1 0 02H
1 1 0 0 1 1 03H
1 1 0 1 0 0 04H
1 1 0 1 0 1 05H
Not
avaiable
input 0
www.titanmec.com
-5-
8.1 data receive (write data)
CLK 1 2 3 4 5 6 7 8
DIO B0 B1 B2 B3 B4 B5 B6 B7
STB
8.2 data read
CLK 1 2 `````` 8
DIO B0 B1 `````` B7 B0 B1 B2 B3
STB
Twait
Notice: When read data, set instruction from the 8th rising edge of clock to CLK falling edge to
read data that demand a waiting time Twait(min 1 S).
SEG2 1
SEG1
SEG2
SEG3 1 A DPY
SEG3 B a
SEG7 1
Chart(7)
Chart(7) is sketch map for common cathode digitron connection, if demand the nixie tube display”0”,
www.titanmec.com
-6-
2. Driver common anode nixie tube
GRID1 1
GRID2 1
GRID1
GRID2
GRID3 1 A DPY
GRID3 B a
GRID7 1
chart(8) is sketch map for common anode digitron connection, if demand the nixie tube display”0”,
www.titanmec.com
-7-
K1 STB
K2 CLK
vcc
K3 DIO
VDD GND
1 SEG1/KS1 GRID1
2
SEG2/KS2 GRID2
SEG3/KS3 GRID3
R1 R2 SEG4/KS4 GRID4
1k 1k SEG5/KS5 GRID5
SEG6/KS6 GRID6
SEG7/KS7 GND
SEG8/KS8 GRID7
SEG9 GRID8
SEG10 VDD
SEG1/KS1
SEG2/KS2
SEG3/KS3
SEGN/KSN
Tdisp=500us
K1 S1 S3 S5
K2 S2 S4
K3 S6
www.titanmec.com
-8-
SGE1/KS1
S1
SGE2/KS2
S2
D1 D2
1
K1
GRID1
SGE1/KS1
S1
D1 D2
1
1
S2
GRID1 GRID2 K1 K2
Ω too high will invalid key, too low cannot solve disturb problem.
SGE1/KS1
510 S1
SGE2/KS2
510 S2
D1 D2
1
K1
GRID1
SGE1/KS1
S1
SGE2/KS2
S2
D1 D2
1
K1
GRID1
www.titanmec.com
-9-
CLK
STB
CLK
STB
CLK
STB
www.titanmec.com
- 10 -
42H
No
1BTYE
1 40H
MCU
0C0H
No
4BYTE
Yes
16BYTE
No
Yes
Yes
8FH
www.titanmec.com
- 11 -
8FH
42H
No
44H
1BTYE
0C0H MCU
1BYTE
4BYTE
Yes
0C1H
1BYTE
No
Yes
……
www.titanmec.com
- 12 -
11. Application circuit
11.1 TM1638 driver common anode digit screen hardware circuit, as chart(16):
LED1 LED2 LED3 LED4
GR1 a DPY GR1 a DPY GR1 a DPY GR1 a DPY
GR2 b a GR2 b a GR2 b a GR2 b a
GR3 c f b GR3 c f b GR3 c f b GR3 c f b
GR4 d g SG1 GR4 d g SG4 GR4 d g SG7 GR4 d g SG10
GR5 e e c GR5 e e c GR5 e e c GR5 e e c
GR6 f d GR6 f d GR6 f d GR6 f d
GR7 g dp GR7 g dp GR7 g dp GR7 g dp
GR8 dp GR8 dp GR8 dp GR8 dp
LED7 LED8 LED9
GR1 a DPY GR1 a DPY GR1 a DPY
GR2 b a GR2 b a GR2 b a
GR3 c f b GR3 c f b GR3 c f b
GR4 d g SG2 GR4 d g SG5 GR4 d g SG8
GR5 e e c GR5 e e c GR5 e e c
GR6 f d GR6 f d GR6 f d
GR7 g dp GR7 g dp GR7 g dp
GR8 dp GR8 dp GR8 dp
LED13 LED14 LED15
GR1 a DPY GR1 a DPY GR1 a DPY
GR2 b a GR2 b a GR2 b a
GR3 c f b GR3 c f b GR3 c f b
GR4 d g SG3 GR4 d g SG6 GR4 d g SG9
GR5 e e c GR5 e e c GR5 e e c
GR6 f d GR6 f d GR6 f d
GR7 g dp GR7 g dp GR7 g dp
GR8 dp GR8 dp GR8 dp
SG1
SG2
SG3
SG4
SG5
SG6
SG7
SG8
S2 S5 S8 S11 S14 S17 S20 S23
K1
S3 S6 S9 S12 S15 S18 S21 S24
K2
S25 S26 S27 S28 S29 S30 S31 S32
K3
VCC
R3
VCC R2
10K R1
10K
IC? 10K
K1 STB
C1 K1 STB
K2 CLK
100uF C2 K2 CLK
VCC K3 C3 DIO
104 K3 DIO
C4
VDD GND
SG1 GR1 C5
SEG1/KS1 GRID1
SG2 GR2 101
SEG2/KS2 GRID2
SG3 GR3 101
SEG3/KS3 GRID3
SG4 GR4 101
SEG4/KS4 GRID4
SG5 GR5
: VDD, SG6
SEG5/KS5 GRID5
GR6
SEG6/KS6 GRID6
GND . SG7
SEG7/KS7 GND
SG8 GR7
SEG8/KS8 GRID7
SG9 GR8
SEG9 GRID8
SG10
SEG10 VDD
TM1638
Chart(16)
11.2 TM1638 Driver common cathode digit screen hardware circuit, as chart(17):
www.titanmec.com
- 13 -
DVD
VCD dts
MP3 PBC DDD
g
h
1
2
3
4
5
6
7
8
a
e
f
GR1
GR2
GR3
GR4
GR5
GR6
GR7
GR8
SG1
SG2
SG3
SG4
SG5
SG6
SG7
SG8
VCC
R3
VCC R2
10K R1
10K
10K
K1 STB
C1 K1 STB
K2 CLK
100uF C2 K2 CLK
VCC K3 C3 DIO
104 K3 DIO
C4
VDD GND
SG1 GR1 C5
SEG1/KS1 GRID1
SG2 GR2 101
SEG2/KS2 GRID2
SG3 GR3 101
SEG3/KS3 GRID3
SG4 GR4 101
SEG4/KS4 GRID4
SG5 GR5
: VDD, SEG5/KS5 GRID5
SG6 GR6
SEG6/KS6 GRID6
GND . SG7
SEG7/KS7 GND
SG8 GR7
SEG8/KS8 GRID7
SG9 GR8
SEG9 GRID8
SG10
SEG10 VDD
TM1638
SG1
SG2
SG3
SG4
SG5
SG6
SG7
SG8
S2 S5 S8 S11 S14 S17 S20 S23
K1
S3 S6 S9 S12 S15 S18 S21 S24
K2
S25 S26 S27 S28 S29 S30 S31 S32
K3
Chart(17)
Notice:
www.titanmec.com
- 14 -
Normal work range(Ta = -20 +70 Vss = 0 V
www.titanmec.com
- 15 -
Timing feature Ta = -20 +70 VDD = 4.5 5.5 V
www.titanmec.com
- 16 -
www.titanmec.com
- 17 -
www.titanmec.com
- 18 -