stmpe16m31px STMicroelectronics, stmpe16m31px Datasheet

no-image

stmpe16m31px

Manufacturer Part Number
stmpe16m31px
Description
S-touch? 16/24-channel Touchkey Controller With Proximity Sensing
Manufacturer
STMicroelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
stmpe16m31pxQTR
Manufacturer:
STM
Quantity:
12 495
Features
Applications
Table 1.
February 2010
This is preliminary information on a new product now in development or undergoing evaluation. Details are subject to
change without notice.
Up to 24 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
µ
STMPE24M31PXQTR
STMPE16M31PXQTR
A in sleep mode and 5
Order code
Device summary
IO
)
CC
IO
, internally supplied)
)
µ
µ
A in hibernate
A in active mode,
2
S-Touch™ 16/24-channel touchkey controller
C is 3.3 V
Doc ID 17058 Rev 1
QFN40 (5 x 5 mm)
QFN32 (4 x 4 mm)
Package
Description
The STMPE16M31PX and STMPE24M31PX
capacitive touchkey controllers offer highly
versatile and flexible capacitive sensing
capabilities in one single chip.
The devices integrate up to 24 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 STMPE24M31PX 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.
(5 x 5 mm)
QFN40
STMPE16M31PX
STMPE24M31PX
with proximity sensing
Tape and reel
Tape and reel
Packaging
(4 x 4 mm)
QFN32
Preliminary data
2
C
www.st.com
1/82
82

Related parts for stmpe16m31px

stmpe16m31px Summary of contents

Page 1

... This is preliminary information on a new product now in development or undergoing evaluation. Details are subject to change without notice. S-Touch™ 16/24-channel touchkey controller ( mm) Description The STMPE16M31PX and STMPE24M31PX capacitive touchkey controllers offer highly versatile and flexible capacitive sensing capabilities in one single chip. The devices integrate capacitive sensing channels which are highly sensitive and noise tolerant ...

Page 2

... Interrupt system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 8 Interrupt service routine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 9 GPIO controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 10 PWM array controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 11 PWM controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 11.1 PWM function register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 12 Basic PWM programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 12.1 Interrupt on basic PWM controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 13 Touch sensor controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 13.1 Sampling rate calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 13.2 Sensor resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 2/82 STMPE16M31PX, STMPE24M31PX Doc ID 17058 Rev 1 ...

Page 3

... STMPE16M31PX, STMPE24M31PX 13.3 Auto tuning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 13.4 Locked impedance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 13.5 Calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 13.6 Definition of data accessible through channel data register . . . . . . . . . . . 59 14 Touchkey and proximity sensing controller . . . . . . . . . . . . . . . . . . . . . 60 15 Maximum rating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 15.1 Recommended operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 16.1 Capacitive sensor specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 17 Package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 18 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Doc ID 17058 Rev 1 ...

Page 4

... Pin assignment 1 Pin assignment Figure 1. STMPE24M31PX pin out 4/82 STMPE16M31PX, STMPE24M31PX Doc ID 17058 Rev 1 ...

Page 5

... STMPE16M31PX, STMPE24M31PX Figure 2. STMPE16M31PX pin out Table 2. Pin description STMPE24M31PX pin number STMPE16M31PX Pin name pin number 1 GPIO-0 2 GPIO-1 3 GPIO-2 4 GND 5 VIO - CAP-16 - CAP-17 6 GPIO-3 7 GPIO-4 8 GPIO-5 9 GPIO-6 10 GPIO-7 11 GND 12 VIO Doc ID 17058 Rev 1 ...

Page 6

... GPIO-13 29 VIO 30 GND - CAP-22 - CAP-23 31 GPIO-14 32 GPIO-15 Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX Voltage domain Description VCC Capacitive sense VCC Capacitive sense - Open drain interrupt output. This pin should be pulled to VCC or GND, VCC depending on polarity of interrupt used. This pin must not be left floating. ...

Page 7

... STMPE16M31PX, STMPE24M31PX Figure 3. Block diagram Doc ID 17058 Rev 1 Pin assignment 7/82 ...

Page 8

... For small PCBs possible to operate the device with CRef left unconnected. However, without a small capacitance at this pin, the capacitive sensing operation tends to be noisier recommended that a capacitor connected to this pin. 8/82 STMPE16M31PX, STMPE24M31PX Cmax < > 30 pF, < > ...

Page 9

... STMPE16M31PX, STMPE24M31PX 1.1 Power scheme The STMPE24M31PX/16M31PX 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 at V driving is required on the GPIO, the V Figure 5. Power supply scheme 1.2 Power states The STMPE24M31PX/16M31PX operate in 3 states. ...

Page 10

... C transaction. A Stop condition at the end of a write command stops the write operation to registers. 10/ address pins, allowing 4 different I Address interface module are the following ones specification version 2.1 Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX address 0x58 0x59 0x5A 0x5B 2 C ...

Page 11

... STMPE16M31PX, STMPE24M31PX 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 would to not acknowledge the receipt of the data ...

Page 12

... LSB ) Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX ite + ite + 2 ...

Page 13

... STMPE16M31PX, STMPE24M31PX Figure 7. Flow diagram for read and write modes Doc ID 17058 Rev interface module 13/82 ...

Page 14

... For the above read command, the slave device waits, after each byte read, for an acknowledgement during the 9th bit time. If the bus master does not drive the SDA to low state (no acknowledgement by the master), then the slave device terminates and switches back to its idle mode, waiting for the next command. 14/82 STMPE16M31PX, STMPE24M31PX Doc ID 17058 Rev 1 ...

Page 15

... STMPE16M31PX, STMPE24M31PX 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 from the slave device, it may start to send a data byte to the register (pointed by the Address Counter) ...

Page 16

... Not allowed as second byte. Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX ...

Page 17

... STMPE16M31PX, STMPE24M31PX 6 Register map and function description This section lists and describes the registers of the STMPE16M31PX and STMPE24M31PX devices, starting with a register map and then provides detailed descriptions of register types. Table 8. Register map Address 0x00 0x02 0x03 0x04 0x06 0x08 0x09 ...

Page 18

... PWM_3_SET 0x00 PWM_3_CTRL 0x00 PWM_3_RAMP_RATE 0x00 PWM_3_TRIG 0x00 PWM_4_SET 0x00 PWM_4_CTRL 0x00 PWM_4_RAMP_RATE 0x00 Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX Register function Configures PWM output of RW GPIO-7 Configures PWM output of RW GPIO-8 Configures PWM output of RW GPIO-9 Configures PWM output of RW ...

Page 19

... STMPE16M31PX, STMPE24M31PX 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 Register name Reset value PWM_4_TRIG 0x00 PWM_5_SET 0x00 PWM_5_CTRL ...

Page 20

... CH_DATA-17 0x0000 CH_DATA-18 0x0000 CH_DATA-19 0x0000 CH_DATA-20 0x0000 CH_DATA-21 0x0000 CH_DATA-22 0x0000 CH_DATA-23 0x0000 Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX Register function R Proximity data 1 R Proximity data O Filtered touchkey data Touch detection register R (real time) Channel data according to data type setting ...

Page 21

... STMPE16M31PX, STMPE24M31PX 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 registers Address Register name ...

Page 22

... RESERVED: Do not write to these bits. Reads ‘0’. [1] SOFT_RST: Soft reset perform soft reset. [0] HIBRNT: Hibernate force the device to hibernate mode. 22/ CLKSPD SLEEP_EN Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX General system control 2 1 Reserved SOFT_RST HIBRNT ...

Page 23

... STMPE16M31PX, STMPE24M31PX 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 the I2C transaction to read this bit will wake up the device from hibernate mode ...

Page 24

