The ADP5588 features automatic increment during I2
參數資料
型號: ADP5588-EVALZ
廠商: Analog Devices Inc
文件頁數: 28/28頁
文件大?。?/td> 0K
描述: BOARD EVAL ADP5588 KEYPAD/GPIO
標準包裝: 1
主要目的: 接口,GPIO 擴展器
嵌入式:
已用 IC / 零件: ADP5588
主要屬性: 8 位 18 端口 GPIO 擴展器
次要屬性: I²C 接口
已供物品:
Data Sheet
ADP5588
Rev. C | Page 9 of 28
Autoincrement
The ADP5588 features automatic increment during I2C read
access. This allows the user to increment the address pointer
without having to send a read command for subsequent
addresses. This minimizes processor intervention and, therefore,
saves processor bandwidth and current drain. Bit 7 of Register 0x01
must be set to initiate autoincrement (see Figure 16 for the full
write and read sequence).
Key Event Interrupt
On a key event (KE) interrupt, the processor reads the interrupt
register to determine the cause of the interrupt. If the KE_INT
bit in Register 0x02 is the cause of the interrupt, the state
machine sets the KE_INT bit and reads the key event count
from the KEC[3:0] field in Register 0x03 to determine the number
of events. It then reads the INT_STAT register (Register 0x02)
to make sure that no new events have come in. After all the
events are read, the KEC field is decremented to zero (KEC =0)
and the KE_INT bit can be cleared by writing a 1 to it. Both key
presses and key releases are capable of generating key event
interrupts. The KE_INT bit cannot be cleared, and the INT pin
cannot be deasserted, until the FIFO is cleared of all events.
KP_MODE
KEC
REG. 0x1D
THROUGH 0x1F
REG. 0x03
READ KE(s) TO CLEAR
INT DRIVE
KE_INT
REG. 0x02
WRITE 1 TO CLEAR
KE_IEN
REG. 0x01
07673-
0
1
AND
Figure 6. Key Event Interrupt Generation
Keypad Lock/Unlock Feature
The ADP5588 has a locking feature that allows the user to lock
the keypad or GPIs (configured to be part of the event table).
Once enabled, the keypad lock can prevent generation of key
event interrupts and key events to be recorded in the key event
table. This feature comprises the Unlock Key 1 and Unlock Key 2
registers (Register 0x0F and Register 0x10), the keypad lock
interrupt mask, the keypad unlock timers (Register 0x0E),
and the LCK1 and LCK2 bits, and the keylock enable bit
(Register 0x03).
The unlock keys can be programmed with any value of the keys
in the keypad matrix or any GPI values that are part of the key
event table. When the keypad lock interrupt mask timer is
enabled, the user must press two specific keys before a keylock
interrupt is generated or keypad events are recorded. After the
keypad is locked (set Bit 6, Register 0x03 to enable the lock), the
first time that the user presses any key, a key event interrupt is
generated. No additional interrupt is generated unless both
unlock key sequences are correct; then a keylock interrupt is
generated.
If the correct unlock keys are not pressed before the mask timer
expires, the state machine starts over. The first key event
interrupt is generated to allow the software to see that the user
has pressed a key so that the host can turn on the LCD and
display the unlock message. The host then reads the lock status
register to see if the keypad is unlocked. After the first key event
interrupt, the state machine does not interrupt the processor
again unless the correct sequence is keyed. The state machine
resets if the correct sequences are not keyed before the keypad
lock interrupt mask timer expires.
The state of the keypad lock interrupt mask bit (Register 0x01,
Bit 2) in the configuration register determines whether the
interrupt pin is asserted when the keylock interrupt status bit
(Register 0x02, Bit 2) is set. Setting the keylock interrupt mask
bit causes the INT pin to be asserted when the keylock interrupt
status bit is set in Register 0x02; clearing that bit masks the
interrupt, causing the interrupt pin not to respond to the keylock
interrupt status bit. The mask interrupt timer should be set for
the time that it takes for the LCD to dim or turn off so that, if a
key is pressed, the backlight is set to bright mode again or reset
to turn on the LCD.
When the unlock mask interrupt timer equals 0, only the
correct unlock sequence can generate an interrupt. Disabling
the unlock mask interrupt timer allows the processor to remain
undisturbed for situations in which the user has the phone in a
pocket or purse and the keys are constantly pressed. The flow
chart in Figure 6 shows the interaction of the interrupt mask
timer and interrupt generation.
GENERAL-PURPOSE INPUTS AND OUTPUTS
The ADP5588 supports up to 18 programmable GPIOs that can
be configured to address a variety of uses. Figure 7 shows the
makeup of a typical GPIO block where GPIOx represents any of
the 18 I/O lines.
DEBOUNCE
GPIOx
Dx_DIR
Dx_OUT
Dx_IN
Dx_IN_DBNC
Dx_PULL
VCC
07673-
012
Figure 7. Typical GPIO Block
General Purpose Inputs (GPI)
The ADP5588 allows the user to configure all or some of its
GPIOs into GPIs (general-purpose inputs). After the GPIOs are
configured as GPIs, the user can opt to also turn on pull-up
resistors and interrupt generation capability, thus reducing the
amount of software monitoring and processor interaction and
saving power.
The programmed level of the GPI interrupt determines the
active level of the GPI pin. For example, if a GPI interrupt level
相關PDF資料
PDF描述
LBR2012T101M INDUCTOR WOUND 100UH 80MA 0805
VI-J0N-EZ-S CONVERTER MOD DC/DC 18.5V 25W
1062672041 F/O CABLE MTP/JMPR (4) 500MM
A1CXH-2636M IDC CABLE - AKC26H/AE26M/X
RSC08DREF-S13 CONN EDGECARD 16POS .100 EXTEND
相關代理商/技術參數
參數描述
ADP5588XCPZ-R7 功能描述:Keypads and Alarm Systems Interface 制造商:analog devices inc. 系列:- 包裝:- 零件狀態(tài):上次購買時間 應用:鍵盤和警報系統(tǒng) 接口:I2C 電壓 - 電源:1.8 V ~ 3 V 封裝/外殼:- 供應商器件封裝:- 安裝類型:- 標準包裝:1
ADP5588XCPZ-X2-R7 功能描述:Keypads and Alarm Systems Interface 制造商:analog devices inc. 系列:- 包裝:- 零件狀態(tài):上次購買時間 應用:鍵盤和警報系統(tǒng) 接口:I2C 電壓 - 電源:1.8 V ~ 3 V 封裝/外殼:- 供應商器件封裝:- 安裝類型:- 標準包裝:1
ADP5589ACBZ-00-R7 功能描述:IC PORT EXPANDER 19I/O 25WLSCP RoHS:是 類別:集成電路 (IC) >> 接口 - 專用 系列:* 特色產品:NXP - I2C Interface 標準包裝:1 系列:- 應用:2 通道 I²C 多路復用器 接口:I²C,SM 總線 電源電壓:2.3 V ~ 5.5 V 封裝/外殼:16-TSSOP(0.173",4.40mm 寬) 供應商設備封裝:16-TSSOP 包裝:剪切帶 (CT) 安裝類型:表面貼裝 產品目錄頁面:825 (CN2011-ZH PDF) 其它名稱:568-1854-1
ADP5589ACBZ-01-R7 功能描述:IC PORT EXPANDER 19I/O 25WLSCP RoHS:是 類別:集成電路 (IC) >> 接口 - 專用 系列:* 特色產品:NXP - I2C Interface 標準包裝:1 系列:- 應用:2 通道 I²C 多路復用器 接口:I²C,SM 總線 電源電壓:2.3 V ~ 5.5 V 封裝/外殼:16-TSSOP(0.173",4.40mm 寬) 供應商設備封裝:16-TSSOP 包裝:剪切帶 (CT) 安裝類型:表面貼裝 產品目錄頁面:825 (CN2011-ZH PDF) 其它名稱:568-1854-1
ADP5589ACBZ-02-R7 功能描述:IC PORT EXPANDER 19I/O 25WLSCP RoHS:是 類別:集成電路 (IC) >> 接口 - 專用 系列:* 特色產品:NXP - I2C Interface 標準包裝:1 系列:- 應用:2 通道 I²C 多路復用器 接口:I²C,SM 總線 電源電壓:2.3 V ~ 5.5 V 封裝/外殼:16-TSSOP(0.173",4.40mm 寬) 供應商設備封裝:16-TSSOP 包裝:剪切帶 (CT) 安裝類型:表面貼裝 產品目錄頁面:825 (CN2011-ZH PDF) 其它名稱:568-1854-1