STMPE16M31PX S-Touch 16-channel touchkey controller with proximity sensing Features 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 QFN32 Up to 30 pF external reference capacitor (4 x 4 mm) PWM and GPIO: Up to 16 general purpose inputs/outputs 8 independent PWM controllers, up to 16 Description PWM outputs The STMPE16M31PX capacitive touchkey 12 mA sourcing/sinking on GPIO for LED controllers offer highly versatile and flexible driving (at 3.3 V V ) IO capacitive sensing capabilities in one single chip. Maximum source/sink current 120 mA The devices integrate up to 16 capacitive sensing Operating voltage: channels which are highly sensitive and noise 1.65 - 1.95 V (V , internally supplied) CC tolerant. Eight independent PWM controllers allow 2.7-5.5V(V ) IO to control up to 16 LEDs with brightness control, 2 ramping and blinking capabilities. The I C Low operating current: 300 A in active mode, interface supports up to 400 kHz communication 40 A in sleep mode and 5 A in hibernate with the system host. A very wide dynamic range mode allows most applications to work without 2 2 I C interface (up to 400 kHz). I C is 3.3 V hardware tuning. tolerant A single STMPE16M31PX device can be used to 8 kV HBM ESD protection on all sensing pins implement a complete notebook multimedia control bar with eight capacitive touchkeys, Applications proximity sensor with sensitivity up to 5 cm and eight independently controlled LED. Multimedia bars in notebook computers Portable media players and game consoles Mobile phones and smartphones Table 1. Device summary Order code Package Packaging STMPE16M31PXQTR QFN32 (4 x 4 mm) Tape and reel January 2011 Doc ID 17058 Rev 2 1/75 www.st.com 75 Obsolete Product(s) - Obsolete Product(s)Contents STMPE16M31PX Contents 1 Pin assignment . 4 1.1 Power scheme 9 1.2 Power states 9 2 2I C interface module 10 2.1 Device operation . 10 3 Read operations . 14 4 Write operations . 15 4.1 Write operations for one or more bytes 15 5 General call address 16 6 Register map and function description . 17 7 System controller 21 7.1 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/75 Doc ID 17058 Rev 2 Obsolete Product(s) - Obsolete Product(s)