|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
april 2011 doc id 16174 rev 4 1/85 85 stmpe16m31 stmpe24m31 s-touch ? 16/24-channel touchkey controller with pwm and ratio engines features 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 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: 400 a in active mode, 50 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 200v mm esd protection on all pins applications multimedia bars in notebook computers portable media players and game consoles mobile phones and smartphones 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 2 c 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 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. qfn40 (5 x 5 mm) qfn32 (4 x 4 mm) table 1. device summary order code package packaging STMPE24M31QTR qfn40 (5 x 5 mm) tape and reel stmpe16m31qtr qfn32 (4 x 4 mm) tape and reel www.st.com obsolete product(s) - obsolete product(s)
contents stmpe16m31, stmpe24m31 2/85 doc id 16174 rev 4 contents 1 pin assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.1 power scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.2 power states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2i 2 c interface module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.1 device operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3 read operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4 write operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.1 write operations for one or more bytes . . . . . . . . . . . . . . . . . . . . . . . . . . 16 5 general call address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6 register map and function descrip tion . . . . . . . . . . . . . . . . . . . . . . . . . 18 7 system controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 obsolete product(s) - obsolete product(s) stmpe16m31, stmpe24m31 contents doc id 16174 rev 4 3/85 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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 17 dc electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 17.1 capacitive sensor specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 18 package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 19 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 obsolete product(s) - obsolete product(s) pin assignment stmpe16m31, stmpe24m31 4/85 doc id 16174 rev 4 1 pin assignment figure 1. stmpe24m31 pin out ! - 6 3 4 - 0 % - obsolete product(s) - obsolete product(s) stmpe16m31, stmpe 24m31 pin assignment doc id 16174 rev 4 5/85 figure 2. stmpe16m31 pin out table 2. stmpe16m31 and stmpe24m31 pin description stmpe24m31 pin number stmpe16m31 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 / capacitive sense 9 7 gpio-4 vio gpio / capacitive sense 10 8 gpio-5 vio gpio / capacitive sense 11 9 gpio-6 vio gpio / capacitive sense 12 10 gpio-7 vio gpio / capacitive sense 13 11 gnd - ground 14 12 vio - i/o supply ! - 6 3 4 - 0 % - obsolete product(s) - obsolete product(s) pin assignment stmpe16m31, stmpe24m31 6/85 doc id 16174 rev 4 stmpe24m31 pin number stmpe16m31 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 / capacitive 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. stmpe16m31 and stmpe24m31 pin description (continued) obsolete product(s) - obsolete product(s) stmpe16m31, stmpe 24m31 pin assignment doc id 16174 rev 4 7/85 figure 3. stmpe16m31 and stmpe24m31 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 2 a t i o e n g i n e ) . 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 obsolete product(s) - obsolete product(s) pin assignment stmpe16m31, stmpe24m31 8/85 doc id 16174 rev 4 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 obsolete product(s) - obsolete product(s) stmpe16m31, stmpe 24m31 pin assignment doc id 16174 rev 4 9/85 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. it is recommended to connect a 1 f 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 stmpe24m31/16m31 operate in 3 states. ta b l e 4 illustrates the capability of the device in each of the power states. 3 4 - 0 % - 3 4 - 0 % - 6 ) / 6 # # ' . $ 6 u & |