Switch Matrix Circuit
The microprocessor con stantly strobes the colum n side of the switch circu it. When point "A" on
the column circuit toggl es low the column is act ive.
When a switch closes, point "C " on the row circu it drops low, the + input to the LM339 is below +5V so
point "D" is low and the row is active . When corresponding row and column switches are low at
the same time , the switch circu it is active and is registered as closed (made) by the microprocessor.
When the swit ch opens, point "C" on the row circuit is high, the + input to the LM339 is above +5V so
point ".0" is high and the row is inact ive .
COLUMN (-.. rn pIe)
+ 5V
7 4 LS240
C o'umn
D
L
H
A B
C
H
L
H L Off
L H On
S witch
E
0"
On
Inact ive
Actlv.
Open
CI•••••d
H
L
_ll.!!!_
8
GRN-<ORY C I
2
r -
011l1li
GRN-YIO
CoIulnn )
GRN-BLU
Colu •••• 1
GRN-BLK
CQlulIII S
GRN-YEL
Column ~
GRN-ORN
CoMr\n
I
GI=lN+lED
C"I"",",
J
GRN-BRN
C"' ''lnn 1
._
v.tIT-BRN
R ••••••
I
)1/
21/
3/
4/
51/
, /
/
/
-:-
,I'
/
,I"
/'
/ '
/ 7 1 / 81
_/
2/
3 2/
4 2 / 52/
62/
7(
82/
VvtT -RED
Row2 ;,.t2
/"
/ '
./
/
/
v.t-IT -ORN R
0 •• •
3
1/ . /
3 3/
4/
5/
53/
73/
sf
_ /
»:
_/
,I'
,I'
_/
_/
'"
14/
~ /
,/
~/
s/
64/
1/
&1/
'M-IT-YEL
R •••• 4
j
_/
/
,I'
,I'
,I'
IS/
25"'-
:IS,I
4G/
55 /
/
76"'-
85 /
v.HT-GRN
Ro ••••
S
/'
/
66
/'
/
16 /
/
3/
46/
66/
/
7(
86/
WHT-BLU RovS /
/ 26
,I'
,I'
/
/6 6
_/
17 /
27/
3/
47/
s/
61 /
n /
/
\MoIT-VIO R.W'7 /
./
; -
/
/
•.•.87
_~T ~~ ,
Ro ,8
18
28
38
48
/se
&8 /7 8
88
._
6
5
1
3
2
J208
3
1
5
6
7
B
3-6