... When clock to GPIO module is disabled, access to GPIO module register will not work correctly. [0] CS_CLK: Capacitive sensor clock disable Write “1“ to disable the clock to capactive sensor module When clock to touch module is disabled, access to touch module registers will not work correclty. 24/82 STMPE16M31PX, STMPE24M31PX Doc ID 17058 Rev 1 ...

Page 25

... STMPE16M31PX, STMPE24M31PX 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 8. Interrupt system Table 10. Interrupt system registers Address Register name 0x06 0x08 0x09 0x0A GPIO_INT_STA ...

Page 26

... INT_POL: Interrupt polarity 0: Active low 1: Active high [1] INT_TYPE: Interrupt trigger type 0: Level trigger 1: Edge trigger [0] INT_EN: Interrupt enable 1: Enable the interrupt 0: Disable the interrupt 26/ Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX Interrupt control register 2 1 INT_POL INT_TYPE INT_EN ...

Page 27

... STMPE16M31PX, STMPE24M31PX 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’ to clear the interrupt status [6] PWM: Any channel of PWM has completed the programmed sequence Read ‘ ...

Page 28

... PROX: Proximity sensor event Write ‘1’ to enable interrupt signal from proximity sensor [0] RESERVED Write ‘0’ to disable interrupt signal from proximity sensor 28/ ENV EOC Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX Interrupt enable register 2 1 TOUCH PROX RESERVED ...

Page 29

... STMPE16M31PX, STMPE24M31PX 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 ‘1’ by hardware. Writing ‘1’ to the corresponding bit clears it. Writing ‘0’ has no effect. ...

Page 30

... IO-13 IO-12 IO- PWM-5 PWM-4 PWM Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX Interrupt enable GPIO register 2 1 IO-2 IO IO-10 IO Interrupt status PWM register 2 1 PWM-2 PWM-1 PWM IO-0 RW ...

Page 31

... STMPE16M31PX, STMPE24M31PX 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 – X. Write ‘1’ to the corresponding bit to enable interrupt generated by a PWM channel ...

Page 32

... Write InterruptStatusGPIO to clear the corresponding bit Write InterruptStatus to clear the corresponding bit } If (PWM.bit==1) { Read InterruptStatusPWM Process PWM INT Write InterruptStatusPWM to clear the corresponding bit Write InterruptStatus to clear the corresponding bit } If ( EV_ALARM or TOUCHSCREEN or TOUCHKEY) { Process INT Write InterruptStatus to clear the corresponding bit } 32/82 STMPE16M31PX, STMPE24M31PX Doc ID 17058 Rev 1 ...

Page 33

... STMPE16M31PX, STMPE24M31PX 9 GPIO controller A total of 16 GPIOs are available in the STMPE24M31PX/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 each of the pins into either a GPIO, or one of the alternate functions. Unused GPIOs should be configured as outputs to minimize the power consumption ...

Page 34

... Read ‘1’ if the corresponding HIGH state Read ‘0’ if the corresponding LOW state 34/ IO-5 IO-4 IO IO-13 IO-12 IO- Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX GPIO monitor pin state register 2 1 IO-2 IO IO- ...

Page 35

... STMPE16M31PX, STMPE24M31PX 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: Write ‘1’ to set the corresponding IO output state to HIGH Write ‘0’ to set the corresponding IO output state to LOW ...

Page 36

... Write ‘1’ to set the corresponding GPIO to alternate function (IO) Write ‘0’ to set the corresponding GPIO to primary function (capacitive sensor) 36/ IO-5 IO-4 IO IO-13 IO-12 IO- Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX GPIO function register 2 1 IO-2 IO-1 IO IO-10 IO-9 IO ...

Page 37

... STMPE16M31PX, STMPE24M31PX 10 PWM array controller The STMPE24M31PX 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 be mapped to more than one GPIO, allowing multiple GPIO outputs to share a PWM controller. ...

Page 38

... Write ‘1’ to set the I/O state to HIGH after PWM sequence has been completed Write ‘0’ to set the I/O state to LOW after PWM sequence has been completed 38/ OUT_IDLE Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX PWM array controller 2 1 PWM_SEL ...

