Part Number Hot Search : 
100000 ZPJV2 S4101RS AT45DB R1E10 78L05 LP722 06RDTG18
Product Description
Full Text Search
 

To Download SX9513 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 1 sx 9512/12b / 13 /13b 8 capacitive buttons, leds and proximity controller with analog outputs g eneral d escription the sx9512/12b and SX9513/13b are 8Cbutton capacitive touch sensor controllers that include 8- channels of led drivers, a buzzer and analog outputs designed ideally for tv applications. the sx9512/12b offers proximity sensing. the sx9512/12b and SX9513/13b operate autonomously using a set of programmable button sensitivities & thresholds, plus led intensities & breathing functions with no external i2c communication required. all devices feature three individual led driver engines for advanced led lighting control. on the sx9512/12b, a proximity detection illuminates all leds to a pre-programmed intensity. touching a button will enable the corresponding led to a pre- programmed mode such as intensity, blinking or breathing. whenever the capacitive value changes from either a proximity detection or finger touch/release, the controller informs the host processor through the analog output(s) or an open drain interrupt and an i2c register read. the sx9512/12b and SX9513/13b do not require additional external dynamic programming support or setting of parameters and will adapt to humidity and temperature changes to guarantee correct touch/no touch information. the b versions have a different pre-programmed i2c address. the sx9512/12b and SX9513/13b are offered in 20-ld qfn and 24-ld tssop packages and operate over an ambient temperature range of -40c to +85c. t ypical a pplication circuit i2c touch button & led driver interface gpo/led engine osc por control vdd capacitive touch buttons svdd scl sda ls analog output sx9512/12b/13/13b aout2/ nirq/ buzzer/ pwrstate nvm aout1 led [7:0] nrst gnd pwron bl7 bl6 bl5 bl4 bl3 bl2 bl1 bl0 spo1 spo2 svdd k ey p roduct f eatures  separate core and i/o supplies o 2.7v C 5.5v core supply voltage o 1.65v C 5.5v i/o supply voltage  support metal overlay ui design (sx9512/12b)  8 - button capacitance controller o capacitance offset compensation to 40pf o adaptive measurements for reliable proximity and button detection  proximity sensing (sx9512/12b) o high sensitivity o leds activated during proximity sense  8-channel led controller & driver o blink and breathing control o high current, 15 ma led outputs  2-channel analog output, 6-bit dac programmable control  programmable buzzer  simple (400khz) i 2 c serial interface o interrupt driven communication via nirq output  power-on reset, nrst pin and soft reset  low power o sleep, proximity sensing: 330ua o operating: 600ua  -40c to +85c operation  4.0 mm x 4.0 mm, 20-lead qfn package  4.4 mm x 7.8 mm, 24-lead tssop package  pb & halogen free, rohs/weee compliant a pplications  lcd tvs, monitors  white goods  consumer products, instrumentation, automotive  mechanical button replacement o rdering i nformation part number package marking SX9513ewltrt 1 qfn-20 zf3a SX9513etstrt 2 tssop-24 ac70r sx9512ewltrt 1 qfn-20 zh57 sx9512etstrt 2 tssop-24 ac71s SX9513bewltrt 1 qfn-20 zb13 SX9513betstrt 2 tssop-24 ab13g sx9512bewltrt 1 qfn-20 z8ca sx9512betstrt 2 tssop-24 ab12f sx9510evk evaluation kit - 1 3000 units/reel 2 2500 units/reel
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 2 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs table of contents g eneral d escription .................................................. ................................................... ................... 1 t ypical a pplication circuit .................................................. ................................................... ....... 1 k ey p roduct f eatures ................................................... ................................................... ............... 1 a pplications .................................................. ................................................... .................................. 1 o rdering i nformation ................................................... ................................................... ................ 1 1 g eneral d escription .................................................. ................................................... .......... 4 1.1 pin diagram 4 1.2 marking information SX9513/13b 4 1.3 marking information sx9512/12b 5 1.4 pin description 7 1.5 simplified block diagram 8 1.6 acronyms 8 2 e lectrical c haracteristics .................................................. ............................................... 9 2.1 absolute maximum ratings 9 2.2 recommended operating conditions 9 2.3 thermal characteristics 9 2.4 electrical specifications 10 3 f unctional description .................................................. ................................................... ... 12 3.1 introduction 12 3.2 scan period 13 3.3 operation modes 14 3.4 sensors on the pcb 14 3.5 button information 15 3.6 buzzer 16 3.7 analog output interface 16 3.8 analog sensing interface 18 3.9 configuration 21 3.10 clock circuitry 21 3.11 i2c interface 21 3.12 interrupt 21 3.13 reset 23 3.14 leds on bl 25 4 d etailed c onfiguration descriptions .................................................. ............................ 29 4.1 introduction 29 4.2 general control and status 31 4.3 led control 34 4.4 capsense control 38 4.5 spo control 43 4.6 buzzer control 44
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 3 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 4.7 real time sensor data readback 45 5 i2c i nterface .................................................. ................................................... ...................... 47 5.1 i2c write 47 5.2 i2c read 48 6 p ackaging i nformation .................................................. ................................................... ... 49 6.1 package outline drawing 49 6.2 land pattern 51
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 4 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 1 g eneral d escription 1.1 pin diagram bl7 ls vdd vdd gnd bl1 bl0 svdd scl sda top view 1 gnd 2 ls 3 bl7 4 bl6 5 bl5 6 bl4 7 bl3 8 bl2 9 bl1 10 bl0 15 scl 16 nc 17 nrst 18 pwron 19 nc 20 spo1 21 spo2 22 gnd 24 vdd 23 vdd 11 nc 12 nc 13 svdd 14 sda figure 1 pinout diagram (qfn, tssop) 1.2 marking information SX9513/13b zf3a yyww xxxxx yyww = date code xxxxx = semtech lot number a c 7 0 r y y w w x x x x x x x x y y w w = d a t e c o d e x x x x x x x x = s e m t e c h l o t figure 2 marking information SX9513 (qfn, tssop)
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 5 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs zb13 yyww xxxxx yyww = date code xxxxx = semtech lot number figure 3 marking information SX9513b (qfn, tssop) 1.3 marking information sx9512/12b zh57 yyww xxxxx yyww = date code xxxxx = semtech lot number a c 7 1 s y y w w x x x x x x x x y y w w = d a t e c o d e x x x x x x x x = s e m t e c h l o t figure 4 marking information sx9512 (qfn, tssop)
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 6 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs z8ca yyww xxxxx yyww = date code xxxxx = semtech lot number figure 5 marking information sx9512b (qfn, tssop)
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 7 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 1.4 pin description pin qfn pin tssop name type description 1 4 bl6 analog button sensor and led driver 6 2 5 bl5 analog button sensor and led driver 5 3 6 bl4 analog button sensor and led driver 4 4 7 bl3 analog button sensor and led driver 3 5 8 bl2 analog button sensor and led driver 2 6 9 bl1 analog button sensor and led driver 1 7 10 bl0 analog button sensor and led driver 0 8 13 svdd power io power supply, svdd must be vdd 9 14 sda digital input/output i2c data, requires pu ll up resistor to svdd (in host or external) 10 15 scl digital input i2c clock, requires pull up resistor to svdd(in host or external) 11 17 nrst digital input active low reset. connect to svdd if not used. 12 18 pwron digital output power on signal (positive edge trigg ered, push pull) 14 20 spo1 analog special purpose output 1: - aout1: analog voltage indicating touched buttons (filtered digital) 15 21 spo2 analog/digital special purpose o utput 2: - aout2: analog voltage indicating touched buttons (filtered digital) - buzzer: driver (digital push-pull output) - nirq: interrupt output, active low (digital open drain output) - pwrstate: s ignal indicating system power state (digital input) 16 22 gnd ground ground 17 23 vdd power power supply 18 24 vdd power power supply 19 2 ls analog led sink/shield 20 3 bl7 analog button sensor and led driver 7 bottom plate 1 gnd ground connect to ground 13 11, 12, 16, 19 nc no connect leave floating table 1 pin description
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 8 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 1.5 simplified block diagram i2c touch button & led driver interface gpo/led engine osc por control vdd capacitive touch buttons svdd scl sda ls analog output aout2/ nirq/ buzzer/ pwrstate nvm aout1 led [7:0] nrst gnd pwron bl7 bl6 bl5 bl4 bl3 bl2 bl1 bl0 spo1 spo2 svdd sx9512/12b/13/13b figure 6 simplified block diagram 1.6 acronyms aoi analog output interface asi analog sensor interface nvm non volatile memory pwm pulse width modulation spo special purpose output
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 9 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 2 e lectrical c haracteristics 2.1 absolute maximum ratings stresses above the values listed in absolute maxim um ratings may cause permanent damage to the devic e. this is a stress rating only and functional operati on of the device at these, or any other conditions beyond the recommended operating conditions, is not implied. exposure to absolute m aximum rating conditions for extended periods may a ffect device reliability. parameter symbol min. max. unit supply voltage vdd, svdd -0.5 6.0 v input voltage (non-supply pins) v in -0.5 vdd + 0.3 v input current (non-supply pins) i in -10 10 ma operating junction temperature t jct -40 150 c reflow temperature t re 260 c storage temperature t stor -50 150 c esd hbm (human body model) (i) esd hbm 3 kv latchup (ii) i lu 100 ma table 2 absolute maximum ratings (i) tested to jedec standard jesd22-a114 (ii) tested to jedec standard jesd78 2.2 recommended operating conditions parameter symbol min. max. unit supply voltage vdd 2.7 5.5 v supply voltage (svdd must be vdd) svdd 1.65 5.5 v ambient temperature range t a -40 85 c table 3 recommended operating conditions 2.3 thermal characteristics parameter symbol conditions min. typ. max. unit thermal resistance- qfn package - junction to ambie nt ja,qfn note (vi) 25 c/w thermal resistance Ctssop package - junction to amb ient ja,ssop note (vi) 78 c/w table 4 thermal characteristics (vi) thetaja is calculated from a package in still air, mounted to 3" x 4.5", 4 layer fr4 pcb with thermal vias under exposed pad (if applicable) per jesd51 standards.
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 10 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 2.4 electrical specifications all values are valid within the operating condition s unless otherwise specified. parameter symbol conditions min. typ. max. unit current consumption sleep i sleep all buttons are scanned at a 200ms rate. (40ms scan with skip 4 frames) 330 350 ua operating i operating all buttons ar e scanned at a 40 ms rate, excluding led forward current. 600 650 ua input levels nrst, scl, sda, spo2 (in pwrstate mode ) input logic high v ih 0.7*svdd svdd + 0.3 v input logic low v il gnd applied to gnd pins gnd - 0.3 0.3*svdd v input leakage current l i cmos input 1 ua output pwron, spo1, spo2, sda output logic high (pwron, sp01, & spo2 only) v oh i oh <3ma svdd-0.4 v output logic low v ol i ol, <6ma 0.6 v capsense interface offset compensation range c off 40 pf power up time t por 10 ms reset power on reset voltage v por 1.1 v reset time after power on t por 1 ms reset pulse width on nrst t res 20 ns recommended external components capacitor between svdd, gnd c vreg tolerance +/-20% 0.1 uf capacitor between vdd, gnd c vdd tolerance +/-20% 0.1 uf table 5 electrical specifications
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 11 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs parameter symbol conditions min. typ. max. unit i2c timing specifications (i) scl clock frequency f scl 400 khz scl low period t low 1.3 us scl high period t high 0.6 us data setup time t su;dat 100 ns data valid time t vd;dat (ii) 0.9 us data hold time t hd;dat 0 ns repeated start setup time t su;sta 0.6 us start condition hold time t hd;sta 0.6 us stop condition setup time t su;sto 0.6 us bus free time between stop and start t buf 1.3 us input glitch suppression t sp up to 0.3xvdd from gnd, down to 0.7xvdd from vdd 50 ns table 6 i2c timing specification notes: (i) all timing specifications, figure 7 and figure 8, refer to voltage levels (v il , v ih , v ol ) defined in table 5. (ii) t vd;dat = minimum time for sda data out to be valid following scl low. the interface complies with slave f/s mode as descr ibed by nxp: i2c-bus specification, rev. 03 - 19 j une 2007 figure 7 i2c start and stop timing figure 8 i2c data timing
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 12 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 3 f unctional description 3.1 introduction 3.1.1 general the sx9512/12b/13/13b is intended to be used in app lications which require capacitive sensors covered by isolating overlay material and which may need to de tect the proximity of a finger/hand though the air. the sx9512/12b/13/13b measures the change of charge and converts that into digital values. the larger the charge on the sensors, the larger the number of digital va lue will be. the charge to digital value conversion is done by the sx9512/12b/13/13b analog sensor interface (asi). the digital values are further processed by the sx9 512/12b/13/13b and converted in a high level, easy to use information for the users host. the information between sx9512/12b/13/13b and the u sers host is passed through the i2c interface with an additional interrupt signal indicating that the sx9 512/12b/13/13b has new information. for buttons thi s information is simply touched or released. the sx95 12/12b/13/13b can operate without the i2c and inter rupt by using the analog output interface (spo1, spo2) with a changing voltage level to indicate the button to uched. 3.1.2 feedback visual feedback to the user is done by the button a nd led pins bl[7...0]. the led drivers will fade-in when a finger touches a button or proximity is detected an d fade-out when the button is released or finger go es out of proximity. fading intensity variations can be logar ithmic or linear. interval speed and initial and fi nal light intensity can be selected by the user. audible feedback can be obtained through the specia l purpose output (spo2) pin connected to a buzzer. 3.1.3 analog output interface spo1 and spo2 the analog output interface (aoi) is a digital sign al driven from gnd to svdd and controlled by a pwm. when the digital signal on the spo line is filtered with an rc low pass filter you produce a dc voltage, th e level of which depends on the buttons that has been touched. a hos t controller can then measure the voltage delivered by the spo output and determine which button is touched at any given time. the aoi feature allows the sx9512/12b/13/13b device to directly replace legacy mechanical button contr ollers in a quick and effortless manner. the sx9512/12b/13/13 b supports up to two analog output interfaces, on s po1 and spo2 respectively. the sx9512/12b/13/13b allows buttons to be mapped on either spo1 or spo2. the button mapping as well as the mean voltage level th at each button produces on an spo output can be con figured by the user through a set of parameters described i n later chapters. 3.1.4 buzzer the sx9512/12b/13/13b can drive a buzzer (on spo2) to provide audible feedback on button touches. the buzzer provides two phases, each of which can vary from 5ms to 30ms in length and can drive 1khz, 2khz , 4khz or 8khz tones. 3.1.5 configuration the control and configuration registers can be read from and written to an infinite number of times. d uring the development phase the parameters can be determined and fine tuned by the users and updated over the i2 c. once the parameter set has been determined, the set tings can be downloaded over the i2c by the host ea ch time the sx9512/12b/13/13b boots up or they can be store d in the multiple time programmable (mtp) non volat ile memory (nvm) on the sx9512/12b/13/13b. this allows the flexibility of dynamically setting the paramete rs at the expense of i2c traffic or autonomous operation with out host intervention.
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 13 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs after the parameters are written to the nvm, the re gisters can still be dynamically overwritten in who le or in part by the host when desired. 3.2 scan period the sx9512/12b/13/13b interleaves the sensing of th e touch buttons with the driving of the leds. to ke ep the led intensities constant and flicker free the bl se nsing is done in a round robin fashion with an led drive period between each of the bl sensing periods. bl0 bl1 bl2 bl3 bl4 bl7 prox figure 9 capsense scan frame sx9512/12b/13/13b to keep timing consistency the scan frame always cy cles through all channels (bl0 to bl7) and combined channel proximity even if a channel is disabled or a device does not have the proximity feature. this means that the frame time is always the sum of nine capsense m easurement times and nine led pwm times. the sx9512/12b/13/13b can reduce its average power consumption by inserting fames that skip the capse nse measurements but maintain the led pwm timing. the scan period of the sx9512/12b/13/13b is the tim e between the measurement of a particular channel a nd its next measurement. this period is the time for one c apsense frame plus the time for any skip frames and is the key factor in determining system touch response tim ing. figure 10 shows the different sx9512/12b/13/13b per iods over time. figure 10 scan period sx9512/12b/13/13b
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 14 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 3.3 operation modes the sx9512/12b/13/13b has 2 operation modes, active and sleep. the main difference between the 2 modes is found in the reaction time (corresponding to the sc an period) and power consumption. active mode offers fast scan periods. the typical r eaction time is 40ms. all enabled sensors are scann ed and information data is processed within this interval. sleep mode increases the scan period time which inc reases the reaction time to 200ms typical and at th e same time reduces the operating current. the user can specify other scan periods for the act ive and sleep mode and decide for other compromises between reaction time and power consumption. in most applications the reaction time needs to be fast when fingers are present, but can be slow when no person uses the application. in case the sx9512/12b/13/13b is not used during a scan frame it will go from ac tive mode into sleep mode and power will be saved. (when slee p mode is enabled) to leave sleep mode and enter active mode this can be done by a touch on any button or the detection o f proximity. the host can decide to force the operating mode by issuing commands over the i2c (using register 0x3a[ 3]) and take fully control of the sx9512/12b/13/13b. the di agram in figure 11 shows the available operation mo des and the possible transitions. active mode sleep mode i2ccmd or proximity or touch any button power on passive timeout figure 11 operation modes 3.4 sensors on the pcb the capacitive sensors are relatively simple copper areas on the pcb connected to the eight sx9512/12b /13/13b capacitive sensor input pins (bl0bl7). the sensors are covered by isolating overlay material (typical ly 1mm...3mm). the area of a sensor is typically one s quare centimeter which corresponds to about the are a of a finger touching the overlay material. the area of a proximity sensor is usually significantly larger t han the smaller touch sensors. the sx9512/12b and the SX9513/13b capacitive sensor s can be setup as on/off buttons for control applications (see example figure 12). figure 12 pcb top layer of touch buttons sensors su rrounded by the shield, sx9512/12b/13/13b
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 15 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs the sx9512/12b offers 2 options for proximity detec tion. depending on the pcb area, the proximity dete ction distance can be optimized. 1) individual sensor proximity single sensor proximity is done by replacing the sh ield area shown in figure 10 with a connection to b l0 as shown in figure 24. figure 13 pcb top layer for proximity and touch but tons, sx9512/12b 2) combined channel proximity in combined channel proximity the sx9512/12b will p ut some or all of the sensors in parallel and execu te one sensing cycle on this combined large sensor. 3.5 button information the touch buttons have two simple states (see figur e 14): on (touched by finger) and off (released and no finger press). figure 14 buttons a finger is detected as soon as the digital values from the asi reach a user-defined threshold plus a hysteresis. a release is detected if the digital values from th e asi go below the threshold minus a hysteresis. th e hysteresis around the threshold avoids rapid touch and release signaling during transients. buttons can also be used to do proximity sensing. t he principle of proximity sensing operation is exac tly the same as for touch buttons except that proximity sensing is done several centimeters above the overlay throu gh the air. on state means that finger/hand is detected by the sensor and off state means the finger/hand is far f rom the sensor and not detected. figure 15 proximity
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 16 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 3.6 buzzer the sx9512/12b/13/13b has the ability to drive a bu zzer (on spo2) to provide an audible indication tha t a button has been touched. the buzzer is driven by a square wave signal for approximately 10ms (default). durin g both the first phase (5ms) and the second phase (5ms) th e signals frequency is default 1khz. the buzzer is activated only once during any button touch and is not repeated for long touches. the us er can choose to enable or disable the buzzer by configura tion and define the idle level, frequencies and pha se durations (see 4.6). figure 16 buzzer behavior 3.7 analog output interface the analog output interface outputs a pwm signal wi th a varying duty cycle depending on which button i s touched. by filtering (with a simple rc filter) the pwm signal results in a dc voltage that is differe nt for each button touch. the host controller measures the dc v oltage level and determines which buttons has been touched. in the case of single button touches, each button p roduces its own voltage level as configured by the user. figure 17 show how the aoi will behave when the use r touches and releases different buttons. the aoi will switch between the aoi idle level and the level for each button. figure 17 aoi behavior the pwm blocks used in aoi modes are 6-bits based a nd are typically clocked at 2mhz. figure 18 shows the pwm definition of the aoi.
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 17 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs figure 18 pwm definition, (a) small pulse width, (b ) large pulse width the aoi always reports one button per output channe l. the aoi can be split over spo1 and spo2 (aoi-a, aoi - b. the user can map any button to either aoi-a or a oi-b or both. in most applications only one aoi pin will be selec ted. the two aoi pins allow the user to use a more coarse detection circuit at the host. assuming a 3.3v supp ly and 8 buttons on one single aoi then the aoi lev els could be separated by around 0.30.4v. in the case of usi ng the two aoi pins, 4 buttons could be mapped on a oi-a separated by around 0.8v (similar for 4 buttons on aoi-b) which is about double that of the case of a single aoi. in the case of a single touch the button reporting is straight forward (as in figure 17). if more than one button is touched the reported depends on the selected button reporting mode parameter (see yyy). three reportin g modes exist for the sx9512/12b/13/13b (all, single and st rongest). the all reporting mode is applicable only for the i 2c reporting (aoi is not available). in all-mode al l buttons that are touched are reported in the i2c buttons status bits and on the leds. in the single-mode a single t ouched button will be reported on the aoi and the i2c. all touches that occur afterwards will not be reported as long as the first touch sustains. only when the first repor ted button is released will the sx9512/12b/13/13b r eport another touch. figure 19 shows the single-mode reporting in case o f 2 touches occurring over time. figure 19 single-mode reporting with 2 touches at time t1 button0 is touched and reported on the a oi. at time t2 button1 is touched as well but not r eported. at time t3 the button0 is released and button1 will be reported immediately (or after one scan period at idle level). at time t4 both buttons are released and the aoi repor ts the idle level. the button with the lowest cap pin index will be re ported in case of a simultaneous touch (that means touches occurring within the same scan period). in the strongest-mode the strongest touched button will be reported on the aoi and the i2c. all touche s that occur afterwards representing a weaker touch will n ot be reported. only a touch which is stronger will be reported by the sx9512/12b/13/13b. figure 20 shows the strongest-mode reporting in cas e of 2 touches (with bt1 the strongest touch).
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 18 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs figure 20 strongest-mode reporting with 2 touches at time t1 button0 is touched and reported on the a oi. at time t2 button1 is touched as well. as bt1 i s the strongest touch it will be reported on the aoi imme diately (or after one scan period at idle level). a t time t3 the button0 is released while the aoi continues to repo rt button1. at time t4 both buttons are released an d the aoi reports the idle level. 3.8 analog sensing interface the analog sensing interface (asi) induces a charge on the sensors and then converts the charge into a digital value which is further digitally processed. the bas ic principle of the asi will be explained in this s ection. the asi consists of a multiplexer selecting the sen sor, analog switches, a reference voltage, a high-r esolution adc converter and an offset compensation dac (see f igure 21). figure 21 analog sensor interface the sx9512/12b offers the additional combined chann el proximity mode where all sensors are sensed in parallel.
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 19 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs figure 22 analog sensor interface for sx9512/12b, c ombined channel prox mode to get the digital value representing the charge on a specific sensor the asi will execute several ste ps. a voltage will be induced on the sensor developing a charge r elative to the absolute capacitance of the sensor. the charge on a sensor cap (e.g bl0) will then be accumulated multiple times on the internal integration capacito r (cint). this results in an increasing voltage on cint proportion al to the capacitance on bl0. at this stage the offset compensation dac is enable d. the compensation dac generates a voltage proport ional to an estimation of the external parasitic capacita nce (the capacitance of the system without the cali bration). the difference between the dac output and the charg e on cint is the desired signal. in the ideal case the difference of charge will be converted to a zero di gital value if no finger is present and the digital value becomes high in case a finger is present. the difference of charge on cint and the dac output will be transferred to the adc. after the charge transfer to the adc the steps abov e will be repeated. the sx9512/12b/13/13b allows setting the sensitivit y for each sensor individually for applications whi ch have a variety of sensors sizes or different overlays or f or fine-tuning performances. the optimal sensitivit y depends heavily on the final application. if the sensitivit y is too low the digital value will not pass the th resholds and touch/proximity detection will not be possible. in case the sensitivity is set too large, some power w ill be wasted and false touch/proximity information may be output (i.e. for touch buttons => finger not touching yet , for proximity sensors => finger/hand not close enough). the digital values from the asi will then be handle d by the digital processing. the asi will shut down and wait until new sensing p eriod will start. 3.8.1 processing
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 20 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs raw compensation dcv asi processing low pass diff ave processing low pass useful figure 23 processing the raw data is processed through a programmable lo w pass filter to create useful data (data with fast environmental noise suppressed). the useful data is processed through a second programmable low pass f ilter (with a longer time constant) to create average dat a. the average data tracks along with the slow envi ronmental changes and is subtracted from the useful data to c reate the diff data. the diff data represents any f ast capacitance changes such as a touch or proximity ev ent. 3.8.2 offset compensation the parasitic capacitance at the bl pins is defined as the intrinsic capacitance of the integrated cir cuit, the pcb traces, ground coupling and the sensor planes. this parasitic capacitance is relatively large (tens of pf) and will also vary slowly over time due to environmental cha nges. a finger touch is in the order of one pf and its ef fect typically occurs much faster than the environm ental changes. the asi has the difficult task of detecting a small , fast changing capacitance that is riding on a lar ge, slow varying capacitance. this would require a very precise, hig h resolution adc and complicated, power consuming, digital processing. the sx9512/12b/13/13b features a 16 bit dac which c ompensates for the large, slow varying capacitance already in front of the adc. in other words the adc converts only the desired small signal. in the ide al world the adc will put out a zero digital value even if the e xternal capacitance is as high as 40pf. at each power-up of the sx9512/12b/13/13b the compe nsation values are estimated by the digital process ing algorithms. the algorithm will adjust the compensat ion values such that a near-zero value will be gene rated by the adc. once the correct compensation values are found these will be stored and used to compensate each b l pin. if the sx9512/12b/13/13b is shut down the compensat ion values will be lost. at a next power-up the pro cedure starts all over again. this assures that the sx9512 /12b/13/13b will operate under any condition. however if temperature changes this will influence the external capacitance. the adc digital values wi ll drift then slowly around zero values basically because of the mismatch of the compensation circuitry and the exte rnal capacitance. in case the average value of the digital values bec ome higher than the positive calibration threshold (configurable by user) or lower than the negative threshold (conf igurable by user) then the sx9512/12b/13/13b will i nitiate a compensation procedure and find a new set of compen sation values. the host can initiate a compensation procedure by u sing the i2c interface. this is required after the host changes the sensitivity of sensors.
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 21 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 3.9 configuration figure 24 shows the building blocks used for config uring the sx9512/12b/13/13b. figure 24 configuration during development of a touch system the register s ettings for the sx9512/12b/13/13b are adjusted unti l the user is satisfied with the system operation. when the ad justments are finalized contents of the registers c an be stored in the multiple time programmable (mtp) non volatil e memory (nvm). the nvm contains all those paramete rs that are defined and stable for the application. ex amples are the number of sensors enabled, sensitivi ty, active and sleep scan period. the details of these paramet ers are described in the next chapters. at power up or reset the sx9512/12b/13/13b copies t he settings from the nvm into the registers. 3.10 clock circuitry the sx9512/12b/13/13b has its own internal clock ge neration circuitry that does not require any extern al components. the clock circuitry is optimized for lo w power operation. 3.11 i2c interface the host will interface with the sx9512/12b/13/13b through the i2c bus and the analog output interface . the i2c of the sx9512/12b/13/13b consists of 95 reg isters. some of these i2c registers are used to rea d the status and information of the buttons. other i2c re gisters allow the host to take control of the sx9512/12b/13/13b. the i2c slave implemented on the sx9512/12b/13/13b is compliant with the standard (100kb/s) and fast m ode (400kb/s) the default sx9512/12b/13/13b i2c address equals 0b 010 1011. 3.12 interrupt the nirq mode of spo2 has two main functions, the p ower up sequence and maskable interrupts (detailed below). 3.12.1 power up during power up the nirq is kept low (if spo2 is co nfigured for nirq in the nvm). once the power up se quence is terminated the nirq is cleared autonomously. the sx9512/12b/13/13b is then ready for operation. the aoi levels are updated at the latest one scan period af ter the rising edge of nirq.
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 22 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs figure 25 power up vs. nirq during the power on period the sx9512/12b/13/13b st abilizes the internal regulators, rc clocks and the firmware initializes all registers. during the power up the sx9512/12b/13/13b is not ac cessible and i2c communications are forbidden. the value of nirq before power up depends on the nirq pull up resistor to the svdd supply voltage. 3.12.2 nirq assertion when the nirq function is enabled for spo2 then nir q is updated in active or sleep mode once every sca n period. the nirq will be asserted at the following events: if a button event occurred (touch or release if en abled) a proximity even occurred (prox or loss of prox (s x9512/12b only)) once compensation procedure is completed either th rough automatic trigger or via host request during reset (power up, hardware nrst, software re set) 3.12.3 clearing the clearing of the nirq is done as soon as the hos t performs a read to any of the sx9512/12b/13/13b i 2c registers. 3.12.4 example a typical example of the assertion and clearing of the nirq and the i2c communication is shown in figu re 26. figure 26 interrupt and i2c
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 23 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs when a button is touched the sx9512/12b/13/13b will assert the interrupt (1). the host will read the sx9512/12b/13/13b status information over the i2c ( 2) and this clears the interrupt. if the finger releases the button the interrupt wil l be asserted (3), the host reads the status (4) wh ich clears the interrupt. in case the host will not react to an interrupt the n this will result in a missing touch. 3.13 reset the reset can be performed by 3 sources: - power up, - nrst pin, - software reset. 3.13.1 power up during power up the nirq is kept low (if spo2 is co nfigured for nirq in the nvm). once the power up se quence is terminated the nirq is cleared autonomously. the sx9512/12b/13/13b is then ready for operation. the aoi levels are updated at the latest one scan period af ter the rising edge of nirq. figure 27 power up vs. nirq during the power on period the sx9512/12b/13/13b st abilizes the internal regulators, rc clocks and the firmware initializes all registers. during the power up the sx9512/12b/13/13b is not ac cessible and i2c communications are forbidden. as soon as the nirq rises the sx9512/12b/13/13b wil l be ready for i2c communication. 3.13.2 nrst when nrst is driven low the sx9512/12b/13/13b will reset and start the power up sequence as soon as nr st is driven high or pulled high. in case the user does not require a hardware reset control pin then the nrst pin can be connected to s vdd.
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 24 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs figure 28 hardware reset 3.13.3 software reset to perform a software reset the host needs to write 0xde at the softreset register at address 0xff. figure 29 software reset
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 25 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 3.14 leds on bl the sx9512/12b/13/13b offers eight bl pins that bot h detect the capacitance change on the touch/prox s ensor and drive the associated led. the polarity of the bl pins is defined as in the fi gure below. figure 30 led between bl and ls pins the pwm blocks used in blp and led modes are 8-bits based and clocked at 2mhz typ. hence offering 256 selectable pulse width values with a granularity of 0.5us typ. figure 31 pwm definition, (a) small pulse width, (b ) large pulse width
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 26 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs led fading the sx9512/12b/13/13b supports two different fading modes, namely single and continuous. these fading modes can be configured for each gpio individually. please see bl parameters for more information on how to configure this feature. i) single fading mode: the led pin fades in when the associated button is touched and it fades out when it is released. this is shown in figure 32 fading-in off intensity on intensity delay_off fading-out off intensity on off off figure 32 single fading mode ii) continuous fading mode: the led in and fades out continuously when the asso ciated button is touched. the fading in and out sto ps when the button is released. this is shown in figure 33. fading-in off intensity on intensity fading-out off intensity on off figure 33 continuous fading mode
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 27 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 3.14.1 intensity index vs. pwm pulse width tables below show the pwm pulse width for a given i ntensity (n) setting (for both linear and log modes ). n lin/ log n lin/ log n lin/ log n lin/ log n lin/ log n lin/ log n lin/ log n lin/ log 0 0/0 32 33/5 64 65/12 96 97/26 128 129/48 160 161/81 192 193/125 224 225/184 1 2/0 33 34/5 65 66/13 97 98/27 129 130/49 161 162/82 193 194 /127 225 226/186 2 3/0 34 35/5 66 67/13 98 99/27 130 131/50 162 163/83 194 195/129 226 227/188 3 4/0 35 36/5 67 68/13 99 100/28 131 132/51 163 164/84 195 196/130 227 228/190 4 5/0 36 37/5 68 69/14 100 101/29 132 133/52 164 165/86 196 197/132 228 229/192 5 6/2 37 38/6 69 70/14 101 102/29 133 134/53 165 166/87 197 198/133 229 230/194 6 7/2 38 39/6 70 71/14 102 103/30 134 135/54 166 167/88 198 199/135 230 231/197 7 8/2 39 40/6 71 72/15 103 104/30 135 136/55 167 168/89 199 200/137 231 232/199 8 9/2 40 41 /6 72 73/15 104 105/31 136 137/55 168 169/91 200 201/139 232 233/201 9 10/2 41 42/6 73 74/15 105 106/32 137 138/56 169 170/92 201 202/140 233 234/203 10 11/2 42 43/7 74 75/16 106 107/32 138 139/57 170 171/93 202 203/142 234 235/205 11 12/2 43 44/7 75 76 /16 107 108/33 139 140/58 171 172/95 203 204/144 235 236/208 12 13/2 44 45/7 76 77/16 108 109/33 140 141/59 172 173/96 204 205/146 236 237/210 13 14/2 45 46/7 77 78/17 109 110/34 141 142/60 173 174/97 205 206/147 237 238/212 14 15/3 46 47/7 78 79/17 110 111/35 142 143/61 174 175/99 206 207/149 238 239/215 15 16/3 47 48/8 79 80/18 111 112/35 143 144/62 175 176/100 207 208/151 239 240/217 16 17/3 48 49/8 80 81/18 112 113/36 144 145/63 176 177/101 208 209/153 240 241/219 17 18/3 49 50/8 81 82/19 113 114/ 37 145 146/64 177 178/103 209 210/155 241 242/221 18 19/3 50 51/8 82 83/19 114 115/38 146 147/65 178 179/104 210 211/156 242 243/224 19 20/3 51 52/9 83 84/20 115 116/38 147 148/66 179 180/106 211 212/158 243 244/226 20 21/3 52 53/9 84 85/20 116 117/39 1 48 149/67 180 181/107 212 213/160 244 245/229 21 22/3 53 54/9 85 86/21 117 118/40 149 150/68 181 182/109 213 214/162 245 246/231 22 23/3 54 55/9 86 87/21 118 119/40 150 151/69 182 183/110 214 215/164 246 247/233 23 24/4 55 56/10 87 88/22 119 120/41 151 152/71 183 184/111 215 216/166 247 248/236 24 25/4 56 57/10 88 89/22 120 121/42 152 153/72 184 185/113 216 217/168 248 249/238 25 26/4 57 58/10 89 90/23 121 122/43 153 154/73 185 186/114 217 218/170 249 250/241 26 27/4 58 59/10 90 91/23 122 123/44 154 1 55/74 186 187/116 218 219/172 250 251/243 27 28/4 59 60/11 91 92/24 123 124/44 155 156/75 187 188/117 219 220/174 251 252/246 28 29/4 60 61/11 92 93/24 124 125/45 156 157/76 188 189/119 220 221/176 252 253/248 29 30/4 61 62/11 93 94/25 125 126/46 157 15 8/77 189 190/121 221 222/178 253 254/251 30 31/4 62 63/12 94 95/25 126 127/47 158 159/78 190 191/122 222 223/180 254 255/253 31 32/5 63 64/12 95 96/26 127 128/48 159 160/80 191 192/124 223 224/182 255 256/256 table 7 intensity index vs. pwm pulse width (normal polarity) recommended/default settings are inverted polarity (to take advantage from high sink current capabilit y) and logarithmic mode (due to the non-linear response of the human eye). 3.14.2 led triple reporting the button information touch and release can be rep orted on the leds in dual mode (on and off). the proximity information can be shown using the du al mode by attributing a dedicated led to the proxi mity sensor. the led will show then proximity detected o r no proximity detected. the fading principles are equal to the fading of sensors defined as buttons as described i n the previous sections. in triple mode proximity is reported on all leds by an intermediate led intensity.
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 28 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs figure 34 leds in triple reporting mode proximity figure 34 shows an example of proximity detection a nd the reporting on leds. as soon as proximity is d etected all leds (2 leds are shown for simplicity) will fad e in and stop at the proximity intensity level. in case proximity is not detected anymore then the leds remain at the pr oximity intensity for a configurable time and then the fading out will start. figure 35 leds in triple reporting mode proximity a nd touch figure 35 shows an example of proximity detection f ollowed by a rapid touch on the sensor sd1. the leds d1 and d2 will fade in as soon as proximit y is detected (using the inc_prox parameter). as soon as the finger touches the sensor sd1 the fa ding in of d1 will go to the on intensity (using th e touch increment parameter). the led d2 remains at the proximity intensity level as sensors sd2 is not touched. if the finger is removed rapidly the fading out of d1 will first use the touch decrement parameter to the proximity intensity level. if the finger leaves the proximity region d1 and 2 will fade out simultaneously using the proximity delay and decrement parameters.
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 29 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 4 d etailed c onfiguration descriptions 4.1 introduction the sx9512/12b/13/13b configuration parameters are taken from the nvm and loaded into the registers at power-up or upon reset. the registers are split by functionality into confi guration sections: general section: operating modes, capacitive sensors section: related to lower level capacitive sensing, led special purpose outputs buzzer system (reserved) the address space is divided up into areas that are (can be) stored in nvm and areas that are dynamic and not stored. within the register address space are values design ated as reserved. these values can be disregarded when reading but bust be set to the specified values whe n writing. address name address name 0x00 general control and status irqsrc nvm area 0x38 cap sensing capsensestuck 0x01 touchstatus 0x39 capsenseframeskip 0x02 proxstatus 0x3a capsensemisc 0x03 compstatus 0x3b proxcombchanmask 0x04 nvmctrl 0x3c reserved 0x05 reserv ed 0x3d reserved 0x06 reserved 0x3e special output spochanmap nvm area 0x07 spo2mode 0x3f spolevelbl0 0x08 pwrkey 0x40 spolevelbl1 0x09 irqmask 0x41 spolevelbl2 0x0a reserved 0x42 spolevelbl3 0x0b reserved 0x43 spolevelbl4 0x0c led control ledmap1 0x44 spolevelbl5 0x0d ledmap2 0x45 spolevelbl6 0x0e ledpwmfreq 0x46 spolevelbl7 0x0f ledmode 0x47 spolevelidle 0x10 ledidle 0x48 spolevelprox 0x11 ledoffdelay 0x49 reserved 0x12 led1on 0x4a reserved 0x13 led1fade 0x4b buzzer buzzertrigger 0x14 led2on 0x4c buzzerfreq 0x15 led2fade 0x4d reserved 0x16 ledpwridle 0x4e reserved 0x17 ledpwron 0x4f reserved 0x18 ledpwroff 0x50 reserved
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 30 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 0x19 ledpwrfade 0x51 reserved 0x1a ledpwronpw 0x52 reserved 0x1b ledpwrmode 0x53 reserved 0x1c reserved 0x54 reserved 0x1d reserved 0x55 reserved 0x1e cap sensing capsenseenable 0x56 reserved 0x1f capsensrange0 0x57 reserved 0x20 capsenserange1 0x58 reserved 0x21 capsenserange2 0x59 reserved 0x22 capsenserange3 0x5a reserved 0x23 capsenserange4 0x5b reserved 0x24 capsenserange5 0x5c reserved 0x25 capsenserange6 0x5d reserved 0x26 capsenserange7 0x 5e reserved 0x27 capsenserangeall 0x5f reserved 0x28 capsensethresh0 0x60 reserved 0x29 capsensethresh1 0x61 reserved 0x2a capsensethresh2 0x62 reserved 0x2b capsensethresh3 0x63 sensor readback capsensechanselect 0x2c capsensethresh4 0x64 capsenseusefuldatamsb 0x2d capsensethresh5 0x65 capsenseusefuldatalsb 0x2e capsensethresh6 0x66 capsenseaveragedatamsb 0x2f capsensethresh7 0x67 capsenseaveragedatalsb 0x30 capsensethreshcomb 0x68 capsensediffdatamsb 0x31 capsenseop 0x69 capsensediffdatalsb 0x32 capsensemode 0x6a capsensecompmsb 0x33 capsensedebounce 0x6b capsensecomplsb 0x34 capsensenegcompthresh 0x6c reserved 0x35 capsenseposcompthresh 0x36 capsenseposfilt 0xfe reserved 0x37 capsensenegfilt 0xff i2csoftreset table 8 register map
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 31 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 4.2 general control and status 4.2.1 interrupt source address name acc bits field function 0x00 irqsrc r/w 7:0 irq source indicate active irqs 0 : irq inactive 1 : irq active bit map 7 : reset 6 : touch 5 : release 4 : near (prox on) 3 : far (prox off) 2 : compensation done (write a 1 to this bit to tri gger a compensation on all channels) 1 : conversion done. 0 : reserved, will read 0 the irq source register will indicate that the spec ified event has occurred since the last read of thi s register. if the nirq function is selected for spo2 then it will ind icate the occurrence of any of these events that ar e not masked out in register 0x09. the irq mask in register 0x09 will prevent an irq f rom being indicated by the nirq pin but it will not prevent the irq from being noted in this register. 4.2.2 touch status address name acc bits field function 0x01 touchstatus r 7:0 touch status indicates touch detected on indicated bl channel. bit 7 = bl7 bit 0 = bl0 0 : no touch detected 1 : touch detected the touch status register will indicate when a touc h occurs on one of the bl channels. a touch is indi cated when a channels diffdata value goes at least the hyst va lue above its threshold level for debounce number o f consecutive measurement cycles. a touch is lost whe n a channels diffdata value goes at least hyst valu e below its threshold for debounce number of measurement c ycles. this is a dynamic read only regester that is not stored in nvm. example: bl2 is set to a threshold of 400 (0x21 = 0 x19), a hyst of 8 (0x37 [7:5] = 3b001), a touch de bounce of 0 (0x33 [3:2] = 2b00) and a release debounce of 2 (0 x33 [1:0] = 2b01). a touch will be indicated the first measurement cyc le that the diffdata goes above 408 and the touch w ill be lost when the diffdata value goes below 392 on two succ essive measurement cycles.
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 32 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 4.2.3 proximity status address name acc bits field function 0x02 proxstatus r 7 proxbl0 indicates proximity detected on bl0 0 : no proximity detected 1 : proximity detected (if prox on bl0 enabled (0x31[6])) r 6 proxmulti indicates proximity detected on combined channels 0 : no proximity detected 1 : proximity detected (if prox on combined channels enabled (0x31[5]) and channels enabled for use (0x3b)) r 5 proxmulti comp pending indicates compensation pending for combined channel prox sensing 0 : compensation not pending 1 : compensation pending (if prox on combined channels enabled (0x31[5]) and channels enabled for use (0x3b)) r 4:0 reserved reserved, will read 00000 the proxbl0 bit will indicate proximity detected on the bl0 pin, the proxmulti bit will indicate proxi mity on the combined channels and the proxmulti comp pending bi t will indicate that a compensation has been reques ted for the combined channels and is pending. (for sx95 12/12b and if enabled), 4.2.4 compensation status address name acc bits field function 0x03 compstatus r 7:0 comp pending indicates compensation pending on indicated bl chan nel. bit 7 = bl7 bit 0 = bl0 0 : compensation not pending 1 : compensation pending the comp pending register indicates which pins from bl0 to bl7 have compensations requested and pendin g. 4.2.5 nvm control address name acc bits field function 0x04 nvmctrl r/w 7:4 nvm burn write 0x50 followed by 0xa0 to initiate transfer of reg 0x07 through 0x62 to nvm r/w 3 nvm read trigger nvm read. 0 : do nothing 1 : read contents of current active nvm area into registers r 2:0 nvm area indicates current active nvm area 000 : no areas are programmed. 001 : user1 area is programmed and in use. 011 : user2 area is programmed and in use. 111 : user3 area is programmed and in use. the nvm area field indicates which of the user nvm areas are currently programmed and active (1, 2 or 3). the nvm read bit gives the ability to manually request that the contents of the nvm be transferred to the registers and nvm burn field gives the ability to burn the cu rrent registers to the next available nvm area. normally, the transfer of data from the nvm to the registers is done automatically on power up and upo n a reset but occasionally a user might want to force a read manually. registers 0x07 through 0x62 are stored to nvm and l oaded from nvm. after writing 0xa0 (ie nvm burn), wait for at least 500ms and then power off-on the ic for changes to be effective. caution, there are only three user areas and attemp ts to burn values beyond user area 3 will be ignore d.
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 33 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 4.2.6 spo2 mode control address name acc bits field function 0x07 spo2mode r/w 7 reserved reserved, set to 0 r/w 6:5 spo2 config set function of spo2 pi n 00 : pin is open drain nirq 01 : pin drives buzzer (see registers 0x4b and 0x4c ) 10 : pin is analog output 2 11 : tv power state input (see registers 0x07[4] an d 0x1b[7]) r/w 4 tv power state if spo2 set to tv power state input then tv power s tate indicated by this bit, if spo2 set to other function then host writes this bit to indicate current tv power state. 0 : off 1 : on r/w 3:0 reserved reserved, set to 0000 the spo2 config field will specify the functionalit y of the spo pin. when selected as nirq, the open d rain output will go low whenever a non-masked irq occurs and th e nirq will go back high after a register 0x00 is r ead over the i2c. when selected as buzzer, the spo2 pin will drive a 2 phase 2 frequency signal onto an externa l buzzer for each specified event (see buzzer section). when selected as spo2, pin operates as an analog output similar to spo1 (see spo section). if selected as tv power state, the pin is driven from the system pmic with a high (spo2 = svdd) indicating that the system power is o n and a low (spo2 = gnd) when the system power is o ff. the tv power state bit reads back the current state of spo2 if spo2 is selected for tv power state, ot herwise the system should write to this bit to indicate the current system power state. the sx9512/12b/13/13b needs to know the current state in able to correctly process some of the led modes for the power button (see le d modes). 4.2.7 power key control (for generation of pwron si gnal) address name acc bits field function 0x08 pwrkey r/w 7:0 power keys set which bl sensors will trigger a poweron pulse when touched. bit 7 = bl7 bit 0 = bl0 0 : do not use channel 1 : use channel if bl7 is enabled (0x1b[1]), it will be the main po wer button with respect to power button led functions (see reg 0x16 through 0x1b) the power keys field is a map that indicates which of the bl0 through bl7 channels should trigger a pu lse on the pwron pin when touched. this should not be confused with the bl7 power key enable bit as described in register 0x1b. 4.2.8 interrupt request mask address name acc bits field function 0x09 irqmask r/w 7:0 irq mask set which irqs will be trigger an nirq (if enabled on spo2) and report in reg 0x00 0 : disable irq 1 : enable irq bit map 7 : reset 6 : touch 5 : release 4 : near (prox on) 3 : far (prox off) 2 : compensation done
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 34 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 1 : reserved, set to 0 0 : reserved, set to 0 the irq mask field determines which irq events will trigger an nirq signal on spo2 if spo2 is set to t he nirq function. 4.2.9 i2c soft reset address name acc bits fi eld function 0xff i2csoftreset w 7:0 i2c soft reset write 0xde f ollowed by 0x00 to reset trigger a device reset and nvm re-load by writing 0 xde followed by 0x00 to this register. 4.3 led control 4.3.1 led map for engine 1 and 2 address name acc bits field functi on 0x0c ledmap1 r/w 7:0 led engine map 1 assign indicated bl channel to led engine 1 bit 7 = bl7 bit 0 = bl0 0 : do not assign to led engine 1 1 : assign to led engine 1 0x0d ledmap2 r/w 7:0 led engine map 2 assign indicated bl channel to led engine 2 bit 7 = bl7 bit 0 = bl0 0 : do not assign to led engine 2 1 : assign to led engine 2 write a 1 for each bit (7 through 0) into the led e ngine map 1 field for each channel (bl7 through bl0 ) that will be driven by led engine 1. write a 1 for each bit (7 through 0) into the led e ngine map 2 field for each channel (bl7 through bl0 ) that will be driven by led engine 2. in most cases each bl channel will only be assigned to one of the engines but there are some rare case s where a channel will be assigned to both. 4.3.2 led pwm frequency address name acc bits field function 0x0e ledpwmfreq r/w 7:0 led pwm frequency ledpwmfreq = 2mhz / n the led pwm frequency is derived from the 2mhz osci llator and is the primary method for controlling th e bl7 through bl0 frame scanning rate as well as impactin g the maximum brightness achievable on each led and impacting the smoothness of the led illumination (f licker prevention). as displayed in figure 6, the capsense measurements and led pwm drive is time multiplexed. the capsens e measurement time is nominally 648us and the led pwm time is 255 led clocks long. the led refresh frequ ency must be above 50/60hz to ensure that there is not a noticeable flicker on the leds. so we have: led max brightness = 255/(648us * ledpwmfreq + 255) led refresh frequency = 1 / (648us + 255/ledpwmfreq )
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 35 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 4.3.3 led mode address name acc bits field function 0x0f ledmode r/w 7:4 led fade repeat set number of fade in/out repea ts when in led repeat x low and repeat x high modes (see reg 0x0f[1:0]) r/w 3 reserved reserved, set to 0 r/w 2 led fading set led fade in and fade out type 0 : linear 1 : log r/w 1:0 led mode set led mode of operation 00 : single shot 01 : repeat continuous 10 : repeat x low 11 : repeat x high 4.3.4 led idle level address name acc bits field function 0x10 ledidle r/w 7:0 led engine 1 & 2 idle level set led engine 1 and led engine 2 idle intensity level. 4.3.5 led off delay address name acc bits field function 0x11 ledoffdelay r/w 7:4 led engine 1 delay off time set time delay from l oss of touch/prox to start of fade out. delay = n * 256ms r/w 3:0 led engine 2 delay off time set time delay from loss of touch/prox to start of fade out. delay = n * 256ms 4.3.6 led engine 1 on level address name acc bits field function 0x12 led1on r/w 7 :0 led engine 1 on level set led engine 1 on intensity level. 4.3.7 led engine 1 fade in/out timing address name acc bits field function 0x13 led1fade r/w 7:4 led engine 1 fade in time set time per intensity step when changing from idle to on, idle to prox or prox to on states. steptime = (n + 1) * 500us the total time required to change from one level to another will be: changetime = abs(currlevel - newlevel) * steptime r/w 3:0 led engine 1 fade out time set time per intensity step when changing from on to idle, on to prox or prox to idle states. steptime = (n + 1) * 500us the total time required to change from one level to another will be: changetime = abs(currlevel - newlevel) * steptime
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 36 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 4.3.8 led engine 2 on level address name acc bits field function 0x14 led2on r/w 7:0 led engine 2 on level set led e ngine 2 on intensity level. 4.3.9 led engine 2 fade in/out timing address name acc bits field function 0x15 led2fade r/w 7:4 led engine 2 fade in time set time per intensity step when changing from idle to on, idle to prox or prox to on states. steptime = (n + 1) * 500us the total time required to change from one level to another will be: changetime = abs(currlevel - newlevel) * steptime r/w 3:0 led engine 2 fade out time set time per intensity step when chang ing from on to idle, on to prox or prox to idle states. steptime = (n + 1) * 500us the total time required to change from one level to another will be: changetime = abs(currlevel - newlevel) * steptime 4.3.10 led power button idle level address name acc bits f ield function 0x16 ledpwridle r/w 7:0 power button led idle level set power button led engine idle intensity level. 4.3.11 led power button on level address name acc bits field function 0x17 ledpwron r/w 7:0 power button led on level set power button led engine on intensity level. 4.3.12 led power button off level address name acc bits field function 0x18 ledpwroff r/w 7:0 power button led off level set power button led engine off intensity level. 4.3.13 led power button fade in/out timing address name acc bits fiel d function 0x19 ledpwrfade r/w 7:0 power button fade in/out time set time per intensity step when changing from one level to another. steptime = (n + 1) * 250us the total time required to change from one level to another will be: changetime = abs(currlevel - newlevel) * steptime
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 37 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 4.3.14 power-on pulse width address name acc bits field function 0x1a ledpwronpw r/w 7:0 power on pulse width set the duration of both the power on pulse driven on the pwron pin and the power led on time in breath idle power mode. poweronpw = (n + 1) * 1ms the power on pulse is triggered by either the power button (if power button enabled (0x1b[1])) 4.3.15 led power button mode address name acc bits field function 0x1b ledpwrmode r/w 7 power led off mode enable off sequence based on t v power state (0x07[4]) 0 : switch from idle to breathing 1 : switch from idle (0x16) to power led max (0x1b[5] and 0x17) for power on pw time (0x1a) before switching to breathing if tv power state = 1 (0x07[4]) r/w 6 power led max level set power led max level to be used during power up and power down sequences 0 : max set to power button led on level 1 : max set to 255 r/w 5 power led breath max set which level to use as high level while breathing 0 : breathing swings between led power button off level (0x18) and led power button idle level (0x16) 1 : breathing swings between led power button off level (0x18) and led power button on level (0x17) r/w 4 power led waveform set power led waveform type 0 : breath idle mode, power led goes from idle to breathing, breathes for power on pw time and then goes back to idle 1 : breath idle mode, power led goes from breathing to power led max for power on pw time and then goes to idle r/w 3 reserved reserved: set to 0 r/w 2 reserved reserved: set to 0 r/ w 1 power button en enable bl7 as power button 0 : bl7 is normal button 1 : bl7 is power button r/w 0 led touch polarity invert invert the polarity of the led touch on level 0 : led on level = programmed on level 1 : led on level = 255 - programmed on level effects touch on level only, not idle or prox levels.
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 38 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 4.4 capsense control 4.4.1 capsense enable address name acc bits field function 0x1e capsenseenable r/w 7:0 cap sense en set which bl sensors are enabled bit 7 = bl7 bit 0 = bl0 0 : disabled 1 : enabled 4.4.2 capsense 0 through 7 (and combined channel mo de) delta cin range and ls control address name acc bits field function 0x1f capsensrange0 r/w 7:6 ls control ls usage during measurements for bl0 00 : ls high-z (off) 01 : dynamically driven with measurement signal (preferred) 10 : ls tied to gnd 11 : ls tied to an internal vref r/w 5:2 reserved reserved, set to 0000 r/w 1:0 delta cin range for bl0 00 : +/-7pf 01 : +/-3.5pf 10 : +/-2.8pf 11: +/-2.3pf 0x20 capsenserange1 r/w 7:0 same as capsensrange0 but for bl1 0x21 capsenserange2 r/w 7:0 same as capsensrange0 but for bl2 0x22 capsenserange3 r/w 7:0 same as capsensrange0 but for bl3 0x23 capsenserange4 r/w 7:0 same as capsensrange0 but for bl4 0x24 capsenserange5 r/w 7:0 same as capsensrange0 but for bl5 0x25 capsenserange6 r/w 7:0 same as capsensrange0 but for bl6 0x26 capsenserange7 r/w 7:0 same as capsensrange0 but for bl7 0x27 capsenserangeall r/w 7:0 same as capsensrange0 but for combined channels used as a prox sensor 4.4.3 capsense 0 through 7 (and combined channel mo de) detection threshold address name acc bits field function 0x28 capsensethresh0 r/w 7:0 touch detection threshold bl0 set the touch/prox detection threshold for bl0. threshold = n * 16 0x29 capsensethresh1 r/w 7 :0 touch detection threshold bl1 same as capsensethresh0 but for bl1 0x2a capsensethresh2 r/w 7:0 touch detection threshold bl2 same as capsensethresh0 but for bl2 0x2b capsensethresh3 r/w 7:0 touch detection threshold bl3 same as capsensethresh0 but for bl3 0x2c capsensethresh4 r/w 7:0 touch detection threshold bl4 same as capsensethresh0 but for bl4 0x2d capsensethresh5 r/w 7:0 touch detection threshold bl5 same as capsensethresh0 but for bl5 0x2e capsensethresh6 r/w 7:0 touch detection threshold bl6 same as capsensethresh0 but for bl6 0x2f capsensethresh7 r/w 7:0 touch detection threshold bl7 same as capsensethresh0 but for bl7 0x30 capsensethreshcomb r/w 7:0 touch detection threshold combined same as capsensethresh0 but for combined channels used as a prox sensor
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 39 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 4.4.4 capsense auto compensation, proximity on bl0 and combined channels proximity enable address name acc bits field function 0x31 capsenseop r/w 7 auto compensation 0 : enable automatic compensation 1 : disable automatic compensation r/w 6 proximity bl0 0 : bl0 is normal button 1 : bl0 is proximity sensor r/w 5 proximity combined channels 0 : do not use combined channels for proximity sensing 1 : use combined channels (0x3b) for proximity sensing r/w 4:0 reserved reserved, set to 10100 4.4.5 capsense raw data filter coef, digital gain, i2c touch reporting and capsense reporting address name acc bits field function 0x32 capsensemode r/w 7:5 raw filter filter coefficient to turn raw data into useful data 000 : off 001 : 1-1/2 010 : 1-1/4 011 : 1-1/8 100 : 1-1/16 101 : 1-1/32 110 : 1-1/64 111 : 1-1/128 r/w 4 touch reporting (i2c) set which touches will be reported in touch status (0x01) 0 : report touches according to capsense report mode (0x32[1:0]) 1 : report all touches r/w 3:2 cap sense digital gain set digital gain factor 00 : no gain, delta cin range = delta cin range 01 : x2 gain, delta cin range = delta cin range / 2 10 : x4 gain, delta cin range = delta cin range / 4 11 : x8 gain, delta cin range = delta cin range / 8 delta cin outside of range will saturate. r/w 1:0 capsense report mode set mode for reporting touches on leds (and in reg 0x01 if 0x32[4] = 0) 00 : single, only report the first touch 01 : strongest, report the strongest touch 10 : double, report the first touch for a bl assigned to led engine 1 and the first touch for a bl assigned to led engine 2 11 : double led, report the first two touches for each led engine but the second touch goes directly from idle to on or on to idle with no fading note: when prox detection is enabled, led engine 1 is dedicated to the prox function and that limits these modes to led engine 2.
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 40 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 4.4.6 capsense debounce address name acc bits field function 0x33 capsensedebounce r/w 7:6 capsense prox near debounce set number of consecutive samples that proximity detection must be true before proximity is indicated on leds and in register 0x02 00 : debouncer off, proximity indicated on first sample 01 : 2 samples 10 : 4 samples 11 : 8 samples r/w 5:4 capsense prox far debounce set number of consecutive samples that proximity detection must be false before los of proximity is indicated on leds and in register 0x02 00 : debouncer off, loss of proximity indicated on first sample 01 : 2 samples 10 : 4 samples 11 : 8 samples r/w 3:2 capsense touch debounce set number of consecutive samples that touch detection must be true before touch is indicated on leds and in register 0x01 00 : debouncer off, touch indicated on first sample 01 : 2 samples 10 : 4 samples 11 : 8 samples r/w 1:0 capsense release debounce set number of consecutive samples that touch detection must be false before release is indicated on leds and in register 0x01 00 : debouncer off, release indicated on first sample 01 : 2 samples 10 : 4 samples 11 : 8 samples 4.4.7 capsense negative auto compensation threshold address name acc bits field function 0x34 capsensenegcompthresh r/w 7:0 capsense neg comp thresh set negative level that average data must cross before triggering a negative drift auto compensation. threshold = n * 128 should not be set below 0x40. 4.4.8 capsense positive auto compensation threshold address name acc bits field function
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 41 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 0x35 capsenseposcompthresh r/w 7:0 capsense pos comp thresh set positive level that average data must cross before triggering a positive drift auto compensation. threshold = n * 128 should not be set below 0x40. 4.4.9 capsense positive filter coef, positive auto compensation debouce and proximity hyst address name acc bits field function 0x36 capsenseposfilt r/w 7:5 capsense prox hyst set proximity de tection/loss hysteresis 000 : 2 001 : 8 010 : 16 011 : 32 100 : 64 101 : 128 110 : 256 111 : 512 prox detection when delta data >= (prox thresh + prox hyst), prox lost when delta data <= (prox thresh - prox hyst) r/w 4:3 capsense pos comp debounce set number of consecutive samples that average data is above the positive compensation threshold before a compensation is triggered 00 : debouncer off, compensation triggered on first sample 01 : 2 samples 10 : 4 samples 11 : 8 samples r/w 2:0 capsense ave pos filt coef set filter coefficient for turning positive useful data into average data 000 : off, no averaging of positive data 001 : 1-1/2 010 : 1-1/4 011 : 1-1/8 100 : 1-1/16 101 : 1-1/32 (suggested) 110 : 1-1/64 111 : 1-1/128 4.4.10 capsense negative filter coef, negative auto compensation debounce and touch hyst address name acc bits field function 0x37 capsensenegfilt r/w 7:5 capsense touch hyst set touch detection/loss hys teresis 000 : 2 001 : 8 010 : 16 011 : 32 100 : 64 101 : 128 110 : 256 111 : 512 touch detection when delta data >= (touch thresh + touch hyst), touch lost when delta data <=
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 42 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs (touch thresh - touch hyst) r/w 4:3 capsense neg comp debounce set number of consecutive samples that average data is below the negative compensation threshold before a compensation is triggered 00 : debouncer off, compensation triggered on first sample 01 : 2 samples 10 : 4 samples 11 : 8 samples r/w 2:0 capsense ave neg filt coef set filter coefficie nt for turning negative useful data into average data 000 : off, no averaging of positive data 001 : 1-1/2 010 : 1-1/4 (suggested) 011 : 1-1/8 100 : 1-1/16 101 : 1-1/32 110 : 1-1/64 111 : 1-1/128 4.4.11 capsense stuck-at timer and periodic compens ation timer address name acc bits field function 0x38 capsensestuck r/w 7:4 capsense stuck at timer set stuck at timeout timer. if touch lasts longer than timer, touch is disqualified and a compensation is triggered. 0000 : off 00bb : timeout = bb * frametime * 64 01bb : timeout = bb * frametime * 128 1bbb : timeout = bbb * frametime * 256 frametime = (capsense time + led frame time) * 9 capsense time = 648us led frame time = 255 / led frequency (0x0e) r/w 3:0 capsense periodic comp set periodic compensation interval 0000 : off, no periodic compensations bbbb : periodic compensation triggered every bbbb * 128 frames frametime = (capsense time + led frame time) * 9 capsense time = 648us led frame time = 255 / led frequency (0x0e)
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 43 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 4.4.12 capsense frame skip setting fro active and s leep address name acc bits field function 0x39 caps enseframeskip r/w 7:4 capsense active frame skip set number of frames to skip measuring bl pins between frames that do measure the bl pins in active mode. timing and led drive remains constant. frames to skip = n r/w 3:0 capsense sleep frame skip set nu mber of frames to skip measuring bl pins between frames that do measure the bl pins in sleep mode. timing and led drive remains constant. frames to skip = n * 4 4.4.13 capsense sleep enable, auto compensation cha nnels threshold, inactive bl control address name acc bits field function 0x3a capsensemisc r/w 7:6 reserved reserved, set to 00 r/w 5:4 comp chan num thresh set how many channels must request compensation before a compensation is done on all channels. 00 : each channel is compensated individually when compensation is requested for that channel bb : compensation for all channels is triggered when bb channels request compensation r/w 3 capsense sleep mode enable 0 : disable sleep mode 1 : enable sleep mode r/w 2 reserved reserved, set to 0 r/w 1:0 capsense inactive bl mode set what is done with bl pins when other bl pins are being measured. 00 : inactive bls are driven to ls levels 01 : inactive bls are driven to ls levels 10 : inactive bls are hiz 11 : inactive bls are connected to gnd 4.4.14 proximity combined channel mode channel mapp ing address name acc bits field function 0x3b proxcombchanmask r/w 7:0 prox combined chan mask assign indicated bl channel to be used in combined channel mode for proximity detection bit 7 = bl7 bit 0 = bl0 0 : do not use in combined channel mode 1 : use in combined channel mode 4.5 spo control 4.5.1 spo channel mapping address name acc bits field function 0x3e spochanmap r/w 7:0 spo channel mapping assign each bl pin to report touches on either spo1 or spo2. bit 7 = bl7 bit 0 = bl0
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 44 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 0 : report touches on spo1 1 : report touches on spo2 4.5.2 spo analog output levels (bl0 through bl7 tou ch, idle and proximity) address name acc bits field function 0x3f spolevelbl0 r/w 7:6 reserved reserved, set to 00 r/w 5:0 spo level bl0 specify analog output level for bl0 v = (n / 63) * svdd 0x40 spolevelbl1 r/w 7:6 reserved reserved, set to 00 r/w 5:0 spo level bl1 same as spolevelbl0 but for bl1 0x41 spolevelbl2 r/w 7:6 reserved reserved, set to 00 r/w 5:0 spo level bl2 same as spolevelbl0 but for bl2 0x42 spolevelbl3 r/w 7:6 reserved reserved, set to 00 r/w 5:0 spo level bl3 same as spolevelbl0 but for bl3 0x43 spolevelbl4 r/w 7:6 reserved reserved, set to 00 r/w 5:0 spo level bl4 same as spolevelbl0 but for bl4 0x44 sp olevelbl5 r/w 7:6 reserved reserved, set to 00 r/w 5:0 spo level bl5 same as spolevelbl0 but for bl5 0x45 spolevelbl6 r/w 7:6 reserved reserved, set to 00 r/w 5:0 spo level bl6 same as spolevelbl0 but for bl6 0x46 spolevelbl7 r/w 7:6 reserved reser ved, set to 00 r/w 5:0 spo level bl7 same as spolevelbl0 but for bl7 0x47 spolevelidle r/w 7:6 reserved reserved, set to 00 r/w 5:0 spo level idle specify analog output level for idle v = (n / 63) * svdd 0x48 spolevelprox r/w 7 spo report prox enable reporting of proximity on spo 0 : do not report proximity on spo 1 : report proximity on spo r/w 6 spo prox channel mapping 0 : report proximity on spo1 1 : report proximity on spo2 r/w 5:0 spo level prox specify analog output level for proximity v = (n / 63) * svdd 4.6 buzzer control 4.6.1 buzzer trigger event selection address name acc bits field function 0x4b buzzertrigger r/w 7:5 reserved reserved, set to 000 r/w 4 buzzer near 0 : do not activate buzzer on proximity detection 1 : activate buzzer on proximity detection r/w 3 buzzer far 0 : do not activate buzzer on proximit y loss 1 : activate buzzer on proximity loss r/w 2 buzzer touch 0 : do not activate buzzer on touch detection 1 : activate buzzer on touch detection r/w 1 buzzer release 0 : do not activate buzzer on touch release 1 : activate buzzer on touch release
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 45 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs r/w 0 buzzer idle level set spo2 pin drive level in buzzer mode when buzzer is not active. 0 : gnd 1 : vdd 4.6.2 buzzer duration and frequency address name acc bits fi eld function 0x4c buzzerfreq r/w 7:6 buzzer phase 1 duration 00 : 5ms 01 : 10ms 10 : 15ms 11 : 30ms r/w 5:4 buzzer phase 1 frequency 00 : 1khz 01 : 2khz 10 : 4khz 11 : 8khz r/w 3:2 buzzer phase 2 duration 00 : 5ms 01 : 10ms 10 : 15ms 11 : 30ms r/ w 1:0 buzzer phase 2 frequency 00 : 1khz 01 : 2khz 10 : 4khz 11 : 8khz 4.7 real time sensor data readback 4.7.1 capsense channel select for readback address name acc bits field function 0x63 capsensechanselect r 7:4 reserved reserved, will read 0000 r 3:0 capsense chan select set which bl channel dat a will be present in registers 0x64 through 0x6b 0000 : bl0 0111 : bl7 1000 : combined channel proximity 4.7.2 capsense useful data msb and lsb address name acc bits field function 0x64 capsenseusefuldatamsb r 7:0 capsense useful data msb selected channel useful data. signed, 2's complement format 0x65 capsenseusefuldatalsb r 7:0 capsense useful da ta lsb
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 46 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 4.7.3 capsense average data msb and lsb address name acc bits field function 0x66 capsenseaveragedatamsb r 7:0 capsense average data msb selected channel average data. signed, 2's complement format 0x67 capsenseaveragedatalsb r 7:0 capsense average data lsb 4.7.4 capsense diff data msb and lsb address name acc bits field function 0x68 capsensediffdatamsb r 7:0 capsen se diff data msb selected channel diff data. signed, 2's complement format 0x69 capsensediffdatalsb r 7:0 capsense diff data lsb 4.7.5 capsense compensation dac value msb and lsb address name acc bits field function 0x6a capsensecompmsb r/w 7:0 capsense comp msb offset compensation dac code. read : read the current value from the last compensation for the selected channel write : manually set the compensation dac for the selected channel. when written, the internal dac code is updated after the write of the lsb reg. msb and lsb regs should be written in sequence. 0x6b capsensecomplsb r/w 7:0 capsense comp lsb
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 47 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 5 i2c i nterface the i2c implemented on the sx9512/12b/13/13b is com pliant with: - standard (100kb/s), fast mode (400kb/s) - slave mode - 7 bit address : sx9512/13->0x2 b ; sx9512b/13b ->0x2 d . the host can use the i2c to read and write data at any time. three types of registers are considered: - status (read). these registers give information a bout the status of the capacitive buttons, gpis, op eration modes etc - control (read/write). these registers control the soft reset, operating modes, gpios and offset comp ensation. - registers gateway (read/write). these registers a re used for the communication between host and the registers. the registers gateway communication is done typically at power up and is not supposed to b e changed when the application is running. the regist ers needs to be re-stored each time the sx9512/12b/13/13b is powered down. the registers can be stored permanently in the nvm memory of the sx9512/12b/13/13b. the registers gateway communication over the i2c at power up is t hen not required. the i2c will be able to read and write from a start address and then perform read or writes sequential ly, and the address increments automatically. the supported i2c access formats are described in t he next sections. 5.1 i2c write the format of the i2c write is given in figure 36. after the start condition [s], the slave address (s a) is sent, followed by an eighth bit (0) indicat ing a write. the sx9512/12b/13/13b then acknowledges [a] that it is being addressed, and the master sends an 8 bit data byte consisting of the sx9512/12b/13/13b register addres s (ra). the slave acknowledges [a] and the master s ends the appropriate 8 bit data byte (wd0). again the sl ave acknowledges [a]. in case the master needs to w rite more data, a succeeding 8 bit data byte will follow (wd1 ), acknowledged by the slave [a]. this sequence wil l be repeated until the master terminates the transfer w ith the stop condition [p]. figure 36 i2c write the register address is incremented automatically w hen successive register data (wd1...wdn) is supplie d by the master.
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 48 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 5.2 i2c read the format of the i2c read is given in figure 37. after the start condition [s], the slave address (s a) is sent, followed by an eighth bit (0) indicat ing a write. the sx9512/12b/13/13b then acknowledges [a] that it is being addressed, and the master responds with an 8 bit data consisting of the register address (ra). the slave acknowledges [a] and the master sends the repeated start condition [sr]. once again, the slave address (sa) is sent, followed by an eighth bit (1) indicating a read. the sx9512/12b/13/13b responds with acknowledge [a] and the read data byte (rd0). if the master needs to read more data it will acknowledge [a] and the sx95 12/12b/13/13b will send the next read byte (rd1). t his sequence can be repeated until the master terminate s with a nack [n] followed by a stop [p]. figure 37 i2c read
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 49 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 6 p ackaging i nformation 6.1 package outline drawing sx9512/12b and SX9513/13b are assembled in a qfn-20 package as shown in figure 38 and tssop-24 as show in figure 39. figure 38 qfn package outline drawing
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 50 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs figure 39 tssop package outline drawing
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 51 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs 6.2 land pattern the land pattern of qfn-20 package is shown in figu re 40. the land pattern of tssop-24 package is shown in fi gure 41. figure 40 qfn-20 land pattern
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 52 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs figure 41 tssop-24 land pattern
wireless & sensing products datasheet revision v1.13, february 2013 ? 2013 semtech corp. www.semtech.com 53 sx 9512/ 12b/13/13b 8 capacitive buttons, leds and proximity controller with analog outputs contact information ? semtech 201 3 all rights reserved. reproduction in whole or in pa rt is prohibited without the prior written consent of the copyright owner. the information presented in this document does not form part of any quotation or con tract, is believed to be accurate and reliable and may be cha nged without notice. no liability will be accepted by the publisher for any consequence of its use. publicati on thereof does not convey nor imply any license un der patent or other industrial or intellectual property rights. semtech assumes no responsibility or liabi lity whatsoever for any failure or unexpected operation resulting from misuse, neglect improper installatio n, repair or improper handling or unusual physical or electri cal stress including, but not limited to, exposure to parameters beyond the specified maximum ratings or operation outside the specified range. semtech products are not designed, intended, author ized or warranted to be suitable for use in life-support applications, devi ces or systems or other critical applications. inclusion of semtech products in such applications is understood to be undertaken solely at the customers own risk. sh ould a customer purchase or use semtech products for any such unauthorized application, the customer shall indemnify and hold semtech and its officers, employees, subsidiaries, affiliates, and distributo rs harmless against all claims, costs damages and a ttorney fees which could arise. notice: all referenced brands, product names, servi ce names and trademarks are the property of their respective owners. semtech corporation wireless and sensing products division 200 flynn road, camarillo, ca 93012 phone: (805) 498-2111 fax: (805) 498-3804


▲Up To Search▲   

 
Price & Availability of SX9513

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X