![Analog Devices ADP5520 Скачать руководство пользователя страница 13](http://html1.mh-extra.com/html/analog-devices/adp5520/adp5520_manual_2939753013.webp)
EVAL-ADP5520
Rev. 0 | Page 13 of 24
KEYPAD STATUS TAB
07
65
1-
00
7
Figure 7. Keypad Status Tab
KEYPAD MATRIX DECODING
First press the reset button (S17) on the evaluation board to put
the device in a known state; then complete the following steps.
1.
On the motherboard, move the jumpers on Block J1
through Block J8 to the KP position.
2.
On the
Aux LEDs Config
tab, set Bit 4 and Bit 5 in
Register 0x11 high; then program this setting by clicking
the
Program 0x11
button.
This reconfigures the R3 and C3 pins.
3.
On the
GPIO Config
tab, do the following:
a.
Set Bit 0 through Bit 3 in Register 0x1F high; then
program this setting by clicking the
Program 0x1F
button.
This enables the pull-ups on Pin R0 through Pin R3.
b.
Set Bit 0 through Bit 3 in Register 0x17 high; then
program this setting by clicking the
Program 0x17
button.
This configures Pin R0 through Pin R3 as keypad
matrix rows.
c.
Set Bit 4 through Bit 7 in Register 0x17 high; then
program this setting by clicking the
Program 0x17
button.
This configures Pin C0 through Pin C3 as keypad
matrix columns.
4.
On the motherboard, press and release the S1 switch
(Keypad A).
5.
On the
Keypad Status
tab, do the following:
a.
Read the key press interrupt status Register 0x20 by
clicking the
Read 0x20
button.
Bit 0 is set, indicating that Key A was pressed.
b.
Read the key release interrupt status Register 0x22 by
clicking the
Read 0x22
button.
Bit 0 is set, indicating that Key A was released.
6.
On the
BackLight Config
tab, read Register 0x00 by
clicking the
Read 0x00
button.
Bit 0 and Bit 1 (the master key press/release interrupt bits)
should be set, indicating that one of the keypad matrix
switches was pressed/released.
You can press/release other switches on the motherboard and
read back the press/release status in Register 0x20 through
Register 0x25 on the
Keypad Status
tab.