Samsung S5PC100 User Manual page 1747

Table of Contents

Advertisement

S5PC100 USER'S MANUAL (REV1.0)
5 KEYPAD SCANNING PROCEDURE
At initial state, all column lines (outputs) are low level. But column data output tri-state enable bits are all high,
therefore, if the tri-state enable mode is not used, these bits should be written to zeros. If no key pressed state, all
row lines (inputs) are high (used pull-up pads). If any key is pressed, the corresponding row and column lines are
shorted together and a low level is driven on the corresponding row line, generating a keypad interrupt. The CPU
(software) writes with a LOW level on one column line and HIGH on the others to the KEYIFCOL register. Each
write time, the CPU reads the value of the KEYIFROW register and detects if one key of the corresponding
column line is pressed. When the scanning procedure is end, the pressed key (one or more) can be detected.
S5PC100X
SCAN_X[7:0]
SCAN_Y[7:0]
0
8
16
24
32
40
1
9
17
25
33
41
2
10
18
26
34
42
3
11
19
27
35
43
4
12
20
28
36
44
5
13
21
29
37
45
6
14
22
30
38
46
7
15
23
31
39
47
Figure 10.8-3 Keypad Scanning Procedure I
input : pull-up (PAD
48
56
or external)
S5PC100X
49
57
50
58
51
59
SCAN_X[7:0]
52
60
53
61
54
62
55
63
SCAN_Y[7:0]
KEYPAD INTERFACE
0
8
16
24
32
40
1
9
17
25
33
41
2
10
18
26
34
42
3
11
19
27
35
43
4
12
20
28
36
44
5
13
21
29
37
45
6
14
22
30
38
46
7
15
23
31
39
47
output : external blocking
resistor for avoiding short
48
56
49
57
50
58
51
59
52
60
53
61
54
62
55
63
10.8-3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents