18-bit enhanced port expander with keypad controller
Features
■ 18 GPIOs configurable as GPI, GPO, keypad
matrix, special key or dedicated key function
■ Operating voltage: 1.65 - 3.6 V
■ Hardware keypad controller (KPC)
(10 x 8 matrix with 4 optional dedicated keys
maximum)
■ Keypad controller capable of detecting
keypress in hibernation mode
■ Interrupt output (open drain) pin
■ Advanced power management system
■ Ultra-low standby mode current
■ Programmable pull-up resistors for all GPIO
pins
■ ESD performance on GPIO pins:
– ± 8 kV human body model
(JESD22 A114-C)
■ ESD performance on V
SCL, SDA pins:
– ± 3 kV human body model
(JESD22 A114-C)
, GND, INTB, R
CC
STB
STMPE1801
Xpander Logic™
Flip-chip CSP 25
(2.03 x 2.03 mm)
Description
The STMPE1801 is a GPIO (general purpose
input/output) port expander capable of interfacing
a main digital ASIC via the two-line bidirectional
2
bus (I
,
C). A separate GPIO expander IC is often
used in mobile multimedia platforms to resolve
the problem of the limited number of GPIOs
typically available on digital engines.
The STMPE1801 offers high flexibility, as each
I/O can be configured as input, output, special
key, keypad matrix or dedicated key function. This
device is designed to include very low quiescent
current, and a wakeup feature for each I/O, to
optimize the power consumption of the device.
Potential applications for the STMPE1801 include
portable media players, game consoles, mobile
and smart phones.
Open drain interrupt output pin. Programmable active low
E1OINTB
A1IRSTB
C1ASDAI
D1ASCLI2C clock. Fail safe
(a pull-up resistor is required) or active high (a pull-down
resistor is required). Fail safe. Pull to V
if not in use.
CC
External reset input. Active low. Fail safe. Reset pulse
width must be more than 500 µs to be valid.
2
C data. Fail safe
B4-NCNo connect
B1-V
E2-GNDGround
2.3 GPIO pin functions
Table 3.GPIO pin function
NamePrimary functionAlternate function
GPIO0GPIOKeypad row 0
GPIO1GPIOKeypad row 1
GPIO2GPIOKeypad row 2
GPIO3GPIOKeypad row 3
GPIO4GPIOKeypad row 4
GPIO5GPIOKeypad row 5
GPIO6GPIOKeypad row 6
GPIO7GPIOKeypad row 7
GPIO8GPIOKeypad column 0
GPIO9GPIOKeypad column 1
CC
Power supply
GPIO10GPIOKeypad column 2
GPIO11GPIOKeypad column 3
GPIO12GPIOKeypad column 4
6/60Doc ID 17884 Rev 3
STMPE1801Pin settings
Table 3.GPIO pin function
NamePrimary functionAlternate function
GPIO13GPIOKeypad column 5
GPIO14GPIOKeypad column 6
GPIO15GPIOKeypad column 7
GPIO16GPIOKeypad column 8
GPIO17GPIOKeypad column 9
The default function is always GPIO. As soon as the key scanning is enabled through the
keypad registers, the function is then switched to the key function and then any configuration
made in the GPIO registers is ignored.
Doc ID 17884 Rev 37/60
Maximum ratingsSTMPE1801
3 Maximum ratings
Stressing the device above the rating listed in the “absolute maximum ratings” table may
cause permanent damage to the device. These are stress ratings only and operation of the
device at these or any other conditions above those indicated in the operating sections of
this specification is not implied. Exposure to absolute maximum rating conditions for
extended periods may affect device reliability.
3.1 Absolute maximum ratings
Table 4.Absolute maximum ratings
SymbolParameterValueUnit
V
CC
Input voltage on GPIO pin4.5V
V
IN
V
ESD
V
ESD
Supply voltage4.5V
Minimum ESD protection on each GPIO
pin (HBM model - JESD22 A114-C)
The features supported by the I2C interface are listed below:
2
●I
C slave device
●Operates at V
●Compliant to Philips I
●Supports standard (up to 100 kbps) and fast (up to 400 kbps) modes
●7-bit device addressing modes
●General call
●Start/Restart/Stop
6.1 I2C related pins
●SCL
●SDA
The device supports both 1.8 V I
Vpullup at SCL and SDA externally is greater or equal to V
(1.8 - 3.6 V)
CC
2
C specification version 2.1
2
C and 3.3 V I2C operations. It is recommended that
.
CC
6.2 I2C addressing
The STMPE1801 7-bit addressing is set to 40h.
6.3 Start condition
A Start condition is identified by a falling edge of SDA while SCL is stable at high state. A
Start condition must precede any data/command transfer. The device continuously monitors
for a Start condition and does not respond to any transaction unless one is encountered.
The first byte is scanned after the START command is detected to check for device ID.
Ensure that all state machines are flushed when START instruction is issued.
6.4 Stop condition
A Stop condition is identified by a rising edge of SDA while SCL is stable at high state. A
Stop condition terminates the communication between the slave device and bus master. A
read command that is followed by NoAck can be followed by a Stop condition to force the
slave device into idle mode. When the slave device is in idle mode, it is ready to receive the
2
next I
C transaction. A Stop condition at the end of a write command stops the write
operation to the registers.
Once the Stop condition is detected, the device should release the bus and go to Hibernate
mode if there is no more activity.
2
An I
C transaction with a START bit followed immediately by a STOP condition should not
cause any I
2
C lock-up.
14/60Doc ID 17884 Rev 3
STMPE1801I2C specification
6.5 Acknowledge bit (ACK)
The acknowledge bit is used to indicate a successful byte transfer. The bus transmitter
releases the SDA after sending eight bits of data. During the ninth bit, the receiver pulls the
SDA low to acknowledge the receipt of the eight bits of data. The receiver may leave the
SDA in high state if it does not acknowledge the receipt of the data.
6.6 Data input
The device samples the data input on SDA on the rising edge of the SCL. The SDA signal
must be stable during the rising edge of SCL and the SDA signal must change only when
SCL is driven low.
6.7 Memory addressing
For the bus master to communicate to the slave device, the bus master must initiate a Start
condition and be followed by the slave device address. Accompanying the slave device
address, there is a Read/Write bit (R/W
operation.
If a match occurs on the slave device address, the corresponding device gives an
acknowledgement on the SDA during the 9th bit time. If there is no match, it deselects itself
from the bus by not responding to the transaction.
). The bit is set to 1 for Read and 0 for Write
6.8 Operation modes
Table 9.Operating modes
ModeByteProgramming sequence
Read≥1
START, Device address, R/W
=0, Register Address to be read
RESTART, Device Address, R/W
=1, Data Read, STOP
If no STOP is issued, the Data Read can be continuously performed. If
the register address falls within the range that allows address autoincrement, then register address auto-increments internally after every
byte of data being read. For register address that fails within a nonincremental address range, the address is kept static throughout the
entire read operation. Refer to Table 8.: STMPE1801 register summary
table for the address ranges that are auto-increment and non-increment.
An example of such a non-increment address is FIFO.
Doc ID 17884 Rev 315/60
I2C specificationSTMPE1801
M
Table 9.Operating modes
ModeByteProgramming sequence
START, Device Address, R/W
=0, Register Address to be written, Data Write, STOP
If no STOP is issued, the Data Write can be continuously performed. If
the register address falls within the range that allows address autoincrement, then register address auto-increment internally after every
Write≥1
byte of data being written. For those register addresses that fall within a
non-incremental address range, the address will be kept static
throughout the entire write operation. Refer to Table 8.: STMPE1801
register summary table for the address ranges that are auto-increment
and non-increment. An example of a non-increment address is Data
Port for initializing the PWM.
Figure 3.Operating modes
One B yte
Read
More than
One B yte
Read
One B yte
Write
ore than
One B yte
Write
Start
Start
Start
Start
Dev
Addr
Dev
Addr
Dev
Addr
Dev
Addr
Master
Slave
Reg
Addr
RnW=0
Ack
Reg
Addr
RnW=0
Ack
Reg
Addr
RnW=0
Ack
Reg
Addr
RnW=0
Ack
Ack
Ack
Ack
Ack
Dev
Addr
reStart
Dev
Addr
reStart
Data to
be
Written
Data to
Write
RnW=1
RnW=1
Ack
Stop
Data to
Write + 1
Ack
Dat a
Rea d
Ack
Ack
Dat a
Rea d
Data to
Write + 2
Ack
NoAck
Stop
Rea d + 1
Ack
Dat a
Ack
Stop
Rea d + 2
Ack
Dat a
NoAck
Stop
16/60Doc ID 17884 Rev 3
STMPE1801I2C specification
6.9 General call address
A general call address is a transaction with the slave address of 0x00 and R/W =0. When a
general call address is asserted, the STMPE1801 responds to this transaction with an
acknowledgement and behaves as a slave-receiver mode. The meaning of a general call
address is defined in the second byte sent by the master-transmitter.
Table 10.General call address
R/W
Second byte
value
00x06
00x00Not allowed as second byte.
A 2-byte transaction in which the second byte tells the slave device to reset
and write (or latch in) the 2-bit programmable part of the slave address.
Note:All other second byte values are ignored.
Definition
Doc ID 17884 Rev 317/60
System controllerSTMPE1801
7 System controller
7.1 System level registers
The system controller is the heart of the STMPE1801. It contains the registers for power
control and chip identification.
The system registers are:
AddressRegister name
00CHIP_ID
01VERSION_ID
02SYS_CTRL
CHIP_IDChip identification register
76543 210
8-bit CHIP_ID
RRRRR RRR
11000 001
VERSION_IDVersion identification register
76543 210
8-bit VERSION_ID
RRRRR RRR
00010 000
18/60Doc ID 17884 Rev 3
Loading...
+ 42 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.