Page 39

... The PWM’s frequency is 32 kHz (to be out of audio range). 11.1 PWM function register map This section lists and describes the PWM function registers of the STMPE16M31PX and STMPE24M31PX devices, starting with a register map and then provides detailed descriptions of register types. ...

Page 40

... PWM_7_SET 0x00 0x00 0x00 0x00 EN5 EN4 EN3 Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX R/W Description RW PWM4 setup RW PWM4 control RW PWM4 ramp rate RW PWM4 trigger RW PWM5 setup RW PWM5 control RW PWM5 ramp rate RW PWM5 trigger RW PWM6 setup ...

Page 41

... STMPE16M31PX, STMPE24M31PX 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 ON period of the PWM channel output in no-ramp mode or the highest duty cycle to be reached in ramp-mode. The PWM duty cycle determines the brightness level of the LED that the PWM output drives. ‘ ...

Page 42

... Order Set the order of period 0 and period 1 ‘1’ : sequence = period 1 and then period 0 ‘0’ : sequence = period 0 and then eriod 1 42/ Period Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX PWM-n control register 2 1 Repetition Order ...

Page 43

... STMPE16M31PX, STMPE24M31PX 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 (HIGH = LED Off, LOW = LED On) Write ‘ ...

Page 44

... Write ‘1’ to enable touch sensor-triggered PWM function Write ‘0’ to disable touch sensor-triggered PWM function [4:0] TS_CH Define the touch sensor channel which is set as trigger of the corresponding PWM channel. 44/ Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX PWM-N trigger register 2 1 TS_CH ...

Page 45

... STMPE16M31PX, STMPE24M31PX 12 Basic PWM programming The PWM controllers are capable of generating the following brightness patterns: Figure 10. Pulses with programmable brightness, ON/OFF period and repetition 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] – ...

Page 46

