24-bit Enhanced port expander with Keypad and PWM controller
Xpander logic
Features
■ 24 GPIOs
■ Operating voltage 1.8V
■ Hardware key pad controller (8*12 matrix ma x)
■ 3 PWM (8 bit) output for LED brightness control
and blinking
■ Interrupt output (open drain) pin
■ Configurable hotkey feature on each GPIO
■ Ul tr a-l ow St an db y- mo de cu rr ent
■ Package TFBGA - 36 pins 3.6x3.6mm, pitch
0.5mm
Description
The STMPE2401 is a GPIO (General Purpose
Input / output) port expander able to interface a
Main Digital ASIC via the two-line bidirectional
bus (I2C); separate GPIO Expander IC is often
used in Mobile-Multimedia platforms to solve the
problems of the limited amounts of GPIOs usually
available on the Digital Engine.
TFBGA
The STMPE2401 offers great flexibility as each
I/Os is configurable as input, output or specific
functions; it's able to scan a keyboard, also
provides PWM outputs for brightness control in
backlight, rotator decoder interface and GPIO.
This device has been designed very low
quiescent current, and is including a wake up
feature for each I/O, to optimize the power
consumption of the IC.
Potential application of the STMPE2401 includes
portable media player, game console, mobile
phone, smart phone
Alternate Function 1 Alternate Function 2 Alternate Function 3
17KP_Y1GPIO 9 Keypad output 1
18KP_Y0GPIO 8 Keypad output 0
20ADDR0GPIO 15
21KP_Y9GPIO 18Keypad output 9Rotator 0
22KP_Y10GPIO 19Keypad output 10Rotator 1
23KP_Y11GPIO 20Keypad output 11Rotator 2
24PWM3GPIO 23Channel 3
25PWM2GPIO 22Channel 2
26PWM1GPIO 21Channel 1
30KP_Y8GPIO 17Keypad output 8ClkOut
31KP_Y7GPIO 16Keypad output 7
32KP_Y6GPIO 14 Keypad output 6
8/55
STMPE2401Pin settings
2.4 Pin mapping to TFBGA ( bottom view, balls up)
Table 3. Pin mapping to TFBGA
ABCDEF
1KP-X2KP-X1Reset_NXTALOUTSCLKKP-Y6
2KP-X4KP-X3KP-X0XTALINSDATAKP-Y7
3KP-X6KP-X5GNDGNDKP-Y8INT
4VCCKP-X7GNDGNDPWM-1VCC
5KP-Y5KP-Y3KP-Y1KP-Y9PWM-3PWM-2
6KP-Y4KP-Y2KP-Y0ADDR0KP-Y10KP-Y11
9/55
Maximum ratingSTMPE2401
3 Maximum rating
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. Refer also to the STMicroelectronics SURE
Program and other relevant quality documents.
3.1 Absolute maximum rating
Table 4. Absolute maximum rating
SymbolParameterValueUnit
V
CC
V
Input voltage on GPIO pin2.5V
IN
V
Input voltage on I2C pin
I2C
VESD (HBM)ESD protection on each GPIO pin2KV
Supply voltage2.5V
4.5V
(SDATA,SCLK, INT)
3.2 Thermal data
Table 5. Thermal data
SymbolParameterMinTypMaxUnit
R
thJA
T
A
T
J
Thermal resistance junction-ambient100°C/W
Operating ambient temperature-402585°C
Operating junction temperature-4025125°C
10/55
STMPE2401Electrical specification
4 Electrical specification
4.1 DC electrical characteristics
Table 6. DC electrical characteristics
SymbolParameterTest conditions
VCC1,21.8V supply voltage1.651.81.95V
I
HIBERNATE
HIBERNATE mode
current
Min.Typ.Max.
Val ue
Unit
612uA
I
SLEEP
IccOperating current
I
_INTOpen drain output
O
V_INTVoltage level at INT pin3.6V
SLEEP mode current1550uA
(FSM working – No
peripheral activity)
current
4.2 I/O DC electrical characteristics
The 1.8V I/O complies to the EIA/JEDEC standard JESD8-7.
RpdEquivalent pull-down resistance Vi = vdd32.550110.7KΩ
Test
conditions
Min.Typ.Max.
Val ue
Unit
Note:Pull-up and Pull-down characteristics
4.5 AC characteristics
Table 10. AC characteristics
SymbolParameter
Frequency1632kHz
F
O
C
Load capacitance27pF
L
Min.Typ.Max.
Val ue
Unit
12/55
STMPE2401Register map
5 Register map
All registers have the size of 8-bit. Some of the registers are composed of 2-byte to form 16bit registers. For each of the module, their registers are residing within the given address
range.
The features that are supported by the I2C interface are as below:
2
●I
C Slave device
●SDAT and SCLK operates from 1.8V to 3.3V
●Compliant to Philip I
●Supports Standard (up to 100kbps) and Fast (up to 400kbps) modes.
●7-bit device addressing mode
●General Call
●Start/Restart/Stop
●Address up to 4 STMPE2401 devices via I
The address is selected by the state of two pins. The state of the pins will be read upon
reset and then the pins can be configured for normal operation. The pins will have a pull-up
or down to set the address. The I2C interface module allows the connected host system to
access the registers in the STMPE2401.
2
C specification version 2.1
2
C
6.1 Start condition
A Start condition is identified by a falling edge of SDATA while SCLK is stable at high state.
A Start condition must precede any data/command transfer. The device continuously
monitors for a Start condition and will not respond to any transaction unless one is
encountered.
6.2 Stop condition
A Stop condition is identified by a rising edge of SDATA while SCLK is stable at high state.
A Stop condition terminates 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 registers.
6.3 Acknowledge bit (ACK)
The acknowledge bit is used to indicate a successful byte transfer. The bus transmitter
releases the SDATA after sending eight bits of data. During the ninth bit, the receiver pulls
the SDATA low to acknowledge the receipt of the eight bits of data. The receiver may leave
the SDATA in high state if it would to not acknowledge the receipt of the data.
14/55
STMPE2401I2C Interface
6.4 Data input
The device samples the data input on SDATA on the rising edge of the SCLK. The SDATA
signal must be stable during the rising edge of SCLK and the SDATA signal must change
only when SCLK is driven low.
6.5 Slave device address
The slave device address is a 7 address, where the least significant 2-bit are programmable.
These 2-bit values will be loaded in once upon reset and after that these 2 pins no longer be
needed with the exception during General Call. Up to 4 STMPE2401 devices can be
connected on a single I
Table 12. Slave device address
ADDR 1ADDR 0Address
000x84
010x86
100x88
110x8A
2
C bus.
6.6 Memory addressing
For the bus master to communicate to the slave device, the bus master must initiate a Start
condition and followed by the slave device address. Accompanying the slave device
address, there is a Read/Write
operation.
If a match occurs on the slave device address, the corresponding device gives an
acknowledgement on the SDA during the 9
from the bus by not responding to the transaction.
bit (R/W). The bit is set to 1 for Read and 0 for Write
th
bit time. If there is no match, it deselects itself
15/55
I2C InterfaceSTMPE2401
6.7 Operation modes
Table 13. Operating modes
Mode BytesProgramming sequence
START, Device Address, R/W
= 0, Register Address to be read
RESTART, Device Address, R/W
If no STOP is issued, the Data Read can be continuously preformed. If the register
Read≥1
Write≥1
address falls within the range that allows address auto-increment, then register
address auto-increments internally after every byte of data being read. For register
address that falls within a non-incremental address range, the address will be kept
static throughout the entire read operations. Refer to the Memory Map table for the
address ranges that are auto and non-increment. An example of such a nonincrement address is FIFO.
START, Device Address, R/W
If no STOP is issued, the Data Write can be continuously performed. If the register
address falls within the range that allows address auto-increment, then register
address auto-increments internally after every byte of data being written in. For
register address that falls within a non-incremental address range, the address will
be kept static throughout the entire write operations. Refer to the Memory Map table
for the address ranges that are auto and non-increment. An example of a nonincrement address is Data Port for initializing the PWM commands.
=0, Register Address to be written, Data Write, STOP
Figure 3.Master/slave operation modes
= 1, Data Read, STOP
16/55
STMPE2401I2C Interface
Figure 4.I2C timing
Table 14. I2C address
SymbolParameterMinTypMaxUnit
f
SCL
t
LOW
t
HIGH
t
F
t
HD:STA
t
SU:STA
t
SU:DAT
t
HD:DAT
t
SU:STO
t
BUF
SCL clock frequency 0400kHz
Clock low period1.3µs
Clock high period600ns
SDA and SCL fall time300ns
START condition hold time
(After this period the first clock is generated)
START condition setup time
(Only relevant for a repeated start period)
600ns
600ns
Data setup time100ns
Data hold time0µs
STOP condition setup time600ns
Time the bust must be free before a new
trasmission can start
1.3µs
17/55
Loading...
+ 38 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.