![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
preliminary data this is preliminary information on a new product now in deve lopment or undergoing evaluation. details are subject to change without notice. february 2010 doc id 17058 rev 1 1/82 82 stmpe16m31px stmpe24m31px s-touch? 16/24-channel touchkey controller with proximity sensing features 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 pwm outputs ? 12 ma sourcing/sinking on gpio for led driving (at 3.3 v v io ) ? maximum source/sink current 120 ma operating voltage: ?1.65-1.95v (v cc , internally supplied) ?2.7-5.5v(v io ) low operating current: 300 a in active mode, 40 a in sleep mode and 5 a in hibernate mode i 2 c interface (up to 400 khz). i 2 c is 3.3 v tolerant 8 kv hbm esd protection on all sensing pins applications multimedia bars in notebook computers portable media players and game consoles mobile phones and smartphones 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 2 c interface supports up to 400 khz communication with the system host. a very wide dynamic range allows most applicatio ns 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. qfn40 (5 x 5 mm) qfn32 (4 x 4 mm) table 1. device summary order code package packaging stmpe24m31pxqtr qfn40 (5 x 5 mm) tape and reel STMPE16M31PXQTR qfn32 (4 x 4 mm) tape and reel www.st.com
contents stmpe16m31 px, stmpe24m31px 2/82 doc id 17058 rev 1 contents 1 pin assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.1 power scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.2 power states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2i 2 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 descrip tion . . . . . . . . . . . . . . . . . . . . . . . . . 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 stmpe16m31px, stmp e24m31px contents doc id 17058 rev 1 3/82 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 sensi ng controller . . . . . . . . . . . . . . . . . . . . . 60 15 maximum rating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 15.1 recommended operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 16 dc electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 16.1 capacitive sensor specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 17 package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 18 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 pin assignment stmpe16m31px, stmpe24m31px 4/82 doc id 17058 rev 1 1 pin assignment figure 1. stmpe24m31px pin out ! - 6 3 4 - 0 % - 0 8 stmpe16m31px, stmpe2 4m31px pin assignment doc id 17058 rev 1 5/82 figure 2. stmpe16m31px pin out table 2. pin description stmpe24m31px pin number stmpe16m31px pin number pin name voltage domain description 1 1 gpio-0 vio gpio / capacitive sense 2 2 gpio-1 vio gpio / capacitive sense 3 3 gpio-2 vio gpio / capacitive sense 4 4 gnd - ground 5 5 vio - i/o supply 6 - cap-16 vcc capacitive sense 7 - cap-17 vcc capacitive sense 8 6 gpio-3 vio gpio / cap sense 9 7 gpio-4 vio gpio / cap sense 10 8 gpio-5 vio gpio / cap sense 11 9 gpio-6 vio gpio / cap sense 12 10 gpio-7 vio gpio / cap sense 13 11 gnd - ground 14 12 vio - i/o supply ! - 6 3 4 - 0 % - 0 8 pin assignment stmpe16m31px, stmpe24m31px 6/82 doc id 17058 rev 1 stmpe24m31px pin number stmpe16m31px pin number pin name voltage domain description 15 - cap-18 vcc capacitive sense 16 - cap-19 vcc capacitive sense 17 13 vcc - 18 14 int vcc open drain interrupt output. this pin should be pulled to vcc or gnd, depending on polarity of interrupt used. this pin must not be left floating. 19 15 address 0 vcc i 2 c address 0 20 16 scl vcc i 2 c clock 21 17 sda vcc i 2 c data 22 18 reset_n vcc active low reset signal 23 19 address 1 vcc i 2 c address 1 24 20 cref vcc reference capacitor 25 - cap-20 vcc capacitive sense (minimum 10 pf capacitor is recommended) 26 - cap-21 vcc capacitive sense 27 21 gnd vcc ground 28 22 gpio-8 vio gpio / capacitive sense 29 23 gpio-9 vio gpio / capacitive sense 30 24 vio - i/o supply 31 25 gpio-10 vio gpio / capacitive sense 32 26 gpio-11 vio gpio / capacitive sense 33 27 gpio-12 vio gpio / capacitive sense 34 28 gpio-13 vio gpio / cap sense 35 29 vio - i/o supply 36 30 gnd - i/o voltage supply 37 - cap-22 vcc capacitive sense 38 - cap-23 vcc capacitive sense 39 31 gpio-14 vio gpio / capacitive sense 40 32 gpio-15 vio gpio / capacitive sense table 2. pin description (continued) stmpe16m31px, stmpe2 4m31px pin assignment doc id 17058 rev 1 7/82 figure 3. block diagram ! - 6 - 5 8 0 7 - a r r a y 6 # # 6 ) / 3 # , + 3 $ ! 4 2 % 3 % 3 2 e f 0 7 - c o n t r o l l e r ) . 4 ! ' 0 ) / c o n t r o l l e r # a p a c i t a n c e s e n s o r ' 0 ) / ' . $ ! # ! 0 - o n l y ' . $ 6 # # d o m a i n 6 ) / d o m a i n # a l i b r a t i o n . o i s e f i l t e r ( o s t i n t e r f a c e u n i t pin assignment stmpe16m31px, stmpe24m31px 8/82 doc id 17058 rev 1 figure 4. sample application - notebook multimedia bar table 3. limitations on intrinsic capacitance on pcb / flexi pcb (1) 1. for small pcbs, it is possible to operate the device with cref left unconnected. however, without a small capacitance at this pin, the capac itive sensing operation tends to be noisier. it is recommended that a capacitor of 10 pf to be connected to this pin. cmax-cmin (difference between highest and lowest channel capacitance) cmax matching capacitors < 30 pf < 30 pf not required <3 0 pf > 30 pf, < 60 pf cref of up to 30 pf required >30pf, <60pf >30pf, <60pf cref of up to 30 pf required channel matching capacitance of up to 25 pf required > 60 pf > 60 pf pcb optimization required ! - 6 3 e n s o r 3 e n s o r 0 7 - % m b e d d e d c o n t r o l l e r 3 $ ! 4 3 # , + ) . 4 2 e f ) n d i c a t o r , % $ s 3 e n s o r p a d s 2 3 4 stmpe16m31px, stmpe2 4m31px pin assignment doc id 17058 rev 1 9/82 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. it is recommended to connect a 1f capacitor at v cc pin for filtering purpose. the v io powers all gpios directly, if any led driving is required on the gpio, the v io should be at least 3.3 v. figure 5. power supply scheme 1.2 power states the stmpe24m31px/16m31px operate in 3 states. ta b l e 4 illustrates the capability of the device in each of the power states. 3 4 - 0 % - 0 8 3 4 - 0 % - 0 8 6 ) / 6 # # ' . $ 6 u & |