ADP5587ACPZ-R7 Analog Devices Inc, ADP5587ACPZ-R7 Datasheet - Page 9

IC, I/O EXPANDER, 400KHZ, LFCSP-24

ADP5587ACPZ-R7

Manufacturer Part Number
ADP5587ACPZ-R7
Description
IC, I/O EXPANDER, 400KHZ, LFCSP-24
Manufacturer
Analog Devices Inc
Type
I²C Port Expanderr
Datasheet

Specifications of ADP5587ACPZ-R7

Bus Frequency
400kHz
Ic Interface Type
I2C
No. Of I/o's
18
Supply Voltage Range
1.7V To 3.6V
Digital Ic Case Style
LFCSP
No. Of Pins
24
Msl
MSL 3 - 168 Hours
Supply Voltage Max
3.6V
Applications
Cell Phone
Mounting Type
Surface Mount
Package / Case
24-LFCSP
Interface Type
I2C
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
ADP5587ACPZ-R7TR
NOTES:
1. Dx_PULL STANDS FOR GPIO PULL-UP.
To prevent glitches or narrow press times registering as valid
key presses, the key scanner requires the key to be pressed for
two scan cycles. The key scanner has a sampling period of 25 ms;
therefore, the key must be pressed and held for at least 25 ms to
register as pressed. If the key is continuously pressed, the key
scanner continues to sample every 25 ms. If a pressed key is
released for 25 ms or greater, the state machine sets the
appropriate key number in the key event status register with the
key-pressed bits cleared in the order detected. Because the
release of a key is not necessarily in sync with the key scan
sampling period, it may take between 25 ms and 50 ms for a key
to register as released. After the key is registered as released, the
key scanner returns to idle mode. Figure 10 shows the row and
column pins connected to a typical 10 × 8, 80-switch keypad
matrix.
Key Event Tracking
The 10 key event registers are set to act as a FIFO, meaning that
reading any of the 10 key event registers yields the key events in
the order the keys were pressed and released.
Tracking of key events is done with the help of the key event
counter (the KEC field in Register 0x03) and the FIFO/key
event registers (Register 0x04 through Register 0x0D). The KEC
count increases as keys are pressed and released; up to 10 events
can be logged in the counter. The FIFO/key event registers, on
the other hand, display the key events and their status (pressed
or released) as they are read out of the FIFO. The FIFO registers
contain eight bits, with the MSB dedicated as the status bit (1
indicates a press and 0 indicates a release); the remaining seven
R7 R6 R5 R4 R3 R2 R1 R0
G7
A7
B7
C7
D7
E7
F7
H7
J7
I7
A6
B6
C6
D6
E6
F6
G6
H6
J6
I6
10 × 8 KEYPAD MATRIX
A5
B5
C5
D5
E5
G5
H5
F5
J5
I5
A4
B4
C4
D4
G4
H4
E4
F4
J4
I4
G3
A3
B3
C3
D3
E3
F3
H3
J3
Figure 10. Keypad Decode Configuration
I3
G2
A2
B2
C2
D2
E2
F2
H2
J2
I2
A1
B1
C1
D1
E1
F1
G1
H1
J1
I1
A0
B0
C0
D0
E0
G0
H0
F0
J0
I0
V
CC
C0 C1 C2 C3 C4 C5 C6 C7
C8
C9
Rev. B | Page 9 of 24
bits display the binary representation of the keys that are pressed
or released.
The first read of any of the FIFO registers displays the first
event that happened and its status. Subsequent reads of the
same register replace the register data with the next event that
happens. If tracking of all the events is important, it is best to
use a single register per event. After all the events in the FIFO
are read, reading of any of the event registers yields a zero value.
Table 10 and Table 11 show the event sequences as they are
logged in and read from the FIFO. The 10 FIFO registers are
labeled A through J, and the keys are labeled A0 through J7.
Table 10. Example of Event Sequence
Key Pressed/Released
A0
B1
A0
C2
B1
D3
C2
E4
E4
D3
Table 11. Interpretation of FIFO Event Reading
Key Event
Counter
10
9
8
7
6
5
4
3
2
1
0
1
Key Event Overflow
The ADP5587 is equipped with an overflow feature to handle
key events beyond the FIFO capacity. When all events are filled, any
additional events set the OVR_FLOW_INT bit in Register 0x02;
if the OVR_FLOW_IEN bit in Register 0x01 is set, the host
processor is also interrupted when overflow occurs. When the
FIFO is not full, new events are added as the last events.
The OVR_FLOW_M bit in Register 0x01 sets the mode of
operation during overflows. Clearing the OVR_FLOW_M bit
causes new incoming events to be discarded, and setting this bit
rolls over and overwrites old data with new data starting at the
first event.
press; 0 = key release.
The MSB indicates a key press or key release in the key event register: 1 = key
Key Event
Register
Read
N/A
D
E
C
F
G
A
B
H
J
I
Status
Pressed
Pressed
Released
Pressed
Released
Pressed
Released
Pressed
Released
Released
Key Event Reg-
ister Content
(Binary)
N/A
1 0000000
1 0001100
0 0000000
1 0010111
0 0001100
1 0100010
0 0010111
1 0101101
0 0101101
0 0100010
1
Key Event Counter
1
2
3
4
5
6
7
8
9
10
Key Event
Register
Interpretation
N/A
Key A0 pressed
Key B1 pressed
Key A0 released
Key C2 pressed
Key B1 released
Key D3 pressed
Key C2 released
Key E4 pressed
Key E4 released
Key D3 released
ADP5587

Related parts for ADP5587ACPZ-R7