ADP5587ACPZ-R7
AI

## Overview of ADP5587ACPZ-R7
The **ADP5587ACPZ-R7** is a high-performance I/O expander with a built-in keypad matrix decoder, designed primarily for mobile and portable applications. It offloads the processing-intensive task of scanning a keypad from the main system processor, thereby reducing power consumption and software complexity.
---
### Technical Specifications
| Parameter | Specification |
| :--- | :--- |
| **Manufacturer** | Analog Devices Inc. (ADI) |
| **Interface** | I2C (Up to 400 kHz) |
| **GPIO Count** | Up to 18 Configurable I/Os |
| **Keypad Matrix** | Up to 80 keys (10 columns x 8 rows) |
| **Operating Voltage** | 1.65V to 3.6V |
| **Packaging** | LFCSP-24 (4mm x 4mm) |
| **FIFO Buffer** | 10-event Key Event FIFO |
---
### Core Electronic Components & Features
#### 1. Keypad Decoder
The device can scan a matrix of up to 8 rows and 10 columns. It includes internal pull-up resistors and de-bounce circuitry, which eliminates the need for external discrete components to handle mechanical switch noise.
#### 2. GPIO Expansion
When not used for a keypad, each of the 18 pins can be configured as a General Purpose Input/Output (GPIO). This is useful for:
* Driving LEDs.
* Reading sensors or logic signals.
* Generating PWM signals (on specific pins).
#### 3. FIFO and Interrupt Controller
The chip features a **First-In-First-Out (FIFO)** buffer that stores up to 10 key-press or key-release events.
* **nINT Pin:** An active-low interrupt output alerts the host processor only when a change is detected, allowing the main CPU to remain in sleep mode until needed.
#### 4. Logic and Communication
* **I2C Interface:** Uses standard Serial Data (SDA) and Serial Clock (SCL) lines for communication.
* **Reset Logic:** Includes a dedicated Reset pin to clear registers and restore the device to its default state.
---
### Application Circuit Block Diagram
```mermaid
graph LR
A[Host Processor] <-- I2C Interface --> B[ADP5587]
B <--- C[8x10 Keypad Matrix]
B ---> D[Status LEDs]
B ---> E[Logic Controls]
A -- Interrupt Line --- B
```
---
### Key Advantages
1. **Low Power:** Reduces CPU overhead by handling all scanning and debouncing locally.
2. **Small Footprint:** The LFCSP-24 package is extremely compact for space-constrained designs like smartphones or handheld scanners.
3. **Flexibility:** Pins can be mixed between keypad functions and GPIO functions dynamically.
- ⤷
How do you configure the debounce time in the ADP5587 via I2C?
- ⤷ What is the maximum current sink capability of the GPIO pins for driving LEDs?
- ⤷ How does the ADP5587 handle ghosting in the keypad matrix?