The HT6221/HT6222 are CMOS LSI encoders
designed for use in remote control systems. They
are capable of encoding 16-bit address codes and
8-bit data codes. Each address/data input can be
set to one of the two logic states, 0 and 1.
HT6221/HT6222
Multi-Purpose Encoders
PPM code method
·
Three double-active keys
·
Maximum active keys
·
-
HT6221: 32 keys
-
HT6222: 64 keys
Low power and high noise immunity
·
CMOS technology
Car door controllers
·
Car alarm systems
·
Security systems
·
Other remote control systems
·
The HT6221/HT6222 contain 32 keys
(K1~K32) and 64 keys (K1~K64), respectively.
When one of the keys is triggered, the programmed address/data is transmitted together
with the header bits via an IR (38kHz carrier)
transmission medium.
Block Diagram
R1
R8
X2X1
O scillatorD ivider
24 C ounter &
Keyboard
Matrix &
Gate
Circuit
C1C8AIND7
Data ROM
& R egisters
¸
1 of 24 D ecoder
Binary D etector
1March 2, 2000
D ata S elect
& Buffer
Sync.
Circuit
VDDVSS
DOUT
LED
Pin Assignment
Pad Assignment
R1
R2
R3
R4
DOUT
VDD
D7
X2
X1
VSS
20
1
19
2
18
3
17
4
16
5
15
6
14
7
13
8
12
9
11
10
H T6221
20 D IP/SOP
KI2
KI3
AIN
C1
C2
C3
C4
C5
C6
C7
C8
LED
KI1
HT6221/HT6222
1
R3
2
R4
3
R5
4
R6
5
R7
6
R8
VDD
D7
X2
X1
VSS
7
8
9
10
11
12
DOUT
24 D IP /S O P
KI0
H T6222
CCS
24
R2
23
R1
22
AIN
21
C1
20
C2
19
C3
18
C4
17
C5
16
C6
15
C7
14
C8
13
LED
KIO 0
19
KIO 1
18
KIO 2
17
16
KIO 3
15
KIO 4
14
KIO 5
KI4
KI5
KI6
KI7
REM
VDD
SEL
OSCO
23
24
1
2
3
4
5
6
7
8
21
22
9
10
OSCI
VSS
Chip size: 94 ´ 104 (mil)
20
(0 ,0 )
11
LM B
13
12
KIO 6
KIO 7
2
* The IC substrate should be connected to VDD in the PCB layout artwork.
2March 2, 2000
HT6221/HT6222
Pad CoordinatesUnit: mil
Pad No.XYPad No.XY
1
2
3
4
5
6
7
8
9
10
11
1224.31
-41.99
-41.99
-41.99
-41.99
-41.99-5.61
-41.99-28.31
-41.99-37.83
-41.99-46.88
-20.95-46.88
-14.32-46.88
-4.25-46.88
Pin Description
HT6222
Pin No.Pin NameI/O
1~6R3~R8I
7DOUTOCMOS OUTSerial data output pin, with a 38kHz carrier
8VDD
9D7ICMOS INMost significant data bit (D7) code setting
Positive power supply, 1.8V~3.5V for normal
operation
Negative power supply
Column control for keyboard matrix
Low byte address codes (8 bits) scan input
Row control for keyboard matrix, active high
-46.88
-30.26
-13.98
-4.12
46.84
46.84
46.84
46.84
Description
3March 2, 2000
Approximate internal connection circuits
HT6221/HT6222
CMOS IN/O UT
V
DD
OSCILLATOR
X1
10M
W
CMOS IN/O UT
Pull-low
X2
EN
CMOS IN
Pull-low
CMOS IN
CMOS OUT
V
DD
Absolute Maximum Ratings
Supply Voltage.................................-0.3V to 6V
Input Voltage .................V
-0.3V to VDD+0.3V
SS
Note: These are stress ratings only. Stresses exceeding the range specified under "Absolute Maxi
mum Ratings" may cause substantial damage to the device. Functional operation of this device
at other conditions beyond those listed in the specification is not implied and prolonged exposure to extreme conditions may affect device reliability.
Storage Temperature.................-50°Cto125°C
Operating Temperature ..............-20°Cto75°C
-
Electrical Characteristic
SymbolParameter
V
I
I
I
I
I
I
I
STB
DD
OH1
OL1
OH2
OL2
OH3
Operating Voltage
DD
Standby Current3VOscillator stops
Operating Current3V
Output Source Current for DOUT3V
Output Sink Current for DOUT3V
Output Source Current for LED3V
Output Sink Current for LED3V
Output Source Current for C1~C83V
Ta=25°C
Test Conditions
Min. Typ. Max. Unit
V
4March 2, 2000
Conditions
DD
¾¾
=455kHz
f
OSC
No load
V
=2.7V
O
V
=0.3V
O
V
=2.7V
O
V
=0.3V
O
V
=2.7V
O
1.833.5V
0.11.0
¾
200400
¾
-2.0-4.0¾
50100
mA
mA
mA
¾mA
-10-60¾mA
1.22.0
-0.6-2.0¾
¾
mA
mA
HT6221/HT6222
SymbolParameter
I
V
V
V
V
V
V
R
R
R
R
f
OSC
OL3
Output Sink Current for C1~C83V
Input High Voltage for R1~R83V
IH1
Input Low Voltage for R1~R83V
IL1
Input High Voltage for C1~C83V
IH2
Input Low Voltage for C1~C83V
IL2
Input High Voltage for AIN3V
IH3
Input Low Voltage for AIN3V
IL3
Input Pull-high Resistance for AIN3V
PH1
Input Pull-low Resistance for AIN3V
PL1
Input Pull-low Resistance for R1~R8 3V
PL2
Input Pull-low Resistance for C1~C83V
PL3
System Frequency
Functional Description
Keyboard scan
The HT6221/HT6222 remain in the halt mode
during the standby state (at this time, the oscillator stops, and the standby current<1mA). The
HT6221 consists of 32 active keys, and the
HT6222 has 64 active keys. The keyboard
forms of the HT6221/ HT6222 are shown below.
·
The HT6221 keyboard form
C1C2 C3C4
K1
R1
R2
K2
R3
K3
R4
K4
K5
K6
K7
K8
K9
K10
K11
K12
C5C6C7C8
K13
K17
K14
K18
K15
K19
K16
K20
K21
K22
K23
K24
K25
K26
K27
K28
K29
K30
K31
K32
Test Conditions
DD
Conditions
V
=0.3V
O
V
¾
¾
¾
¾
¾
¾
V
=0V
IN
V
=3V
IN
V
=3V
IN
V
=3V
IN
455kHz ceramic
¾
resonator
·
The HT6222 keyboard form
C1
C2 C3C4C5C6C7 C8
K9
K5
K1
R1
R2
R3
R4
R5
R6
R7
R8
K2
K3
K4
K33
K34
K35
K36
K6
K7
K8
K37
K38
K39
K40
K10
K11
K12
K41
K42
K43
K44
Min. Typ. Max. Unit
1030
1.9
0
1.1
0
1.25
0
100200400
70150250
120200320
300500 1500
455
¾
K17
K13
K18
K14
K19
K15
K20
K16
K49
K45
K50
K46
K51
K47
K52
K48
¾
¾
¾
¾
¾
¾
K21
K22
K23
K24
K53
K54
K55
K56
¾mA
3.0V
0.8V
3.0V
0.6V
3.0V
0.6V
kW
kW
kW
kW
kHz
¾
K25
K29
K26
K30
K27
K31
K28
K32
K57
K61
K58
K62
K59
K63
K60
K64
5March 2, 2000
HT6221/HT6222
When one of the keys (32 or 64 keys) is triggered
for over 36ms, the oscillator is enabled and the
chip is activated. If the key is pressed and held
for 108ms or less, the 108ms transmission codes
are enabled and comprised of a header code
(9ms), an off code (4.5ms), low byte address
codes (9ms~18ms), high byte address codes
(9ms~18ms), 8-bit data codes (9ms~18ms), and
the inverse codes of the 8-bit data codes
(18ms~9ms). After the pressed key is held for
108ms, if the key is still held down, the trans
To avoid mistakes made by keyboard scanning
or simultaneous two-key inputs (except for the
three double-key active functions (K21+K22,
K21+K23, and K21+K24), the HT6221/HT6222
are facilitated with 36ms starting time.
The HT6221/HT6222 also provide three dou
ble-key active functions (K21+K22, K21+K23,
and K21+K24) for tape deck recording opera
tions. The double-key operation rules are
shown in timing 4 and timing 6.
-
mission codes turn out to be a composition of
header (9ms) and off codes (2.5ms) only.
Transmission codes
The transmission codes of the HT6221/6222 consist of a 9ms header code, a 4.5ms off code, 16-bit ad
dress codes (18ms~36ms), 9ms~18ms 8-bit data codes, and the inverse code of the 8-bit data codes. The
following is an illustration of the transmission codes:
Key-in
(K 1~K 64)
X2
DOUT
36m s m in.
Fosc=4 55kH z
4.5m s
9m s
45m s~63m s
(A 0~A15+D 0~D 7+D 0~D 7 )
108m s
Key Enables
9m s
38kH z,
33% duty carrier
2.5m s
108m s
0.56m s0.56m s
9m s
2.5m s
Output format for the DOUT
-
-
-
The output code carrier of the DOUT pin is shown in Timing 2:
38kHz
Carrier
8.77m s
26.3m s
38kHz carrier
The transmission codes employ the PPM (Pulse Position Modulation) method to represent their two
logic states by "0" (1.12ms) and "1" (2.24ms) as shown in Timing 3:
"Zero"
0.56m s
data period (1.12m s)
"O n e"
data period (2.24m s)
38kHz carrier
38kHz carrier
Logic states
6March 2, 2000
HT6221/HT6222
·
Setting the address codes (A0~A15)
The algorithm rule of the address codes
(A0~A15) can be selected by mask option.
In this case, the 16-bit on-chip MASK ROM
(ROM1 and ROM2) are available, and the
value of ROM1 (8 bits) and ROM2 (8 bits) are
decided by one MASK LAYER. The current
value of ROM1 and ROM2 are both "00H".
The A0~A7 are set by logical OR between the
AIN
C1C2C3C4C5C6C7C8
S8
(S w itc h O p e n : 0 , S w itc h C lo s e : 1 )
External S w itch S 0~S 15:
S9S10S11S12S13S14S15
1 0 0 0 1 1 0 0 1 0 1 0 0 1 0 0
H T6221/H T6222
external switch S0~S7 and the ROM1. The
A8~A15 equal some bits inverted to A0~A7,
the inversion are decided by Logical OR be
tween the external switch S8~S15 and the
ROM2.
For example:
The following is an illustration of these rules in
selecting the address codes (A0~A15).
200kW´8
1N 4148
S7S6S5S4S3S2S1S0
8
´
-
O n-chip R O M 1, R O M 2:
A0~A7:
A8'~A15':
A8~A15:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
bit0bit7 bit0bit7
S0~S7 OR ROM1
1 0 0 0 1 1 0 0
S8~S15 O R RO M 2
1 0 1 0 0 1 0 0
A0 A1 A2 A3 A4 A5 A6 A7
1 1 0 1 0 1 1 1
Com plem ent
1 : n o n in v e rs io n
0: inversion
7March 2, 2000
HT6221/HT6222
·
Values of the data codes (D0~D7)
The HT6221/HT6222 contain 32 and 64 ac
tive keys, respectively. Each key corresponds
to a data code. For tape deck recording, the
HT6221/HT6222 provide three double-key
functions. The double-key, single-key, and
double-key operation rules are shown in Ta
ble 3, Table 4, Timing 4, Timing 5 and Timing
6.
Table 4: K1~K64 single-key data code table
KEY
K10000 0000/1K330000 0010/1
K21000 0000/1K341000 0010/1
K30100 0000/1K350100 0010/1
K41100 0000/1K361100 0010/1
K50010 0000/1K370010 0010/1
K61010 0000/1K381010 0010/1
K70110 0000/1K390110 0010/1
K81110 0000/1K401110 0010/1
K90001 0000/1K410001 0010/1
K101001 0000/1K421001 0010/1
K110101 0000/1K430101 0010/1
K121101 0000/1K441101 0010/1
K130011 0000/1K450011 0010/1
K141011 0000/1K461011 0010/1
K150111 0000/1K470111 0010/1
K161111 0000/1K481111 0010/1
K170000 1000/1K490000 1010/1
K181000 1000/1K501000 1010/1
K190100 1000/1K510100 1010/1
K201100 1000/1K521100 1010/1
K210010 1000/1K530010 1010/1
K221010 1000/1K541010 1010/1
K230110 1000/1K550110 1010/1
K241110 1000/1K561110 1010/1
K250001 1000/1K570001 1010/1
Data Codes
D0~D6
Data Code
D7
Table 3: Double-key data code table
-
-
KEY
K21+K2210101100/1
K21+K2301101100/1
K21+K2411101100/1
Note: D7 is defined by an external switch
KEY
Data Codes
D0~D6
Data Codes
D0~D6
Data Code
D7
Data Code
D7
8March 2, 2000
HT6221/HT6222
KEY
Data Codes
D0~D6
Data Code
D7
KEY
Data Codes
D0~D6
K261001 1000/1K581001 1010/1
K270101 1000/1K590101 1010/1
K281101 1000/1K601101 1010/1
K290011 1000/1K610011 1010/1
K301011 1000/1K621011 1010/1
K310111 1000/1K630111 1010/1
K321111 1000/1K641111 1010/1
Note: D7 is defined by an external switch
D7=0 : connect to VDD
D7=1 : connect to VSS
K21 Input
Km Input
DOUT
K21 Input
36m s< t <126m s
36m s108m s (m in.)
K21 code transm ission
K21
Km
36m s
(a )
K21
Data Code
D7
Km Input
DOUT
K21 Input
Km Input
DOUT
K21 Input
Km Input
DOUT
0< t <36m s
0< t <36m s
36m s< t <126m s
36m s
Km
N o transm ission
(b )
K21
Km
N o transm ission
(c )
K21
Km
36m s
108m s (m in.)
Km code transm ission
(d )
Invalid double-key input
9March 2, 2000
HT6221/HT6222
(b)
Kn Input
DOUT
Kn Input
DOUT
K21 Input
K m In p u t
DOUT
36m s
36m s
36m s
Kn
t > 1 0 8 m s
Kn code transm ission
(a )
Kn
t <108m s
108m s
Kn code transm ission
Note: Kn can be one of K1~K64
Valid single-key input
K21
36m s
t > 1 2 6 m s
K21 code transm ission
Km
108m s (m in.)
K21+Km code
transm ission
Note: Km can be one of K22~K24
Valid double-key input
DOUT and LED
After the transmission codes are sent, the DOUT pin generates transmission codes with a carrier,
and the LED goes low to drive a transmission indicator.
No.3 Creation Rd. II, Science-based Industrial Park, Hsinchu, Taiwan, R.O.C.
Tel: 886-3-563-1999
Fax: 886-3-563-1189
Holtek Semiconductor Inc. (Taipei Office)
5F, No.576, Sec.7 Chung Hsiao E. Rd., Taipei, Taiwan, R.O.C.
Tel: 886-2-2782-9635
Fax: 886-2-2782-9636
Fax: 886-2-2782-7128 (International sales hotline)
Holtek Semiconductor (Hong Kong) Ltd.
RM.711, Tower 2, Cheung Sha Wan Plaza, 833 Cheung Sha Wan Rd., Kowloon, Hong Kong
Tel: 852-2-745-8288
Fax: 852-2-742-8657
Copyright Ó 2000 by HOLTEK SEMICONDUCTOR INC.
The information appearing in this Data Sheet is believed to be accurate at the time of publication. However, Holtek
assumes no responsibility arising from the use of the specifications described. Theapplications mentioned herein are
used solely for the purpose of illustration and Holtek makes no warranty or representation that such applications
will be suitable without further modification, nor recommends the use of its products for application that may pres
ent a risk to human life due to malfunction or otherwise. Holtek reserves the right to alter its products without prior
notification. For the most up-to-date information, please visit our web site at http://www.holtek.com.tw.
13March 2, 2000
-
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.