beautypg.com

Rainbow Electronics W90P710CDG User Manual

Page 509

background image

W90P710CD/W90P710CDG

- 510 -

Continued

BITS

DESCRIPTION

[17] 2KEY

Double-key press
This bit indicates that 2 keys have been detected. Software can read
{KEY1R, KEY1C} and {KEY0R, KEY0C} to know which two keys are
pressed.

[16] 1KEY

Single-key press
This bit indicates that 1 key has been detected. Software can read
{KEY0R, KEY0C} to know which key is pressed.

[15] RESERVED

-

[14:11] KEY1R

KEY1 row address
This value indicates key1 row address. The keypad controller scan
keypad matrix from row 0, column0 Ж1 Ж2 …. Ж 7 and then row1
column 0 Ж 1 Ж 2 Ж7 so the lowest key address will be stored in
{KEY0R, KEY0C}. This register stores the 2

nd

address, if more than one

key is pressed.

[10:8] KEY1C

KEY1 column address
This value indicates key1 column address..

[7] RESERVED

-

[6:3] KEY0R

KEY1 row address
This value indicates key0 row address. This value indicates key0 row
address. This value indicates key1 row address. The keypad controller
scan keypad matrix from row 0, column0 Ж1 Ж2 …. Ж 7 and then
row1 col 0 Ж 1 Ж 2 Ж …Ж 7 still to row16 (or 8, or 4) column 0 Ж 1 Ж
2 ….. Ж 7 so the lowest key address will be stored in {KEY0R,
KEY0C}.

[2:0] KEY0C

KEY1 column address
This value indicates key0 row address.