STMPE2401 is the first in the ST family of I/O port expanders. The principle of a basic I/O
port expander is that it provides additional I/Os that can be used by the host processor to
implement additional features such as increased number of inputs/outputs, expanding the
number of control signals and mixed signal lines, controlling a greater number of peripherals
without resorting to an additional Complex Programmable Logic Device (CPLD) or
upgrading the central processing unit (CPU).
In addition to these basic features, the STMPE2401 comes with integrated intelligence to
implement advanced features such as keypad scanning, PWM control, rotator dial control,
etc.
The STMPE2401 can be widely used in the fields of mobile communications, portable
media players, game console, mobile phones, smart phones, consumer electronics and
computer peripherals like state-of-the-art printers, advanced embedded systems, etc.
This application note deals with the setup and hardware interfacing of the device to perform
various functions and the different modes for reducing power consumption.
1. A highly flexible interrupt system eliminates the need for polling and reduces CPU
usage
2. Low power consumption
3. Wake-up from Sleep mode
4. Easy-to-use driver software
5. Flexibility in the configuration of individual GPIOs
6. Simpler connection to CPU (just two I
communication
7. Combinational keys to enhance gaming experience
8. Applications: Mobile phone keypads, all-in-one printers, game consoles, embedded
systems, portable media players, etc.
Figure 1.Concept of GPIO port expander
2
C lines + Interrupt pin) for configuration and
3/19
STMPE2401 Hardware descriptionAN2422
2 STMPE2401 Hardware description
The STMPE2401 is a GPIO (General Purpose Input/Output) port expander able to interface
to a digital application-specific integrated circuit (ASIC) via the two-line bidirectional bus
2
(I
C).
A separate GPIO Expander IC is often used in Mobile-Multimedia platforms to solve the
problems of the limited GPIOs usually available on the Digital Engine.
The STMPE2401 offers great flexibility as each I/O is configurable as input, output or in
specific functions, to scan a keyboard, provide PWM outputs for brightness control in
backlighting or in a rotator decoder interface. This device is designed for use with a very low
quiescent current, and includes a wake-up feature for each I/O to optimize the power
consumption of the IC. The main features of the port expander device are:
●24 GPIOs
●Operating voltage 1.8V
●Hardware keypad controller (8*12 Matrix maximum)
●3 PWM (8-bit) outputs for LED brightness control and LED blinking
●Interrupt output (open drain) pin
●Configurable hotkey feature on each GPIO
●Ultra-low Standby-mode Current
●Small Package TFBGA - 36 pins, 3.6x3.6mm and 0.5mm pitch making it optimal for use
in portable applications such as mobile phones with critical space constraints.
4/19
AN2422STMPE2401 Hardware description
Figure 2.STMPE2401 block diagram
Keypad
Controller
GPIOs
7:0
Keypad
Inputs
Function
Select
Keypad Inputs 7:0
GPIOs 7:0
INT
SCLK
S DATA
Controller Core
+PWM
+Rotator Control
+GPIO Control
2
I²C Interface
GND
A0
A1
Keypad
Outputs
Function
Select
GPIO
15
PWM
O/P
POR
RC Oscillator
Clock
Controller
XTALINXTALOUT
Keypad Outputs 11:0
GPIOs 14:8 and 20:16
Rotator
GPIO 15
Addr0
PWM1, 2 and 3
Addr1
GPIOs 23:21
Reset_N
CC1
CC2
V
CC1
V
CC2
Ai12531
5/19
STMPE2401 Hardware descriptionAN2422
2.1 STMPE2401 pin description
Ta bl e 1 describes all the pins on the STMPE2401 device.
Table 1.STMPE2401 Pin list
PinNameTypeDescription
1GND-
2KP_X0IOGPIO
3Reset_NIExternal reset input, active LOW
4KP_X1IOGPIO
5KP_X2IOGPIO
6KP_X3IOGPIO
7KP_X4IOGPIO
8KP_X5IOGPIO
9KP_X6IOGPIO
10GND-
11V
CC1
12KP_X7IOGPIO
13KP_Y5IOGPIO
14KP_Y4IOGPIO
15KP_Y3IOGPIO
16KP_Y2IOGPIO
17KP_Y1IOGPIO
18KP_Y0IOGPIO
19GND-
20ADDR0IOGPIO and I
21KP_Y9A/IOGPIO
22KP_Y10A/IOGPIO
23KP_Y11A/IOGPIO
24PWM3A/IOGPIO and I
25PWM2A/IOGPIO
26PWM1A/IOGPIO
27V
CC2
28GND-
29INTOOpen drain interrupt output pin
30KP_Y8IOGPIO
31KP_Y7IOGPIO
32KP_Y6IOGPIO
33SDATAAI
34SCLKAI
35XTALINAXTAL oscillator or external 32-kHz input
36XTALOUT AXTAL oscillator
-1.8V Input
-1.8V Input
2
C DATA
2
C clock
2
C ADDR 0 (in reset)
2
C ADDR 1 (in reset)
6/19
Loading...
+ 13 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.