STMPE16M31PXQTR STMicroelectronics, STMPE16M31PXQTR Datasheet

IC CTLR TOUCHKEY 16CHAN 32-QFN

STMPE16M31PXQTR

Manufacturer Part Number
STMPE16M31PXQTR
Description
IC CTLR TOUCHKEY 16CHAN 32-QFN
Manufacturer
STMicroelectronics
Series
S-Touch™r
Type
Capacitive, PWM, Ratio Enginer
Datasheets

Specifications of STMPE16M31PXQTR

Featured Product
STMPE16M31PX
Number Of Inputs/keys
16 Key, Slider
Data Interface
I²C
Data Rate/sampling Rate (sps, Bps)
100k, 400k
Voltage Reference
External
Voltage - Supply
2.7 V ~ 5.5 V
Operating Temperature
-40°C ~ 85°C
Mounting Type
Surface Mount
Package / Case
32-VFQFN Exposed Pad
Supply Voltage
1.65 V to 1.95 V
Number Of Channels
16
Dimensions
4 mm L x 4 mm W x 0.8 mm H
Temperature Range
- 40 C to + 85 C
Termination Style
SMD/SMT
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Current - Supply
-
Resolution (bits)
-
Touch Panel Interface
-
Other names
497-10738-2

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
STMPE16M31PXQTR
Manufacturer:
STM
Quantity:
12 495
Features
Applications
Table 1.
January 2011
Up to 16 capacitive sensor inputs
Independent and configurable automatic
calibration on all channels
Proximity sensing capability for over 3 cm
distance
15 fF resolution, 512 steps with 30 pF auto-
tuning
Up to 30 pF external reference capacitor
PWM and GPIO:
– Up to 16 general purpose inputs/outputs
– 8 independent PWM controllers, up to 16
– 12 mA sourcing/sinking on GPIO for LED
– Maximum source/sink current 120 mA
Operating voltage:
– 1.65 - 1.95 V (V
– 2.7- 5.5 V(V
Low operating current: 300
40
mode
I
tolerant
8 kV HBM ESD protection on all sensing pins
Multimedia bars in notebook computers
Portable media players and game consoles
Mobile phones and smartphones
2
C interface (up to 400 kHz). I
PWM outputs
driving (at 3.3 V V
µ
STMPE16M31PXQTR
A in sleep mode and 5
Order code
Device summary
IO
)
CC
IO
, internally supplied)
)
µ
µ
A in active mode,
A in hibernate
2
C is 3.3 V
S-Touch
Doc ID 17058 Rev 2
QFN32 (4 x 4 mm)
Package
®
Description
The STMPE16M31PX capacitive touchkey
controllers offer highly versatile and flexible
capacitive sensing capabilities in one single chip.
The devices integrate up to 16 capacitive sensing
channels which are highly sensitive and noise
tolerant. Eight independent PWM controllers allow
to control up to 16 LEDs with brightness control,
ramping and blinking capabilities. The I
interface supports up to 400 kHz communication
with the system host. A very wide dynamic range
allows most applications to work without
hardware tuning.
A single STMPE16M31PX device can be used to
implement a complete notebook multimedia
control bar with eight capacitive touchkeys,
proximity sensor with sensitivity up to 5 cm and
eight independently controlled LED.
16-channel touchkey controller
STMPE16M31PX
with proximity sensing
(4 x 4 mm)
QFN32
Tape and reel
Packaging
2
C
www.st.com
1/75
75

Related parts for STMPE16M31PXQTR

STMPE16M31PXQTR Summary of contents

Page 1

... Multimedia bars in notebook computers ■ Portable media players and game consoles ■ Mobile phones and smartphones Table 1. Device summary Order code STMPE16M31PXQTR January 2011 ® S-Touch 16-channel touchkey controller Description The STMPE16M31PX capacitive touchkey controllers offer highly versatile and flexible capacitive sensing capabilities in one single chip. ...

Page 2

Contents Contents 1 Pin assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 3

STMPE16M31PX 13.3 Auto tuning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 4

Pin assignment 1 Pin assignment Figure 1. STMPE16M31PX pin out Table 2. STMPE16M31PX pin description Pin number 4/75 Pin name Voltage domain GPIO-0 VIO GPIO-1 VIO GPIO-2 ...

Page 5

STMPE16M31PX Table 2. STMPE16M31PX pin description (continued) Pin number Pin name Voltage domain INT VCC Address 0 VCC SCL VCC SDA ...

Page 6

Pin assignment Figure 2. Block diagram 6/75 Doc ID 17058 Rev 2 STMPE16M31PX ...

Page 7

