ak4184 AKM Semiconductor, Inc., ak4184 Datasheet - Page 25

no-image

ak4184

Manufacturer Part Number
ak4184
Description
Tsc With Keypad Scanner And Gpio Expander
Manufacturer
AKM Semiconductor, Inc.
Datasheet
Addr
L
The keypad data register format is shown below. KD1, KD2, KD3, KS1, KS2 and KS3 represent the number of keys
pressed. Table 24 shows a configuration of a 30-key keypad. Data of KD1, KD2, KD3, KS1, KS2 and KS3 returned
as zero represents a no key pressed. The AK4184 keypad scanner can be read out up to three keys simultaneously.
The AK4184 key pad scanner writes the number of keys pressed in the keypad data register. For example: When two
keys are pressed at the same time, the contents of the keypad register are filled with KD1, KD2, KS1, and KS2. KD3
and KS3 are the zero data. When more than four keys are pressed at the same time, error bits (DERR bit and SERR
bit) are set to “1” and KD1, KD2, KD3, KS1, KS2, and KS3 data are set to 31.
The keypad data can be read out either from the KPDATA1 register or the KPDATA2 register. The KPDATA1
register represents the keypad data masked by the keypad column mask register. KPDATA2 register represents the
keypad data masked by both the keypad column mask register and the keypad mask register. KPDATA1 and
KPDATA2 register are cleared after these resisters are read. .
The corresponding number and its keypad layout are shown on Table 24.
MS0603-E-00
00H
01H
Keypad Data Register (PAGE 0)
KPDATA1
KPDATA2
NAME
14:10
14:10
Bits
Bits
9:5
4:0
9:5
4:0
15
15
DERR
DERR
Name
Name
SERR
SERR
KD3
KD2
KD1
D15
KS3
KS2
KS1
D14
Keypad scan data error
Keypad scan result 3. can be masked by column mask
Keypad scan result 2. can be masked by column mask
Keypad scan result 1. can be masked by column mask
Keypad status data error
Keypad status result 3. can be masked by both keymask and column mask
Keypad status result 2. can be masked by both keymask and column mask
Keypad status result 1. can be masked by both keymask and column mask
Table 22. Keypad Data 1 Register (addr: 00H)
Table 23. Keypad Data 2 Register (addr: 01H)
D13
Table 24. Keypad to Key number Mapping
R1
R2
R3
R4
R5
Table 21. Keypad Data Register Format
KD3[4:0]
KS3[4:0]
D12
C1
#1
#2
#3
#4
#5
D11
C2
#6
#7
#8
#9
#10
D10
C3
#11
#12
#13
#14
#15
25
Description
Description
C4
#16
#17
#18
#19
#20
D9
D8
C5
#21
#22
#23
#24
#25
KD2[4:0]
KS2[4:0]
D7
C6
#26
#27
#28
#29
#30
D6
D5
D4
D3
KD1[4:0]
KS1[4:0]
D2
2007/04
D1
[AK4184]
D0

Related parts for ak4184