SX1509BIULTRT Semtech, SX1509BIULTRT Datasheet - Page 16

no-image

SX1509BIULTRT

Manufacturer Part Number
SX1509BIULTRT
Description
16-chan GPIO W/ LED Driver & Keypad Engine (I2C)
Manufacturer
Semtech
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
SX1509BIULTRT
Manufacturer:
AD
Quantity:
1 000
Part Number:
SX1509BIULTRT
Manufacturer:
SEMTECH/美国升特
Quantity:
20 000
ADVANCED COMMUNICATIONS & SENSING
The debounce time common to all IOs can be set in RegDebounceConfig register from 0.5 to 64ms (fOSC =
2MHz).
4.6.2
SX1508, and SX1509 integrate a fully programmable keypad scanning engine to implement keypad applications
up to 8x8 matrix (i.e. 64 keys).
Please note that SX1509 also implements an Auto Sleep/Wakeup feature to save power consumption when no
key has been pressed for a programmed time.
Following procedure should be implemented on the host controller for a 4x4 keypad:
1. Set RegDir to 0xF0 (IO[3-0] as outputs, IO[7-4] as inputs) , set RegOpenDrain to 0x0F (IO[3-0] as open-drain
outputs), set RegPullup to 0xF0 (pull-ups enabled on inputs IO[7-4]).
2. Enable and configure debouncing on IO[7-4] (RegDebounceEnable = 0xF0, Ex : RegDebounceConfig = 0x05)
3. Enable and configure keypad scanning engine (Ex : RegKeyConfig = 0x7D) This will start an infinite loop with
the following sequence to IO[3:0]: ZZZ0, ZZ0Z, Z0ZZ, 0ZZZ. Make sure that scan interval is set to higher value
than the debounce time.
4. When a key is pressed, NINT goes low, key scan is halted and the key coordinates are stored in RegKeyData:
5. Restart from point 4.
This implementation allows the host to handle both single and multi-touches easily (fast AAAAAA sequence is a
long press of key A, fast ABABABAB sequence is key A and key B pressed together, etc)
4.6.3
Because of their 5.5V tolerant I/O banks with independent supply voltages between 1.2V and 3.6V, the SX1508
and SX1509 can perform level shifting of signals from one I/O bank to another without uC activity by
programming the corresponding configuration register bits accordingly in RegLevelShifter (and RegDir).
This can save significant BOM cost in a final application where only a few signals need to be level-shifted (no
need for an additional external level shifter IC).
Rev 1 – 30
Keypad Scanning Engine
Level Shifter
th
The column data will be stored in RegKeyData[7:4] (Note: column indication is active low)
The row data will be stored in RegKeyData[3:0] (Note: row indication is active low)
When RegKeyData is read, this data along with the interrupt is automatically cleared (same behavior
as reading RegData) and the key scan continues to the next row.
Oct. 2009
Figure 11 – 4x4 Keypad Connection to SX1508
- IO[3-0] as outputs (scanning)
- IO[7-4] as inputs
SX1508
IO3
IO2
IO1
IO0
IO4
IO5
IO6
IO7
Y
RegKeyData =
16
X
Y
World’s Lowest Voltage Level Shifting GPIO
X
with LED Driver and Keypad Engine
SX1507/SX1508/SX1509
www.semtech.com

Related parts for SX1509BIULTRT