... Number of cycles = Repetition [3:0] – Ramp-Mode is enabled – Ramp Up/Down Rate is programmable Figure 12. Fixed brightness output – On Period = Period 0[1:0] * Time Unit [3:0] – Off Period = Don’t Care – Duty Cycle during On Period = Brightness [7:4] – Number of cycles = Repetition [3: (infinite repetition) 46/82 STMPE16M31PX, STMPE24M31PX Doc ID 17058 Rev 1 ...

Page 47

... STMPE16M31PX, STMPE24M31PX 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 registers. If enabled, the completion in any of the PWM controllers triggers an interrupt. No interrupt will be generated if infinite repetition is set. ...

Page 48

... Touch sensor controller 13 Touch sensor controller The STMPE16M31PX and STMPE24M31PX devices use 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 0x76 0x77 0x78 ...

Page 49

... STMPE16M31PX, STMPE24M31PX Figure 13. 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 32-1024, giving 2 kHz-67.5 kHz sensor clock. For capacitive sensing, a PRBS sequence is utilized to remove the effect of surrounding noise. This PRBS has an average value of 4.5. The effective total sampling rate is thus 2 kHz-67.5 kHz divided by 4.5, giving 440 Hz – ...

Page 50

... This means that at any time, the device is able to sense a change in capacitance up to 7.5 pF. When the channel capacitance moves out of the 7.5 pF window, the auto tuning feature kicks in to ensure proper sensing operation. 50/82 STMPE16M31PX, STMPE24M31PX Doc ID 17058 Rev 1 ...

Page 51

... STMPE16M31PX, STMPE24M31PX Figure 14. Auto tuning operation Doc ID 17058 Rev 1 Touch sensor controller 51/82 ...

Page 52

... Calibration Calibration event is performed in every period which is programmable from the calibration interval register (0x76). In each calibration event, 8 impedance samples are collected and averaged. The time period between samples is programmable from CAL_MOD (model register (0x77). Figure 15. Calibration 52/82 STMPE16M31PX, STMPE24M31PX Doc ID 17058 Rev 1 ...

Page 53

... STMPE16M31PX, STMPE24M31PX 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 capacitive sensor module This bit should be set after all other touch sensor setting have been written. The changes in other setting when this bit is ‘ ...

Page 54

... S13 S12 S11 S21 S20 S19 Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX Channel selection register S10 S18 S17 S16 ...

Page 55

... STMPE16M31PX, STMPE24M31PX 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 8 ‘01’ for 32 ‘10’ for 128 ‘ ...

Page 56

... I2C. The system will perform auto-tuning if the impedance is moving out of dynamic range. ‘01’ is reserved ‘11’ is reserved [0] Cal_EN ‘1’ to enable the auto-calibration ‘0’ to disable the auto-calibration 56/ Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX Calibration mode register 2 1 Model Cal_EN ...

Page 57

... STMPE16M31PX, STMPE24M31PX 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 samples, remove 2 samples ‘10’ to collect 20 samples, remove 4 samples [0] MAF_EN ‘ ...

Page 58

... MSB, address : 0xC0 + (2*N+1 channel numer [16:0] Channel data Display data selected by channel data type register (0x7C) 58/ Channel N data [7: Channel N data [15: Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX CHDATA-n registers (0-23 ...

Page 59

... STMPE16M31PX, STMPE24M31PX 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 TVR (touch variance register threshold defined by system, of which, if the sense impedance changed by a magnitude more than the associated TVR, this channel is considered touched ...

Page 60

... PTVR 0x00 PEVR 0x00 PROX_DATA_0 0x00 PROX_DATA_1 0x00 KEY_FILT_DATA 0x00000000 TOUCH_DET 0x00000000 Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX R/W Description Key filter and proximity sensor R/W control Define channels included in key R/W filter group 1 R/W Proximity configuration register R/W Proximity variance register (PTVR) Proximity enviromental variance ...

Page 61

... STMPE16M31PX, STMPE24M31PX Figure 16. Data flow in touchkey controller Touchkey and proximity sensing controller Doc ID 17058 Rev 1 61/82 ...

Page 62

... Key filter unit configuration register RESERVED Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX 2 1 PROX_EN Mode_KFU1 ...

Page 63

... STMPE16M31PX, STMPE24M31PX KEY_FILT_GROUP-1 Address: 0x92-0x94 (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 S15 S14 Bit 23-16 (0x94 S23 S22 [23:0] S-X Write ‘1’ to include the corresponding channel in a group of Key Filter Unit ...

Page 64

... S13 S12 S11 S21 S20 S18 Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX Key filter data register S10 S17 S16 ...

Page 65

... STMPE16M31PX, STMPE24M31PX TOUCH_DET Address: 0xB4-B6 Type: RW Reset: 0x000000 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). This data is not buffered. Bit 7-0 (0xB4 [S23:S16] ...

Page 66

... Access mode: 00-dithered impedance 01- calibrated dithered impedance others: reserved 66/ S21 S20 S19 RW/ R/W R PROXIMITY CALIBRATION INTERVAL R/W R/W R Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX 2 1 S18 S17 R/W R Proximity configuration register 2 1 ACCESS MODE R/W R S16 R R/W 0 ...

Page 67

... STMPE16M31PX, STMPE24M31PX PTVR Address: 0x97 Type: RW Reset: 0x00 Description: Proximity variance register. Typical value is 0x08 - 0x20 Touchkey and proximity sensing controller Proximity variance register Doc ID 17058 Rev 1 67/82 ...

Page 68

... Proximity status: real-time status of proximity sensor [14] Calibration status: Reads '1' if calibration is completed. Reads '0' if I2C executes a forced calibration [13] Reserved [12:0] 13 bit dithered impedance/calibrated dithered impedance 68/82 Proximity enviromental variance register Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX Proximity DATA PORT ???? 0 ...

Page 69

... STMPE16M31PX, STMPE24M31PX 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 conditions above those indicated in the operating sections of this specification is not implied ...

Page 70

... Hotkey available 2 2 2 2. I/O set as input, IO 5.5 V applied to I/O Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX Value Min Typ Max 1.65 - 1.95 2.7 - 5.5 - 600 900 - 400 600 - -0.3V - 0.35Vcc 0.75Vc Vcc+0 -0.3V - 0.35Vio Vio+0 ...

Page 71

... STMPE16M31PX, STMPE24M31PX 16.1 Capacitive sensor specification - unless stated otherwise. °C Symbol Capacitive sensor Cs sensitivity Variance of Cs across Csvr channels Parameter Test conditions V = 2.7 - 5.5 V, internal IO V REG V = 2.7 - 5.5 V, internal IO V REG Doc ID 17058 Rev 1 DC electrical characteristics Value Unit Min Typ Max ...

Page 72

... 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. ® ECOPACK trademark. 72/82 STMPE16M31PX, STMPE24M31PX Doc ID 17058 Rev 1 ® ...

Page 73

... STMPE16M31PX, STMPE24M31PX Figure 17. Package outline for QFN40 ( mm) - pitch 0.4 mm Doc ID 17058 Rev 1 Package mechanical data 73/82 ...

Page 74

... Package mechanical data Table 19. Package mechanical data for QFN40 ( mm) - pitch 0.4 mm Symbol Figure 18. QFN40 recommended footprint without ground pad VIA 74/82 STMPE16M31PX, STMPE24M31PX Millimeters Min Typ 0.80 0.85 0.02 0 -0.203 - 0.20 0.15 5 4.90 3.80 3.70 5 4.90 3.80 3.70 0.40 - 0.35 0.25 Doc ID 17058 Rev 1 Max 0.90 0.05 - 0.25 5.10 3.90 5.10 3.90 - 0.45 ...

Page 75

... STMPE16M31PX, STMPE24M31PX Figure 19. QFN40 recommended footprint with ground pad VIA 0.68 1.27 0.30 1.27 0.68 Via Doc ID 17058 Rev 1 Package mechanical data 75/82 ...

Page 76

... Package mechanical data Figure 20. Tape information for QFN40 ( mm) - pitch 0.4 mm 76/82 STMPE16M31PX, STMPE24M31PX Doc ID 17058 Rev 1 ...

Page 77

... STMPE16M31PX, STMPE24M31PX Figure 21. Reel information for QFN40 ( mm) - pitch 0.4 mm Doc ID 17058 Rev 1 Package mechanical data 77/82 ...

Page 78

... Package mechanical data Figure 22. Package outline for QFN32 ( mm) - pitch 0.4 mm 78/82 STMPE16M31PX, STMPE24M31PX Doc ID 17058 Rev 1 POA_QFN32_8186986_A ...

Page 79

... STMPE16M31PX, STMPE24M31PX Table 20. Package mechanical data for QFN32 ( mm) - pitch 0.4 mm Symbol e/2 L Millimeters Min Typ 0.70 - 0.03 0.05 - 0.20 0.19 0.21 3.85 4.00 1.9 - 3.85 4.00 1 0.40 - 0.20 0.10 0.20 Doc ID 17058 Rev 1 Package mechanical data Max 0.90 0.08 - 0.28 4.15 2.1 4.15 2 0.30 79/82 ...

Page 80

... Package mechanical data Figure 23. Footprint recommendation for QFN32 ( mm) - pitch 0.4 mm 80/82 STMPE16M31PX, STMPE24M31PX Doc ID 17058 Rev 1 QFN32_FR ...

Page 81

... STMPE16M31PX, STMPE24M31PX 18 Revision history Table 21. Document revision history Date 08-Feb-2010 Revision 1 Initial release. Doc ID 17058 Rev 1 Revision history Changes 81/82 ...

Page 82

... Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan - Malaysia - Malta - Morocco - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America 82/82 Please Read Carefully: © 2010 STMicroelectronics - All rights reserved STMicroelectronics group of companies www.st.com Doc ID 17058 Rev 1 STMPE16M31PX, STMPE24M31PX ...

Related keywords