stmpe16m31 STMicroelectronics, stmpe16m31 Datasheet

no-image

stmpe16m31

Manufacturer Part Number
stmpe16m31
Description
S-touch? 16/24-channel Touchkey Controller With Pwm And Ratio Engines
Manufacturer
STMicroelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
stmpe16m31PXQTR
Manufacturer:
STM
Quantity:
12 495
Part Number:
stmpe16m31QTR
Manufacturer:
ST
Quantity:
20 000
Features
Applications
Table 1.
January 2011
Up to 24 capacitive sensor inputs
Independent and configurable automatic
calibration on all channels
15 fF resolution, 512 steps with 30 pF auto-
tuning
Up to 30 pF external reference capacitor
2 units of 8-input ratiometric engines
supporting 256 steps slider/wheel
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: 400
50
mode
I
tolerant
8 kV HBM ESD protection on all sensing pins
200V MM ESD protection on all 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
µ
A in sleep mode and 5
STMPE24M31QTR
STMPE16M31QTR
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 16174 Rev 3
QFN40 (5 x 5 mm)
QFN32 (4 x 4 mm)
Package
®
16/24-channel touchkey controller
Description
The STMPE16M31 and STMPE24M31 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. Two units of hardwired ratiometric
engines enable the implementation of a
slider/wheel without external computations. Eight
independent PWM controllers allow to control up
to 16 LEDs with brightness control, ramping and
blinking capabilities. The I
up to 400 kHz communication with the system
host. A very wide dynamic range allows most
applications to work without hardware tuning.
A single STMPE24M31 device can be used to
implement a complete notebook multimedia
control bar with eight capacitive touchkeys, an 8-
channel slider with 256 steps resolution and eight
independently controlled LED.
(5 x 5 mm)
with PWM and ratio engines
QFN40
STMPE16M31
STMPE24M31
2
Tape and reel
Tape and reel
C interface supports
Packaging
(4 x 4 mm)
QFN32
www.st.com
1/85
85

Related parts for stmpe16m31

stmpe16m31 Summary of contents

Page 1

... January 2011 ® S-Touch 16/24-channel touchkey controller ( mm) Description The STMPE16M31 and STMPE24M31 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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 2/85 Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 ...

Page 3

... STMPE16M31, STMPE24M31 13.3 Auto-tuning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 13.4 Locked impedance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 13.5 Calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 13.6 Definition of data accessible through channel data register . . . . . . . . . . . 59 13.7 Ratiometric engine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 14 Touchkey controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 15 Maximum rating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 15.1 Recommended operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 16 Application information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 16.1 Average current consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 17.1 Capacitive sensor specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 18 Package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 19 Revision history ...

Page 4

... Pin assignment 1 Pin assignment Figure 1. STMPE24M31 pin out 4/85 Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 ...

Page 5

... STMPE16M31, STMPE24M31 Figure 2. STMPE16M31 pin out Table 2. STMPE16M31 and STMPE24M31 pin description STMPE24M31 STMPE16M31 pin number Pin name Voltage domain 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 ...

Page 6

... Pin assignment Table 2. STMPE16M31 and STMPE24M31 pin description (continued) STMPE24M31 STMPE16M31 Pin number 6/85 Pin name Voltage domain Pin number - CAP-18 - CAP-19 13 VCC 14 INT 15 Address 0 16 SCL 17 SDA 18 RESET_N ...

Page 7

... STMPE16M31, STMPE24M31 Figure 3. Block diagram Doc ID 16174 Rev 3 Pin assignment 7/85 ...

Page 8

... Cmax < > 30 pF, < > 30 pF, < Channel matching capacitance of up > Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 (1) Matching capacitors Not required Cref required Cref required required PCB optimization required ...

Page 9

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

Page 10