STMPE16M31PX Figure 3. Sample application - notebook multimedia bar Table 3. Limitations on intrinsic capacitance on PCB / flexi PCB Cmax-Cmin (Difference between highest and lowest channel capacitance) < < > 30 pF, < ...

Page 8

Pin assignment 1.1 Power scheme The STMPE16M31PX is powered by a 2.7- 5.5 V supply. An internal voltage regulator regulates this supply into 1.8 V for core operation recommended to connect a 1 µF capacitor ...

Page 9

STMPE16M31PX interface module The STMPE16M31PX has 2 physical I settings. 2 Table address pins Address The features that are supported by the I 2 – slave ...

Page 10

I C interface module 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 ...

Page 11

STMPE16M31PX Figure 5. Read and write modes (random and sequential ...

Page 12

I C interface module Figure 6. Flow diagram for read and write modes 12/75 Doc ID 17058 Rev 2 STMPE16M31PX ...

Page 13

STMPE16M31PX 3 Read operations Read operations for one or more bytes A write is first performed to load the base register address into the address counter but without sending a Stop condition. Then, the bus master sends a reStart condition ...

Page 14

Write operations 4 Write operations 4.1 Write operations for one or more bytes A write is first performed to load the base register address into the Address Counter without sending a Stop condition. After the bus master receives an acknowledgement ...

Page 15

STMPE16M31PX 5 General call address A general call address is a transaction with the slave address of 0x00 and R When a general call address is made, the GPIO expander responds to this transaction with an acknowledgement and ...

Page 16

Register map and function description 6 Register map and function description This section lists and describes the registers of the STMPE16M31PX device, starting with a register map and then provides detailed descriptions of register types. Table 8. Register map Address ...

Page 17

STMPE16M31PX Table 8. Register map (continued) Address 0x27 0x28 0x29 0x2A 0x2B 0x2C 0x2D 0x2E 0x2F 0x30 0x40 0x41 0x42 0x43 0x44 0x45 0x46 0x47 0x48 0x49 0x4A 0x4B 0x4C 0x4D 0x4E 0x4F 0x50 0x51 0x52 Register name Reset value ...

Page 18

Register map and function description Table 8. Register map (continued) Address 0x53 0x54 0x55 0x56 0x57 0x58 0x59 0x5A 0x5B 0x5C 0x5D 0x5E 0x5F 0x70 0x71 0x72 0x76 0x77 0x78 0x7C 0x90 0x92 0x96 0x97 0x98 18/75 Register name Reset ...

Page 19

STMPE16M31PX Table 8. Register map (continued) Address 0xB1 0xBO 0x9A 0xB4 0xC0 0xC2 0xC4 0xC6 0xC8 0xCA 0xCC 0xCE 0xD0 0xD2 0xD4 0xD6 0xD8 0xDA 0xDC 0xDE 0xE0 Register name Reset value PEPort1 0x00 PEPort0 0x00 KEY_FILT_DATA 0x00000000 TOUCH_DET 0x00000000 ...

Page 20

System controller 7 System controller The system controller contains the registers that control the following functions: – Device identification – Version identification – Power state management – Clock speed management – Clock gating to various modules Table 9. System controller ...

Page 21

STMPE16M31PX SYSCON-1 Address: 0x03 Type: R/W Reset: 0x00 Description: The general system control register (SYSCON-1) controls the operation state and clock speed of the device RESERVED RESERVED RESERVED [7:5] RESERVED: Do not write to ...

Page 22

System controller SYSCON-2 Address: 0x04 Type: R/W Reset: 0xFE Description: Sensor and PWM clock divider. The SYSCON-2 register controls the sensor and PWM clock speed, and the clock gating of various functional modules. This bit will always read '0'. as ...

Page 23

STMPE16M31PX [2] PMW_CLK: PWM clock disable Write “1“ to disable the clock to PWM module. When clock to PWM module is disabled, access to PWM module register will not work correctly. [1] GPIO_CLK: GPIO clock disable Write “1” to diWrite ...

Page 24

System controller 7.1 Interrupt system This module controls the interruption to the host based on the activity of other modules in the system, such as the capacitive sensing, GPIO and PWM modules. Figure 7. Interrupt system Table 10. Interrupt system ...

Page 25

STMPE16M31PX INT_CTRL Address: 0x06 Type: R/W Reset: 0x00 Description: SYSCON3 controls the interrupt signal generation RESERVED [7:3] RESERVED [2] INT_POL: Interrupt polarity 0: Active low 1: Active high [1] INT_TYPE: Interrupt trigger type 0: ...

Page 26

System controller INT_STA Address: 0x08 Type: R/W Reset: 0x00 Description: This register holds interrupt status from each event GPIO PWM WAKEUP [7] GPIO: Activity in GPIO Read ‘1’ if GPIO event occurs Write ‘1’ ...

Page 27

STMPE16M31PX INT_EN Address: 0x09 Type: R/W Reset: 0x00 Description: Controls interrupt source enable GPIO PWM WAKEUP [7] GPIO: Activity in GPIO Write ‘1’ to enable interrupt signal from GPIO Write ‘0’ to disable interrupt ...

Page 28

System controller GPIO_INT_STA Address: 0x0A – 0x0B Type: R/W Reset: 0x0000 Description: This register reflects the status of GPIO that has been configured as input. When there is a change in GPIO state, the corresponding bit will be set to ...

Page 29

STMPE16M31PX GPIO_INT_EN Address: 0x0C – 0x0D Type: R/W Reset: 0x0000 Description: This register is used to enable the generation of interrupt signal, at the INT pin. LSB (0x0C IO-7 IO MSB (0x0D ...

Page 30

System controller PWM_INT_EN Address: 0x0F Type: R/W Reset: 0x00 Description: Writing ‘1’ to this register enables the generation of INT by the corresponding PWM channel PWM-7 PWM [7:0] PWM - X Enable of PWM ...

Page 31

STMPE16M31PX 8 Interrupt service routine On receiving an interrupt, system software should: Read InterruptStatus If (GPIO.bit==1) { Read InterruptStatusGPIO Process GPIO INT Write InterruptStatusGPIO to clear the corresponding bit Write InterruptStatus to clear the corresponding bit } If (PWM.bit==1) { ...

Page 32

GPIO controller 9 GPIO controller A total of 16 GPIOs are available in the STMPE16M31PX. Most of the GPIOs are sharing physical pins with some alternate functions. The GPIO controller contains the registers that allow the host system to configure ...

Page 33

STMPE16M31PX GPIO_MP_STA Address: 0x12 – 0x13 Type: R Reset: 0x00 Description: Contains the state of all GPIO. LSB (0x12 IO-7 IO MSB (0x13 IO-15 IO- [7: ...

Page 34

GPIO controller GPIO_SET_PIN Address: 0x14 – 0x15 Type: RW Reset: 0x00 Description: Setting of the I/O output state. LSB (0x14 IO-7 IO MSB (0x15 IO-15 IO- [7:0] IO ...

Page 35

STMPE16M31PX GPIO_AF Address: 0x16 – 0x17 Type: RW Reset: 0x00 Description: Setting of the GPIO function. LSB (0x16 IO-7 IO MSB (0x17 IO-15 IO- [7: ...

Page 36

PWM array controller 10 PWM array controller The STMPE16M31PX integrates 8 independent PWM controllers capable of blinking and brightness control. Each of the PWM controllers can be programmed to execute a series of blinking/brightness control actions. One PWM controller could ...

Page 37

STMPE16M31PX GPIO_PWM_CFG Address: 0x20-2F Type: RW Reset: 0x00 Description: This register controls the routing network which connects each PWM channel to any GPIO channel. GPIOn_PWM_CFG register (n=0-15, represent the GPIO channel number OUT_EN RESERVED ...

Page 38

PWM controller 11 PWM controller The PWM controller allows to control the brightness, ramping/fading and blinking of LEDs. The STMPE16M31PX features 8 independent PWM controllers. The PWM controllers outputs are connected to the GPIO through the PWM array controller. The ...

Page 39

STMPE16M31PX Table 12. PWM function registers (continued) Address Register name 0x50 0x51 PWM_4_CTRL 0x52 PWM_4_RAMP 0x53 PWM_4_TRIG 0x54 0x55 PWM_5_CTRL 0x56 PWM_5_RAMP 0x57 PWM_5_TRIG 0x58 0x59 PWM_6_CTRL 0x5A PWM_6_RAMP 0x5B PWM_6_TRIG 0x5C 0x5D PWM_7_CTRL 0x5E PWM_7_RAMP 0x5F PWM_7_TRIG PWM_MASTER_EN Address: ...

Page 40

PWM controller PWM_n_SET Address: 0x40, 0x44, 0x48, 0x4C, 0x50, 0x54, 0x58, 0x5C Type: RW Reset: 0x00 Description: Setting of brightness, time unit and ramp-mode BRIGTHNESS [7:4] BRIGHTNESS: It defines the duty cycle during the ...

Page 41

STMPE16M31PX PWM_n_CTRL Address: 0x41, 0x45, 0x49, 0x4D, 0x51, 0x55, 0x59, 0x5D Type: RW Reset: 0x00 Description: Setting of ON/OFF period, repetition, and ON/OFF order Period [7:6] Period 0 Define the ON time based ...

Page 42

PWM controller PWM_n_RAMP_RATE Address: 0x42, 0x46, 0x4A, 0x4E, 0x52, 0x56, 0x5A, 0x5E Type: RW Reset: 0x00 Description: Setting of ramp rate 7 6 INV Reserved [7] INV LED driving/sinking mode Write ‘1’ for LED sinking mode ...

Page 43

STMPE16M31PX PWM_n_TRIG Address: 0x43, 0x47, 0x4B, 0x4F, 0x53, 0x57, 0x5B, 0x5F Type: RW Reset: 0x00 Description: Setting of touch sensor-triggered PWM RESERVED [7:6] RESERVED [6:5] EN: Write ‘1’ to enable touch sensor-triggered PWM ...

Page 44

Basic PWM programming 12 Basic PWM programming The PWM controllers are capable of generating the following brightness patterns: Figure 9. Pulses with programmable brightness, ON/OFF period and repetition The registers need to be programmed for this sequence: – On period ...

Page 45

STMPE16M31PX The registers need to be programmed for this sequence : – On Period = Period 0[1:0] * Time Unit [3:0] – Off Period = Period 1[1:0] * Time Unit [3:0] – Duty cycle during On Period = Brightness [7:4] ...

Page 46

Basic PWM programming 12.1 Interrupt on basic PWM controller A basic PWM controller could be programmed to generate interrupt on completion of blinking sequence. User needs to consider: a) Each basic PWM controller has its own bit in interrupt enable/status ...

Page 47

... STMPE16M31PX 13 Touch sensor controller The STMPE16M31PX device uses the STMicroelectronics’ patent pending capacitive front end. The capacitive sensor is configure by the following registers: Table 13. Touch sensor controller registers Address Register Name 0x70 CH_SEN_CTRL 0x72 - 0x73 0x76 0x77 0x78 0x7C 0xC0-0xDF Reset Value ...

Page 48

Touch sensor controller Figure 12. Touch sensing module flowchart 13.1 Sampling rate calculation The capacitive sensor operates with a 2 MHz base clock, a single capacitive sensor scans active channels. The SCLK_DIV divides the sensor clock by ...

Page 49

STMPE16M31PX 13.2 Sensor resolution The capacitive sensor hardware in the STMPE16M31PX devices has a sensitivity and a range of 512 steps giving it a dynamic range of 7.5 pF. The impedance reading is the output of an ...

Page 50

Touch sensor controller Figure 13. Auto-tuning operation 50/75 Doc ID 17058 Rev 2 STMPE16M31PX ...

Page 51

STMPE16M31PX 13.4 Locked impedance Locked impedance is data available in channel data the moment 0x06 is written into “channel data type register”. Writing a different value into the “channel data type register” allows the locked impedance to be refreshed. In ...

Page 52

Touch sensor controller CAP_SEN_CTRL Address: 0x70 Type: RW Reset: 0x00 Description: This register controls the capacitive sensor’s operation CS_EN [7] CS_EN Write ‘1’ to enable the capacitive sensor module Write ‘0’ to disable the ...

Page 53

STMPE16M31PX CH_SEL Address: 0x72-0x73 Type: RW Reset: 0x000000 Description: This register configures the active capacitive sensing channels. Bit 7-0 (0x72 Bit 15-8 (0x73 S15 S14 [7:0] ...

Page 54

Touch sensor controller CAL_INT Address: 0x76 Type: RW Reset: 0x00 Description: This register configures the interval between successive calibrations MULTIPLIER [7:6] MULTIPLIER Set the multiplier value for calibration interval set in Interval[5:0] ‘00’ for ...

Page 55

STMPE16M31PX CAL_MOD Address: 0x77 Type: RW Reset: 0x00 Description: This register configures the way calibration samples are collected, and the model of calibration algorithm CSInterval [7:3] CSInterval Set the interval between samples in one ...

Page 56

Touch sensor controller MAF_SET Address: 0x78 Type: RW Reset: 0x00 Description: This register chooses the median averaging filter mode Reserved [2:1] MAF_Mode ‘00’ to collect 10 samples, remove 2 samples ‘01’ to collect 18 ...

Page 57

STMPE16M31PX CH_DATA-n Address: 0xC0-0xDF Type: RW Reset: 0x00 Description: Capacitive sensor channel data. The type of data represented by this register depends on the channel data type register (0x7C). LSB, address : 0xC0 + (2*N channel number 7 ...

Page 58

Touch sensor controller 13.6 Definition of data accessible through channel data register Table 14. Types of data accessible through the channel data register Data name TVR EVR Channel delay Impedance Calibrated Impedance Locked impedance 58/75 TVR (touch variance register) is ...

Page 59

STMPE16M31PX 14 Touchkey and proximity sensing controller The touchkey controller processes raw capacitance measurement data into “touch/no- touch” boolean data for easy usage. The key filter unit provides additional flexibility by allowing the system to define a maximum number of ...

Page 60

Touchkey and proximity sensing controller Figure 15. Data flow in touchkey controller 60/75 Doc ID 17058 Rev 2 STMPE16M31PX ...

Page 61

STMPE16M31PX KEY_PROX_CTRL Address: 0x90 Type: RW Reset: 0x00 Description: Setting of key filter unit PROX_CHL_SELECT [7:4] PROX_CHL_SELECT: Chooses one of the first 16 sensing channel as proximity sebsor input [3] RESERVED [2] PROX_EN: Write ...

Page 62

Touchkey and proximity sensing controller KEY_FILT_GROUP-1 Address: 0x92-0x93 (KeyFilterMask1) Type: R/W Reset: 0x000000 Description: Configure the channels included in a group of key filter unit. Bit 7-0 (0x92 Bit 15-8 (0x93) 7 ...

Page 63

STMPE16M31PX KEY_FILT_DATA Address: 0x9A-0x9B Type: RW Reset: 0x000000 Description: Represent the status of (touch/no-touch), after being filtered by key filter unit. This register is always active and key status can be accessed from this register regardless of key filter unit ...

Page 64

Touchkey and proximity sensing controller TOUCH_DET Address: 0xB4-B5 Type: RW Reset: 0x0000 Description: Represents the real time status of the touchkey input. This is a direct result of comparison of sensed impedance with calibrated impedance (taking in account of hysteresis). ...

Page 65

STMPE16M31PX PROX_CFG 7 6 DITHERING RESERVED R/W R Address: 0x96 Type: RW Reset: 0x00 Description: Proximity configuration register. [7:6] DITHERING FACTOR -8x 10 -16x 11-32x The higher the dithering factor, the more sensitive the ...

Page 66

Touchkey and proximity sensing controller PTVR Address: 0x97 Type: RW Reset: 0x00 Description: Proximity variance register. Typical value is 0x08 - 0x20 66/75 Proximity variance register Doc ID 17058 Rev 2 STMPE16M31PX ...

Page 67

STMPE16M31PX PEVR Address: 0x98 Type: RW Reset: 0x00 Description: Proximity enviromental variance register. [7] Forced proximity calibration. Writing '1' to this bit forces the proximity sensing module to use the current dithered impedance as calibrated dithered impedance. After writing '1' ...

Page 68

Maximum rating 15 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 ...

Page 69

STMPE16M31PX 16 DC electrical characteristics - unless stated otherwise. °C Table 18. DC electrical characteristics Symbol Vcc Core supply voltage Vio IO supply voltage Iactive ACTIVE current Iactive ACTIVE current Isleep SLEEP current Ihibernate HIBERNATE current Input voltage ...

Page 70

DC electrical characteristics 16.1 Capacitive sensor specification - unless stated otherwise. °C Symbol Capacitive sensor Cs sensitivity Variance of Cs across Csvr channels 70/75 Parameter Test conditions V = 2.7 - 5.5 V, internal IO V REG V ...

Page 71

STMPE16M31PX 17 Package mechanical data In order to meet environmental requirements, ST offers these devices in different grades of ® ECOPACK packages, depending on their level of environmental compliance. ECOPACK specifications, grade definitions and product status are available at: www.st.com. ...

Page 72

Package mechanical data Table 19. Package mechanical data for QFN32 ( mm) - pitch 0.4 mm Symbol e/2 L Figure 17. Footprint recommendation for QFN32 ( mm) ...

Page 73

STMPE16M31PX Figure 18. Tape drawing Table 20. Reel info W 12 Figure 19. Reel info N W1 178 ±5 mm 12.4±2/-0 Doc ID 17058 Rev 2 Package mechanical data W2 C 18.4 13±0.25 73/75 ...

Page 74

Revision history 18 Revision history Table 21. Document revision history Date 08-Dec-2009 11-Jan-2011 74/75 Revision 1 Initial release. Document status promoted from preliminary data to datasheet. 2 Updated QFN32 package mechanical data. Removed STMPE24M31PX part number. Doc ID 17058 Rev ...

Page 75

... STMPE16M31PX Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST’s terms and conditions of sale. ...

Related keywords