... When the ratio engine is enabled, device transitions to active state whenever a touch on the slider/wheel is detected, even if it was previously in sleep mode. 10/85 Reset ACTIVE Touch hotkeys, Hotkeys, I2C I2C Host command Hibernate Sleep Yes Yes Yes Yes No Yes No Slow ( Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 Host command SLEEP AM08686V1 Active Yes Yes Yes Yes Yes ...

Page 11

... STMPE16M31, STMPE24M31 interface module The STMPE24M31/16M31 has 2 physical I settings. 2 Table address pins Address The features that are supported by the I 2 – slave device – Operates at V – Compliant to Philips I – Supports standard (up to 100 kbps) and fast (up to 400 kbps) modes – ...

Page 12

... The address is automatically incremented on subsequent data read. START, Device Address, R/W =0, Register Address to be written, Data Write, STOP ≥ STOP is issued, the Data Write can be continuously performed. The address is automatically incremented on subsequent write. Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 Initial sequence ...

Page 13

... STMPE16M31, STMPE24M31 Figure 7. Read and write modes (random and sequential Tra ...

Page 14

... I C interface module Figure 8. Flow diagram for read and write modes 14/85 Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 ...

Page 15

... STMPE16M31, STMPE24M31 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 and repeats the Device Address with the R/W bit set to 1. The slave device acknowledges and outputs the content of the addressed byte ...

Page 16

... Stop condition. When the Address Counter reaches the last memory address, it 'rolls-over' on the next data byte write. 16/85 Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 ...

Page 17

... STMPE16M31, STMPE24M31 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 behaves as a slave-receiver mode. The meaning of a general call address is defined in the second byte sent by the master-transmitter. ...

Page 18

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

Page 19

... STMPE16M31, STMPE24M31 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 GPIO_7_PWM_CFG ...

Page 20

... MAF_SET 0x00 DATA_TYPE 0x00 RATIO_ENG_SET 0x00 RATIO_ENG_1_CFG 0x00 RATIO_ENG_2_CFG 0x00 RATIO_ENG_STA 0x00 RATIO_ENG_1_DATA 0x000000 RATIO_ENG_2_DATA 0x000000 KEY_FILT_CTRL 0x00 Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 Register function RW PWM4 trigger RW PWM5 setup RW PWM5 control RW PWM5 ramp rate RW PWM5 trigger RW PWM6 setup RW PWM6 control ...

Page 21

... STMPE16M31, STMPE24M31 Table 8. Register map (continued) Address 0x92 0x96 0x9A 0xB4 0xC0 0xC2 0xC4 0xC6 0xC8 0xCA 0xCC 0xCE 0xD0 0xD2 0xD4 0xD6 0xD8 0xDA 0xDC 0xDE 0xE0 0xE2 0xE4 0xE6 0xE8 0xEA 0xEC 0xEE Register name Reset value KEY_FILT_GROUP-1 0x00000000 ...

Page 22

... Address Register name 0x00 0x02 0x03 0x04 22/85 Reset value CHIP_ID 0x2431 ID_VER 0x03 SYSCON-1 0x00 SYSCON-2 0xFE Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 R/W Description CHIP identification number R MSB: 0x24, LSB: 0x31 R Version of device General system c RW control RW Sensor and PWM clock divider ...

Page 23

... STMPE16M31, STMPE24M31 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 these bits. Reads ‘0’. Writing ‘1’ to these bits may result in unpredictable behaviour. [4] CLKSPD: Selects the macro engine’ ...

Page 24

... 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/ PCLK_DIV RW 1 Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 Sensor and PWM clock divider 2 1 GPIO_CLK PWM_CLK CS_CLK RW 0 ...

Page 25

... STMPE16M31, STMPE24M31 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 9. 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 16174 Rev 3 STMPE16M31, STMPE24M31 Interrupt control register INT_POL INT_TYPE INT_EN ...

Page 27

... STMPE16M31, STMPE24M31 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

... This bit needs to be enabled before accessing ratio engine data buffer Write ‘1’ to enable interrupt signal from ratio engine 1 Write ‘0’ to disable interrupt signal from ratio engine 1 28/ ENV EOC Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 Interrupt enable register TOUCH RE2 RE1 ...

Page 29

... STMPE16M31, STMPE24M31 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 16174 Rev 3 STMPE16M31, STMPE24M31 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

... STMPE16M31, STMPE24M31 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 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 or RE1/2) { Process INT Write InterruptStatus to clear the corresponding bit } 32/85 Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 ...

Page 33

... STMPE16M31, STMPE24M31 9 GPIO controller A total of 16 GPIOs are available in the STMPE24M31/STMPE16M31. 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 ...

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 16174 Rev 3 STMPE16M31, STMPE24M31 GPIO monitor pin state register 2 1 IO-2 IO IO- ...

Page 35

... STMPE16M31, STMPE24M31 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 16174 Rev 3 STMPE16M31, STMPE24M31 GPIO function register IO-2 IO-1 IO IO-10 IO-9 IO ...

Page 37

... STMPE16M31, STMPE24M31 10 PWM array controller The STMPE24M31 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 [2:0] PWM_SEL: PWM controller selection 38/ OUT_IDLE Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 PWM array controller 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 STMPE16M31 and STMPE24M31 devices, starting with a register map and then provides detailed descriptions of register types. ...

Page 40

... PWM_7_SET 0x00 PWM_7_CTRL 0x00 PWM_7_RAMP 0x00 PWM_7_TRIG 0x00 EN5 EN4 EN3 Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 R/W Description 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 RW ...

Page 41

... STMPE16M31, STMPE24M31 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

... Execute 7 pairs [0] 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 16174 Rev 3 STMPE16M31, STMPE24M31 PWM-n control register Repetition Order ...

Page 43

... STMPE16M31, STMPE24M31 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 16174 Rev 3 STMPE16M31, STMPE24M31 PWM-N trigger register TS_CH ...

Page 45

... STMPE16M31, STMPE24M31 12 Basic PWM programming The PWM controllers are capable of generating the following brightness patterns: Figure 11. 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 13. 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/85 Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 ...

Page 47

... STMPE16M31, STMPE24M31 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 STMPE16M31 and STMPE24M31 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 RATIO_ENG_REPT 0x71 0x72 0x76 ...

Page 49

... STMPE16M31, STMPE24M31 Figure 14. 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 64-1024, giving 2 kHz-32 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-32 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. Figure 15. Auto-tuning operation 50/85 Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 ...

Page 51

... STMPE16M31, STMPE24M31 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 actual application, software writes 0x06, reads locked impedance, writes 0x00, writes 0x06, and reads the next set of data ...

Page 52

... Once finger is removed, the auto-calibration will take care of this situation allowing the detection of next ‘touch’ event. 52/85 Capacitive sensor control register HYS Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 ForcedAT ...

Page 53

... STMPE16M31, STMPE24M31 RATIO_ENG_REPT_CTRL 7 6 MaxRptDrop 0 Address: 0x71 Type: RW Reset: 0x00 Description: This register controls the report of movement in the ration engine. [7:4] MaxRptDrop Maximum number of report that is dropped (due to displacement < MinDisp). If set to 0, all data will be reported [3:0] MinDisp Minimum displacement of slider position before a report is generated. If set to 0, all data will be ...

Page 54

... Touch sensor controller [7:0] S-X Write ‘1’ to enable the corresponding capacitive sensor channel Write ‘0’ to disable the corresponding capacitive sensor channel 54/85 Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 ...

Page 55

... STMPE16M31, STMPE24M31 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 16174 Rev 3 STMPE16M31, STMPE24M31 Calibration mode register Model Cal_EN ...

Page 57

... STMPE16M31, STMPE24M31 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 16174 Rev 3 STMPE16M31, STMPE24M31 CHDATA-n registers (0-23 ...

Page 59

... STMPE16M31, STMPE24M31 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

... Touch sensor controller 13.7 Ratiometric engine The STMPE16M31/24M31 support ratiometric slider/wheel implementation where a very high number of steps could be obtained from relatively few physical sensing channels. The high number of steps is derived from the ratio of capacitance sensed between neighboring channels. To use the ratio engine, the system must: – ...

Page 61

... STMPE16M31, STMPE24M31 RATIO_ENG_SET Address: 0x80 Type: RW Reset: 0x00 Description: Operation setup of ratio engine RESERVED DATAMODE RE2FilterEn [7] RESERVED [6] DATAMODE Setting of data presentation ‘1’ to display 1 byte position data in the first byte of RE1_POS and RE2_POS continuously. The old data will be overwritten. In this mode, when touch is detected in the slider, interrupt is issued and host can read the data in its own rate ...

Page 62

... Maximum is 8 channels. The number represent number of channels used - 1 [4:0] START: Define the starting channel used in ratio engine. This number represent the channel number Figure 18. Configuration of ratio engine input 62/ Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 Ratio engine-1,-2 registers . START ...

Page 63

... STMPE16M31, STMPE24M31 RATIO_ENG_STA Address: 0x83 Type: R Reset: 0x00 Description: This register report the event of multi touch in the ratio engine [7:2] RESERVED [1] MT2 Read ‘1’ when more than 1 touch is detected in Ratio Engine 2 [0] MT1 Read ‘1’ when more than 1 touch is detected in Ratio Engine 1 ...

Page 64

... When touch is detected, the data in RE1_POS and RE2_POS are valid, otherwise it means finger is lifted up 64/ TIME_STAMP[6: Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 ...

Page 65

... STMPE16M31, STMPE24M31 RATIO_ENG_DATA_n (production silicon) Address: 0x84-0x86, 0x87-0x89 Type: R Reset: 0x0000 Description: Position of the touch as calculation output of Ratio Engine 1 and 2 Data is organized as a "packet" bytes. The data is backed by 4-level of buffer st 1 byte [7: byte [15: ...

Page 66

... Figure 19. Data flow in touchkey controller 66/85 Register name Reset value KEY_FILT_CTRL 0x00 0x00000000 0x00000000 KEY_FILT_DATA 0x00000000 TOUCH_DET 0x00000000 Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 R/W Description R/W General key filter control Define channels included in key R/W filter group 1 Define channels included in key R/W filter group 2 R Filtered touchkey data ...

Page 67

... STMPE16M31, STMPE24M31 KEY_FILT_CFG Address: 0x90 Type: RW Reset: 0x00 Description: Setting of key filter unit RESERVED [7:4] RESERVED Position of the touch in ratio engine sensors [3:2] Mode_KFU2 ‘00’ for no filter ‘01’ for 1 highest impedance change filter in group 2 ‘10’ for 2 highest impedance change filter in group 2 ‘ ...

Page 68

... S13 S12 S11 Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 S10 S18 S17 S16 Key filter data register ...

Page 69

... STMPE16M31, STMPE24M31 Bit 23-16 (0x9C S23 S22 [23:0] S-X Read ‘1’ if the corresponding sensor channel status is ‘touched’. 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) ...

Page 70

... Touchkey controller Bit 23-16 (0xB6 S23 S22 [7:0] S-X Read ‘1’ if the corresponding sensor channel status is ‘touched’ 70/ S21 S20 S19 Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 S18 S17 S16 ...

Page 71

... STMPE16M31, STMPE24M31 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 72

... Hotkey available 2 2 2 2. I/O set as input, IO 5.5 V applied to I/O Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 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 73

... STMPE16M31, STMPE24M31 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 16174 Rev 3 DC electrical characteristics Value Unit Min Typ Max ...

Page 74

... Figure 20. Average current consumption 400 74/85 Figure Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 below, the Average current consumption AM08687V1 ...

Page 75

... STMPE16M31, STMPE24M31 18 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. Doc ID 16174 Rev 3 Package mechanical data ® ...

Page 76

... Package mechanical data Figure 21. Package outline for QFN40 ( mm) - pitch 0.4 mm 76/85 Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 ...

Page 77

... STMPE16M31, STMPE24M31 Table 20. Package mechanical data for QFN40 ( mm) - pitch 0.4 mm Symbol Figure 22. QFN40 recommended footprint without ground pad VIA Millimeters Min Typ 0.80 0.85 0 0.02 - -0.203 0.15 0.20 4.90 5 3.70 3.80 4.90 5 3.70 3.80 - 0.40 0.25 0.35 Doc ID 16174 Rev 3 Package mechanical data Max 0.90 0.05 - 0.25 5.10 3.90 5.10 3.90 - 0.45 77/85 ...

Page 78

... Package mechanical data Figure 23. QFN40 recommended footprint with ground pad VIA 78/85 0.68 1.27 0.30 1.27 0.68 Via Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 ...

Page 79

... STMPE16M31, STMPE24M31 Figure 24. Tape information for QFN40 ( mm) - pitch 0.4 mm Doc ID 16174 Rev 3 Package mechanical data 79/85 ...

Page 80

... Package mechanical data Figure 25. Reel information for QFN40 ( mm) - pitch 0.4 mm 80/85 Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 ...

Page 81

... STMPE16M31, STMPE24M31 Figure 26. Package outline for QFN32 ( mm) - pitch 0.4 mm Doc ID 16174 Rev 3 Package mechanical data 81/85 ...

Page 82

... Package mechanical data Table 21. Package mechanical data for QFN32 ( mm) - pitch 0.4 mm Symbol e/2 L Figure 27. Footprint recommendation for QFN32 ( mm) - pitch 0.4 mm 82/85 Millimeters Min Typ 0.70 - 0.03 0.05 - 0.20 0.19 0.21 3.85 4.00 2.70 2.80 3.85 4.00 2.70 2.80 - 0.40 - 0.20 0.10 0.20 Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 Max 0.90 0.08 - 0.28 4.15 2.90 4.15 2. 0.30 ...

Page 83

... STMPE16M31, STMPE24M31 Figure 28. Reel information for QFN32 ( mm) - pitch 0.4 mm Doc ID 16174 Rev 3 Package mechanical data 83/85 ...

Page 84

... Revision 1 Initial release. Document status promoted from preliminary data to datasheet. 2 Updated: low operating current values, Section 13. Updated: Section 2 3 and QFN32 ( mm) package mechanical data. Doc ID 16174 Rev 3 STMPE16M31, STMPE24M31 Changes Section 2, Section 7 , Table 19, Section 13.1, QFN40 (5x5 mm) and ...

Page 85

... STMPE16M31, STMPE24M31 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