Part Number Hot Search : 
ADM631 EM484M3 4742A 12200 SB007 DW9256 IDX7505 D1005
Product Description
Full Text Search
 

To Download MC3410 Datasheet File

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


  Datasheet File OCR Text:
  mc3 41 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 1 / 75 ? 201 4 mcube inc. all rights reserved. general description the mc3 4 1 0 is a low - noise, integrated digital output 3 - axis accelerometer with a feature set optimized for cell phones and consumer product motion sensing. applications include user interface control, gaming motion input, electronic compass tilt compensation for cell phones, game controllers, remote controls and portable media products. accurate event detection is enabled with a low noise architecture that m inimizes false triggering found in competing devices. low noise and low power are inherent in the monolithic fabrication approach, where the mems accelerometer is integrated in a single - chip with the electronics integrated circuit. in the mc 34 10 the inter nal sample rate is fixed at 1024 samples / second. specific orientation and gesture conditions can trigger an interrupt to a remote mcu. alternatively, the device supports the reading of sample and event status via polling. features range & sampling ? 2g / 4g / 8g ranges ? 10 - bit or 14 - bit resolution ? 1024 samples/sec ? programmable low pass filter ? from 8 to 512 hz bandwidth event detection ? low - noise architecture minimizes false triggering ? tap, shake, drop ? portrait or landscape orientation with programmable hysteresis ? tilt detection in six orientations simple system integration ? i2c interface, up to 400 khz ? 2 2 0.92 mm 12 - pin package ? pin - compatible to bosch bma2 xx ? single - chip 3d silicon mem s ? 1 00 g / hz noise
mc3 41 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 2 / 75 ? 201 4 mcube inc. all rights reserved. t able of contents 1 order information ................................ ................................ ................................ ............. 5 2 functional block diagram ................................ ................................ ................................ 6 3 packaging and pin description ................................ ................................ ........................ 7 3.1 package outline ................................ ................................ ................................ ................... 7 3.2 pin description ................................ ................................ ................................ ..................... 8 3.3 typical application circuit ................................ ................................ ................................ .... 9 3.4 tape and reel ................................ ................................ ................................ ................... 10 4 specifications ................................ ................................ ................................ ................. 12 4.1 absolute maximum ratings ................................ ................................ ................................ 12 4.2 sensor characteristics ................................ ................................ ................................ ....... 13 4.3 electrical and timing characteristics ................................ ................................ .................. 14 4.3.1 elect rical power and internal characteristics ................................ ....................... 14 4.3.2 i2c electrical characteristics ................................ ................................ ............... 15 4.3.3 i2c timing characteristics ................................ ................................ ................... 16 5 general operation ................................ ................................ ................................ ......... 17 5.1 sensor sampling ................................ ................................ ................................ ................ 17 5.2 offset and gain calibration ................................ ................................ ................................ 18 6 operational states ................................ ................................ ................................ ......... 19 7 operational state flow ................................ ................................ ................................ .. 20 8 interrupts ................................ ................................ ................................ ........................ 21 8.1 enabling and clearing interrupts ................................ ................................ ........................ 21 8.2 interrupt support ................................ ................................ ................................ ................ 22 8.3 gint interrupt ................................ ................................ ................................ .................... 23 8.4 event detection ................................ ................................ ................................ .................. 24 9 orientation detection ................................ ................................ ................................ ..... 25 9.1 orientation hysteresis ................................ ................................ ................................ ........ 25 9.2 portrait/landscape events ................................ ................................ ................................ . 25 9.3 front/back events ................................ ................................ ................................ .............. 30 9.4 shake detection ................................ ................................ ................................ ................. 32 9.5 drop detection ................................ ................................ ................................ ................... 34
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 3 / 75 ? 201 4 mcube inc. all rights reserved. 9.6 tap detection ................................ ................................ ................................ ..................... 35 9.7 continuous sampling ................................ ................................ ................................ ......... 37 10 i2c interface ................................ ................................ ................................ .................. 38 10.1 physical interface ................................ ................................ ................................ ............... 38 10.2 timing ................................ ................................ ................................ ................................ 38 10.3 i2c message format ................................ ................................ ................................ .......... 38 11 register interface ................................ ................................ ................................ .......... 40 11.1 register summary ................................ ................................ ................................ ............. 41 11.2 tilt: status register ................................ ................................ ................................ ......... 43 11.3 opstat: operational state status register ................................ ................................ ...... 45 11.4 inten: interrupt enable register ................................ ................................ ....................... 46 11.5 mode: register ................................ ................................ ................................ ................. 47 11.6 tapen: tap detection enable register ................................ ................................ ............. 48 11.7 tapp: tap pulse register ................................ ................................ ................................ . 49 11.8 drop: drop event control register ................................ ................................ .................. 50 11.9 shdb: shake debounce register ................................ ................................ ...................... 51 11.10 xout_ex, yout_ex & zout_ex: x, y, z - axis extended accelerometer registers ....... 52 11.11 chipid: chip identification register ................................ ................................ ................... 53 11.1 2 outcfg: output configuration register ................................ ................................ ........... 54 11.13 x - axis offset registers ................................ ................................ ................................ ...... 55 11.14 y - axis offset registers ................................ ................................ ................................ ...... 56 11.15 z - axis offset reg isters ................................ ................................ ................................ ...... 57 11.16 x - axis gain registers ................................ ................................ ................................ ...... 58 11.17 y - axis gain registers ................................ ................................ ................................ ...... 59 11.18 z - axis gain registers ................................ ................................ ................................ ...... 60 11.19 shake_th: shake thr eshold register ................................ ................................ ............. 61 11.20 ud_z_th: up/down z axis threshold register ................................ ................................ . 62 11.21 ud_x_th: up/down x axis threshold register ................................ ................................ 63 11.22 rl_z_th: right/left z axis threshold register ................................ ................................ . 64 11.23 rl_y_th: right/left y axis threshold register ................................ ................................ 65 11.24 fb_z_th: front/back z axis threshold register ................................ ............................... 66 11.25 drop_th: drop threshold register ................................ ................................ ................. 67 11.26 tap_th: tap threshold register ................................ ................................ ...................... 68 11.27 pcode: prod uct code ................................ ................................ ................................ ....... 69
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 4 / 75 ? 201 4 mcube inc. all rights reserved. 12 example MC3410 configuration ................................ ................................ .................... 70 12.1 example: shake, tap & drop thresholds demo ................................ ................................ . 70 13 index of tables ................................ ................................ ................................ .............. 72 14 revision history ................................ ................................ ................................ ............. 74 15 legal ................................ ................................ ................................ .............................. 75
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 5 / 75 ? 201 4 mcube inc. all rights reserved. 1 o rder i nformation table 1 . order information part number resolution order number package shipping mc 34 1 0 10 or 14 - bit mc 34 1 0 v lga - 1 2 tape & reel, 5ku
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 6 / 75 ? 201 4 mcube inc. all rights reserved. 2 functional block dia gram figure 1 . block diagram o r i e n t a t i o n a n d d e t e c t i o n l o g i c a / d c o n v e r t e r ( s i g m a d e l t a ) c t o v v p p a v d d d v d d g n d r e g u l a t o r o s c i l l a t o r / c l o c k g e n e r a t o r m o d e l o g i c i 2 c s l a v e i n t e r f a c e i n t e r r u p t d e t e c t i o n b i a s g e n e r a t o r x a / d c o n v e r t e r ( s i g m a d e l t a ) c t o v y a / d c o n v e r t e r ( s i g m a d e l t a ) o f f s e t / g a i n a d j u s t c t o v z o t p m e m o r y r e g i s t e r s ( 6 4 x 8 ) s c l s d a t e s t i n t n r a n g e , r e s o l u t i o n l p f [ 2 : 0 ] o f f s e t / g a i n a d j u s t o f f s e t / g a i n a d j u s t x o u t _ e x , y o u t _ e x , z o u t _ e x v a r i o u s e v e n t s x , y , z d a t a p a t h s 1 4 - b i t s e n s o r s 1 0 - b i t
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 7 / 75 ? 201 4 mcube inc. all rights reserved. 3 packaging and pin de scription 3.1 package outline figure 2 . package outline and mechanical dimensions note: additional packaging information and device orientation can be found in section 11.2 tilt: status regist er . 4 3 b 5 8 9 6 2 7 1 2 1 1 l l 1 1 0 l 1 e 1 a s i d e v i e w b o t t o m v i e w 1 2 3 4 1 0 9 8 7 5 6 1 2 1 1 1 p i n 1 m a r k d i m e n s i o n ( m m ) s y m b o l m i n . n o m . m a x . a 0 . 8 5 0 . 9 2 1 . 0 0 2 . 0 0 b s c 2 . 0 0 b s c 0 . 5 b s c e 1 0 . 5 1 2 5 r e f b 0 . 2 0 0 . 2 5 0 . 3 0 l 1 0 . 0 5 0 . 1 0 0 . 1 5 l 0 . 2 2 5 0 . 2 7 5 0 . 3 2 5 d e e e 0 . 1 0 0 . 1 0 d i n d e x a r e a 0 . 0 8 0 . 1 0 / / t o p v i e w e l b 0 . 1 0 c 0 . 1 0 c
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 8 / 75 ? 201 4 mcube inc. all rights reserved. 3.2 pin description pin name function 1 nc no connect 2 sda 1 i2c serial data input/output 3 d vdd i/o power supply 4 nc no connect 5 intn 2 interrupt active low 3 6 vpp connect to gnd 7 avdd analog power supply 8 nc no connect 9 gnd ground 10 test optional probe pin 11 nc no connect 12 scl 1 i2c serial clock input table 2 . pin description notes: 1) this pin requires a pull - up resistor, typically 4. 7 k to dvdd. refer to i2c specification for fast - mode devices. higher resistance values can be used (typically done to reduce current leakage) but such applications are outside the scope of this datasheet. 2) this pin can be configured by software to operate either as an open - drain output or push - pull output ( mode: register ). if set to open - drain, then it requires a pull - up resistor, typically 4. 7 k to dvdd. 3) int n pin polarity is programmable in the mode: register .
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 9 / 75 ? 201 4 mcube inc. all rights reserved. 3.3 t ypical a pplication c ircuit figure 3 . typical application circuit in typical applications, the interface power supply may contain significant noise from external sources and other circuits which should be kept away from the sensor . therefore, for some applications a lower - noise power supply m ight be desirable to power the avdd pin. t o f a s t - m o d e i 2 c c i r c u i t r y 1 p l a c e c a p c l o s e t o d v d d a n d g n d o n p c b } f r o m i n t e r f a c e p o w e r s u p p l y n o t e 1 : r p a r e t y p i c a l l y 4 . 7 k ? p u l l u p r e s i s t o r s t o d v d d , p e r i 2 c s p e c i f i c a t i o n . w h e n d v d d i s p o w e r e d d o w n , s d a a n d s c l w i l l b e d r i v e n l o w b y i n t e r n a l e s d d i o d e s . n o t e 2 : a t t a c h t y p i c a l 4 . 7 k ? p u l l u p r e s i s t o r i f i n t n i s d e f i n e d a s o p e n - d r a i n . f r o m l o w e r - n o i s e p o w e r s u p p l y n c s d a d v d d n c t e s t g n d n c a v d d s c l n c i n t n v p p 0 . 1 f p l a c e c a p c l o s e t o a v d d a n d g n d o n p c b ( o p t i o n a l ) t o m c u i n t e r r u p t i n p u t 2 0 . 1 f 1 2 3 4 1 0 9 8 7 5 6 1 2 1 1 r p r p r p
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 10 / 75 ? 201 4 mcube inc. all rights reserved. 3.4 tape and reel devices are shipped in reels, in standard cardboard box packaging. see figure 4 . MC3410 tape dimensions and figure 5 . MC3410 reel dimensions . ? dimensions in mm. ? 10 sprocket hole pitch cumulative tolerance 0.2 ? pocket position relative to sprocket hole measured as true position of pocket, not pocket hole. figure 4 . MC3410 tape dimensions
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 11 / 75 ? 201 4 mcube inc. all rights reserved. ? dimensions in mm. figure 5 . MC3410 reel dimensions
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 12 / 75 ? 201 4 mcube inc. all rights reserved. 4 specifications 4.1 absolute maximum rat ings parameters exceeding the absolute maximum ratings may permanently damage the device. rating symbol minimum / maximum value unit supply voltages pins dvdd and avdd - 0.3 / +3.6 v acceleration, any axis, 100 s g max 10000 g ambient operating temperature t op - 40 / +85 ? c storage temperature t stg - 40 / +125 ? c esd human body model hbm 2000 v latch - up current at t op = 25 ? c i lu 100 ma input voltage to non - power pin pins intn, scl and sda - 0.3 / (dvdd + 0.3) or 3.6 whichever is lower v table 3 . absolute maximum ratings
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 13 / 75 ? 201 4 mcube inc. all rights reserved. 4.2 sensor characteristi cs dvdd, avdd = 2.8v, t op = 25 ? c unless otherwise noted parameter conditions min typ max unit acceleration range resolution and range set in outcfg: output configuration register 2.0 4.0 8.0 g sensitivity s10 (2.0g 10 - bit resolution) 2 s10 (4.0g 10 - bit resolution) 2 s10 (8.0g 10 - bit resolution) 2 s14 (8.0g 14 - bit resolution) 2 256 128 64 1024 lsb/g sensitivity temperature coefficient 1 - 40 t op +85 ? c 0.02 %/ ? c zero - g offset 100 mg zero - g offset temperature coefficient 1 - 40 t op +85 ? c 1 mg/ ? c noise density 1 1 00 g/hz nonlinearity 1 1 % fs cross - axis sensitivity 1 between any two axes 1 % table 4 . sensor characteristics 1 values are based on device characterization , not tested in produc tion. 2 the best resolution is realized with the 8hz bandwidth setting.
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 14 / 75 ? 201 4 mcube inc. all rights reserved. 4.3 electrical and timin g characteristics 4.3.1 electrical pow er and internal characteris tics parameter conditions symbol min typ max unit supply voltage 2 avdd 2.0 3.6 v i/o voltage 2 dvdd 1.7 3.6 v sample rate tolerance 3 tclock - 5 5 % test condition: avdd = dvdd = 2.8v, t op = 25 ? c unless otherwise noted parameter conditions symbol min typ max unit standby current avdd=2.0v avdd=2. 8 v avdd=3.6v i dd0 1. 6 1.8 2.0 a wake state supply current i dd1024 1 9 0 a pad leakage per i/o pad i pad - 1 0.01 1 a table 5 . electrical characteristics 2 min and max limits are hard limits without additional tolerance. 3 values are based on device characterization , not tested in production.
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 15 / 75 ? 201 4 mcube inc. all rights reserved. 4.3.2 i2c electrical chara cteristics parameter symbol min max unit low level input voltage vil - 0.5 0.3*dvdd v high level input voltage vih 0.7*dvdd - v hysteresis of schmitt trigger inputs vhys 0.05*dvdd - v output voltage, pin intn, iol 2 ma iol 1 ma 4 ci - 10 pf table 6 . i2c electrical and timing characteristics notes: ? if multiple slaves are connected to the i2c signals in addition to this device, only 1 pull - up resistor on each of sda and scl should exist. also, care must be taken to not violate the i2c specification for capacitive loading . ? when dvdd is not powered and set to 0v , intn, sda and scl will be held to dvdd plus the forward voltage of the internal static protection diodes, typically about 0.6v. ? when dvdd is disconnected from power or ground (e.g. hi - z), the device may become inad vertently powered up through the esd diodes present on other powered signals. 4 values are based on device characterizati on , not tested in production.
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 16 / 75 ? 201 4 mcube inc. all rights reserved. 4.3.3 i2c timing character istics figure 6 . i2c interface timing parameter description standard mode fast mode units min max min max f scl scl clock frequency 0 100 0 400 khz t hd; sta hold time (repeated) start condition 4.0 - 0.6 - s t low low period of the scl clock 4.7 - 1.3 - s t high high period of the scl clock 4.0 - 0.6 - s t su;sta set - up time for a repeated start condition 4.7 - 0.6 - s t hd;dat data hold time 5.0 - - - s t su;dat data set - up time 250 - 100 - ns t su;sto set - up time for stop condition 4.0 - 0.6 - s t buf bus free time between a stop and start 4.7 - 1.3 - s table 7 . i2c timing characteristics note: values are based on i2c specification requirements, not tested in production. see also section 10.3 i2c message format .
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 17 / 75 ? 201 4 mcube inc. all rights reserved. 5 general operation the internal sampling rate range is fixed at 102 4 samples per second. the resulting sensor readings appear as either 10 - bit or 14 - bit values, depending upon the selection chosen. 5.1 sensor sampling m easurement data is stored in the extended registers xout_ex, yout_ex, and zout_ex. the byte with the lowe r address of the byte pair is the least significant byte while the byte with the next higher address is the most significant byte. the 10 - bit or 14 - bit measurement is represented as 2s complement format. 10 - bit samples occupy bits [9:0], with bits [15:9] occupied by the sign bit. 14 - bit samples occupy bits [13:0], with bits [15:13] occupied by the sign bit. the desired resolution and full scale acceleration range of 2g, 4g or 8g are set in outcfg: output configur ation register . t he device sample rate is fixed at 1024 samples/second. the features tap, shake, drop and orientation detection are available . resolution acceleration range value per bit (mg/lsb) full scale negative reading full scale positive reading comments 10 - bit 2g ~3.9 0xfe00 ( - 512) 0x01ff (+511) signed, 2s complement number, results in registers xout_ex_l, xout_ex_h yout_ex_l, yout_ex_h zout_ex_l, zout_ex_h (sign - extended. integer interpretation also shown) 10 - bit 4g ~7.8 10 - bit 8g ~15. 6 14 - bit 8g ~0.98 0xe000 ( - 8192) 0x1fff (+8191) signed, 2s complement number, results in registers xout_ex_l, xout_ex_h yout_ex_l, yout_ex_h zout_ex_l, zout_ex_h (sign - extended. integer interpretation also shown) table 8 . summary of resolution, range, and scaling based upon the intended application, filtering of the data samples may be desired. the device has several low - pass filter (lpf) options for the raw sample data, intended to filter out
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 18 / 75 ? 201 4 mcube inc. all rights reserved. undesired high frequency components. related to this lpf setting is the gint interrupt rate, which can be modified to occur based upon the lpf roll - off frequency, rather than the sample rate (fixed at 1024 samples / second). see section 8.2 gint interrupt for more on this option. the cutoff points for the lpf can be set from 8hz to 512 hz. these, and the controls for t he gint rate, are described in section 11.12 outcfg: output configuration register . 5.2 o ffset and g ain c alibration digital offset and gain calibration can be performed on the sensor, if necessary, in order to reduce the effects of post - assembly influences and stresses which may cause the sensor readings to be offset from their factory values. the register controls are described in section s 11.13 through 11.18 .
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 19 / 75 ? 201 4 mcube inc. all rights reserved. 6 operational states the device has two states of operation: standby (the default state after power - up), and wake. the standby state offers the lowest power consumption. in this state, the i2c interface is acti ve and all register reads and writes are allowed. there is no event detection, sampling, or acceleration measurement in the standby state. internal clocking is halted. complete access to the register set is allowed in this state, but interrupts cannot be s erviced. the device defaults to the standby state following power - up. the time to change states from standby to wake is less than 10usec and does not depend upon the sample rate. registers can be written (and therefore resolution, range. thresholds and oth er settings changed) only when the device is in standby state. the i2c interface allows write access to all registers only in the standby state. in wake state, the only i2c register write access permitted is to the mod e: register . full read access is allowed in all states. state i2c bus description standby device responds to i2c bus (r/w) device is powered; registers can be accessed via i2c. lowest power state. no interrupt generation, internal clocking disabled. default power - on state. wake device responds to i2c bus (read) c ontinuous sampling and reading of sense data . all registers except the mode: register are read - only. table 9 . operational states
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 20 / 75 ? 201 4 mcube inc. all rights reserved. 7 operational state fl ow figure 7 . operational state flow shows the operational state flow for the device. the device defaults to standby following power - on. figure 7 . operational state flow t he operational state may be forced to a specific state by writing into the opcon bits, as shown below. two bits are specified in order to promote software compatibility with other mcube devices. the o perational state will stay in the mode specified until c hanged: action setting effect force wake state opcon[1:0] = 01 ? ? ? ? table 10 . forcing operational states w a k e s t a n d b y o p c o n = 1 1 o p c o n = 0 1
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 21 / 75 ? 201 4 mcube inc. all rights reserved. 8 interrupts the sensor device utilize s output pin intn to signal to an external microprocessor that an event has been sensed. the microprocessor would contain an interrupt service routine which would perf orm certain tasks after receiving this interrupt and reading the associated status bits, perhaps after the product was put into a certain orientation or had been tapped. the microprocessor would set up the registers in the sensor so that when a specific ev ent is detected, the microprocessor would receive the interrupt and the interrupt service routine would be executed. for products that will instead use polling, the method of reading sensor data would be slightly different. instead of receiving an interrup t when an event occurs, the microprocessor must periodically poll the sensor and read status data while the intn pin is not used. for most applications this is likely best done at the sensor sampling rate or faster. note that at least one i2c stop conditio n must be present between samples in order for the sensor to update the sample data registers. in this case, the event detection bits (tapd, shaked , dropd) and associated interrupt enable bits in the tilt: status regis ter must still be set up as if interrupts would occur in order for the status registers to be updated with proper data. although the intn is not connected, the registers in the sensor will still contain valid status and so can be used by software to know the orientation of the product or if an event has occurred. 8.1 enabling and clearin g interrupts the inten: interrupt enable register determines which events generate interrupts. when an event is detected, it is masked with an interrupt enable bit in this register and the corresponding status bit is set in the tilt: status register . multiple interrupt events might be reported at the same time in the tilt: status register , so software must interpret and prioritize the results. the pin intn is cleared during the next i2c bus cycle after the device id has been recognized by the device. when an interrupt is triggered, the first i2c read access to the device clears intn p in. the condition (tapd, shaked, dropd) that generated the interrupt will remain held in the tilt: status register until it is read. note that the ori entation bit - fields pola and bafr are continuously updated (every sample) in the tilt: status register and are not held. note that multiple interrupts may be active at the same time, and so a software routine reading the tilt: status register should account for this.
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 22 / 75 ? 201 4 mcube inc. all rights reserved. any of the following interrupt s can be enabled or disabled in the inten: interrupt enable register and drop: drop event control register . ? front/back interrupt ? up/down/left/right (portrait / landscape) interrupt ? tap detection interrupt ? gint (real - time motion tracking, generate interrupt each sample period) ? shake on x - axis, shake on y - axis, and shake on z - axis ? drop event detection the inten: interrupt enable register contains many of the interrupt enable bits. the drop interrupt enable bit dint is located in the drop: drop event control register . 8.2 interrupt support the following table shows the relationship between motion events and interrupt enable bits for determining when the device will generate an interrupt. no measurements or interrupts are genera ted in the standby state. motion event interrupt enable bits portrait/landscape or front/back orientation change fbint = 1 plint = 1 shake shintx = 1 shinty = 1 shintz = 1 tap tint = 1 drop dint = 1 sample update gint = 1 table 11 . interrupt support
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 23 / 75 ? 201 4 mcube inc. all rights reserved. 8.3 gint interrupt t he gint interrupt can trigger on each sample period (default), or be filtered by the bandwidth setting of the lpf. if the outcfg: output configuration register irate bit is inactive, then the gint interrupt will trigger each sample period. if the irate bit is active, the gint interrupt rate will be updated based on the low - pass filter se tting controlled by bit - field lpf.
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 24 / 75 ? 201 4 mcube inc. all rights reserved. 8.4 event detection the detection logic monitors and compares sensor outputs against the comparisons selected by the application software. each type of event can be masked by a separate bit in the inten: interrupt enable register . the following table shows how the detection events are evaluated. event x axis y axis z axis up |z| < (ud_z_th) and |x| > (ud_x_th) and x < 0 1 down |z| < (ud_z_th) and |x| > (ud_x_th) and x > 0 1 right |z| < (rl_z_th) and |y| > (rl_y_th) and y < 0 2 left |z| < (rl_z_th) and |y| > (rl_y_th) and y > 0 2 front z > fb_z_th 3 back z < - 1 * fb_z_th 3 shaked 4 |x| > 1.3g shake_th |y| > 1.3g shake_th |z| > 1.3g shake_th dropd 5 |x| < 0.5g drop_th |y| < 0.5g drop_th |z| < 0.5g drop_th tapd 6 |x| > tap_th |y| > tap_th |z| > tap_th table 12 . detection logic event evaluation 1 up/down z threshold is programmable from 0.425g to 1.172g , up/down x threshold is programmable from |x| to |x| + 0.7 47 g. 2 right/left z threshold is programmable from 0.425g to 1.172g , right/left y threshold is programmable from |y| to |y| + 0.7 47 g. 3 front/back z threshold is programmable from 0.17 4 g to 0.547g . 4 shaked event is triggered when any axis > shake_th, programmable from 0.925g to 1.1672g . 5 dropd event is triggered when condition (a) |x| + |y| + |z| < 0.5g + drop_th or condition (b) |x| < 0.5g drop_th and |y| < 0.5g drop_th and |z| < 0.5g drop_th , this is user selectable. the range is from 0.125g to 0.872g . 6 tapd event is triggered by |x| > tap_th or |y| > tap_th g or |z| > tap_th, where tap_th is programmable and any combination of x, y, and z may be selected.
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 25 / 75 ? 201 4 mcube inc. all rights reserved. 9 orientation detectio n the m c 34 10 allows an application to determine the orientation of the device. the current orientation of the device is reported as left, right, up, down, front, and back for each sampling period. this information generates the portrait/landscape status bits in t he tilt: status register . 9.1 orientation hysteres is hysteresis can be added to portrait/landscape and front/back detection by modifying the default threshold offset values. see the specific sections below for more information. 9.2 portrait/landscape e vents portrait/landscape detection is a combination of left, right, up, and down events, also partially dependent upon z sensor readings. the default compar ison angle for portrait/landscape is 45 degrees when evaluating differences between left, right, up, and down, as long as the magnitude of z is < 0.8g (default) . see figure 8 . by increasing the threshold values written to the ud_x_th: up/down x axis threshold and rl_y_th: right/left y axis threshold , hysteresis can be introduced to the angle of evaluation. these registers add a small offset to the default x and y values and introduce additional margin in the portrait/landscape detection logic. for most applications, the same value should be written to both registers. when the device orientation is in the hysteresis region, the device will report orientation as unknown. when this reading is reported, in order to implement a hysteresis ef fect for orientation, high - level software should use the last known portrait/landscape information. in the example shown in figure 9 the evalu ation angle has been de creased to 40 degrees in each threshold, such that there is a 10 degree deadband or hysteresis - area between left/right and down/up areas. the circle represents the acceleration in the z axis, which has a default of 0.8g , or about a 33 degree tilt relative to the z axis .
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 26 / 75 ? 201 4 mcube inc. all rights reserved. figure 8 . default orientation settings figure 9 . example simple orientation hysteresis = 1 0 degrees the z threshold for each direction can also be adjusted, as shown in figure 10 . this has the effect of altering the angle relative to the z axis which causes the orientation state to change. figure 11 shows an example of setting the ud_z_th and rl_z_th registers to different values, as well as setting the ud_x_th and rl_y_th registers to different values . h owever for most applications the same value should be written to both registers in both cases . - x - y d e f a u l t u d _ x _ t h 4 5 o + y + x p o l a = l e f t p o l a = r i g h t p o l a = d o w n p o l a = u p p o l a = u n k n o w n i n s h a d e d r e g i o n d e f a u l t r l _ y _ t h 4 5 o d e f a u l t r l _ z _ t h 3 3 o ( l e f t / r i g h t a r c r a d i u s ) d e f a u l t u d _ z _ t h 3 3 o ( u p / d o w n a r c r a d i u s ) u d _ x _ t h 4 0 o r l _ y _ t h 4 0 o d e f a u l t r l _ z _ t h 3 3 o ( l e f t / r i g h t a r c r a d i u s ) p o l a = u n k n o w n i n s h a d e d r e g i o n s h y s t e r e s i s 1 0 o d e f a u l t u d _ z _ t h 3 3 o ( u p / d o w n a r c r a d i u s ) - x - y + y + x p o l a = l e f t p o l a = r i g h t p o l a = d o w n p o l a = u p
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 27 / 75 ? 201 4 mcube inc. all rights reserved. figure 10 . effect of changing ud_z_th threshold with hysteresis = 1 0 degrees figure 11 . example of complex thresholds for u p /d own x, r ight /l eft y , up/down z & right/left z table 13 summarizes the portrait/landscape event evaluation criteria. some example threshold values and the corresponding trip angle and amount of hysteresis are shown in table 14 . event x axis y axis z axis up |z| < (ud_z_th) and |x| > (ud_x_th) and x < 0 down |z| < (ud_z_th) and |x| > (ud_x_th) and x > 0 right |z| < (rl_z_th) and |y| > (rl_y_th) and y < 0 left |z| < (rl_z_th) and |y| > (rl_y_th) and y > 0 table 13 . portrait/landscape event evaluation criteria p o l a = u n k n o w n i n s h a d e d r e g i o n s u d _ x _ t h 4 0 o r l _ y _ t h 4 0 o r l _ z _ t h m a x ( 1 o ) ( l e f t / r i g h t a r c r a d i u s ) h y s t e r e s i s 1 0 o u d _ z _ t h m a x ( 1 o ) ( u p / d o w n a r c r a d i u s ) - x - y + y + x p o l a = l e f t p o l a = r i g h t p o l a = d o w n p o l a = u p p o l a = u n k n o w n i n s h a d e d r e g i o n s - x u d _ x _ t h 1 3 o + x p o l a = d o w n p o l a = u p r l _ y _ t h 2 8 o r l _ z _ t h 1 o ( l e f t / r i g h t a r c r a d i u s ) h y s t e r e s i s 4 9 o u d _ z _ t h 5 9 o ( u p / d o w n a r c r a d i u s ) - y + y p o l a = l e f t p o l a = r i g h t
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 28 / 75 ? 201 4 mcube inc. all rights reserved. register s ud_x_th or rl_y_th threshold value trip angle (approx. degrees) resulting hysteresis (approx. degrees) corresponding g value (approximate) 0x00 45 0 0.7 2 0x10 43 4 0.68 0x20 41 8 0.66 0x30 39 12 0.63 0x40 37 16 0.61 0x50 36 20 0.58 0x60 34 24 0.55 table 14 . some approximate x and y - axis portrait/landscape evaluation angles and values registers ud_z_th or rl_z_th threshold value trip angle (approx. degrees) corresponding g value (approximate) 0x80 67 0.43 0x90 64 0.47 0xe 0 48 0.71 0xf 0 45 0.75 0x0 0 40 0.8 0 0x1 0 36 0.85 0x2 0 32 0.89 0x7 0 9 1.13 0x7f 3 max (~ 1 .17)* table 15 . some approximate z - axis portrait/landscape evaluation angles and values note *: max values >1.0g are possible, to cover offset variations. table 16 shows the orientation event conditions for the portrait/landscape detection hardware.
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 29 / 75 ? 201 4 mcube inc. all rights reserved. pola[2:0] left right down up description/comments 000 0 0 0 0 unknown 001 1 0 0 0 left/landscape 010 0 1 0 0 right/landscape 101 0 0 1 0 down/portrait 110 0 0 0 1 up/portrait table 16 . portrait/landscape tilt: status register assignments
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 30 / 75 ? 201 4 mcube inc. all rights reserved. 9.3 front/back events the front/back detection compares zout with a low g value, ranging from 0. 174g to 0.547g , with the offset from 0.174g specified by the fb_z_th: front/back z axis threshold register . this equates to a range of approximately 55 degrees. the bafr bit - field is updated in the tilt: status register according to the front/back orientation sensed by the device. additional hysteresis can be added to front/back detection by incre asing the front/back z axis threshold value located in the fb_z_th: front/back z axis threshold register . when the front/back orientation of the devic e is in the deadband region, bafr bit - field will report the orientation as unknown. the default settings (0x00) equate to a range of approximately 2 5 degrees where the sensor will report bafr = front (or back). the maximum settings (0xff) equate to abou t a 80 degree range. see figure 12 and figure 13 . figure 12 . default setting of fb_z_th for bafr readings figure 13 . maximum setting of fb_z_th for bafr readings the bit settings for the bafr bit - field are shown in table 17 . table 18 shows the front/back orientation evaluation criteria. some example threshold values and the corresponding trip angles are shown in table 19 . all values are approximate and not tested in production. 2 5 . 0 2 5 . 0 - z + z s e n s o r f b _ z _ t h = 0 x 0 0 = = 2 5 o ( d e f a u l t , a p p r o x . ) b a f r = f r o n t b a f r = b a c k b a f r = u n k n o w n b a f r = u n k n o w n f b _ z _ t h = 0 x f f = = 8 0 o ( m a x i m u m , a p p r o x . ) 8 0 . 0 8 0 . 0 + z - z s e n s o r b a f r = u n k n o w n b a f r = u n k n o w n b a f r = f r o n t b a f r = b a c k
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 31 / 75 ? 201 4 mcube inc. all rights reserved. bafr[1:0] status 00 unknown condition of front or back 01 front: device is in orientation e. in figure 20 10 back: device is in orientation f. in figure 20 11 reserved table 17 . bafr bit assignments in the tilt: status register event x axis y axis z axis front z > fb_z_th back z < - 1 * fb_z_th table 18 . front/back event evaluation threshold value fb_z_th trip angle (approx. degrees) 0x00 2 5 0x10 28 0x20 32 0x30 35 0x40 3 9 0x50 42 0x60 46 0x70 49 0xff 80 table 19 . approximate front/back evaluation angles and values
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 32 / 75 ? 201 4 mcube inc. all rights reserved. 9.4 shake detection the threshold for detecting a shake event can be set to a range of values around a 1.3g baseline . the shake threshold can range from 0.925g to 1.672g . the value is a signed, 2s complement number . resolution is approximately 2. 9 mg/bit. a shake event will be triggered when high - g values are sensed for a sufficient number of samples. shdb: shake debounce register can be set to count from 1 to 63 events before setting the shaked bit in the tilt: status register . higher values yield longer evaluation periods. see figure 14 and figure 15 . shake detection can be any combination of axes. to enable detection even when not using interrupts, set the corresponding shintx, shinty, or shintz bit - fields in the inten: interrupt enable register . event x axis y axis z axis shake |x| > +1.3g threshold or |y| > +1.3g threshold or |z| > +1.3g threshold table 20 . shake event evaluation (baseline + offset) figure 14 . example use of shake detection hardware C shake not detected s a m p l e s e n s e d g v a l u e t i m e s h a k e d e b o u n c e r e g i s t e r = = 4 b u t t h e s e n s e d g v a l u e i s a b o v e 1 . 3 g + s h a k e _ t h f o r o n l y 3 s a m p l e s . s h a k e e v e n t i s n o t d e t e c t e d . 1 . 3 g s h a k e _ t h r e g i s t e r { s h a k e d e t e c t i s r e s e t h e r e
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 33 / 75 ? 201 4 mcube inc. all rights reserved. figure 15 . example use of s hake detection hardware C shake detected. s e n s e d g v a l u e s h a k e _ t h r e g i s t e r t i m e s a m p l e s h a k e d e b o u n c e r e g i s t e r = = 4 a n d t h e s e n s e d g v a l u e i s a b o v e 1 . 3 g + s h a k e _ t h f o r 5 s a m p l e s . s h a k e e v e n t i s d e t e c t e d . 1 . 3 g { s h a k e d e t e c t e d h e r e
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 34 / 75 ? 201 4 mcube inc. all rights reserved. 9.5 drop detection drop detection is defined as a low - g acceleration applied to all axes. two modes of drop detection are supported: mode a: drop detection is a summation of all 3 axes: drop is detected when: sum( mag( x) + mag(y) + mag(z) ) < 0.5g drop_th threshold else drop not detected; mode b: drop detection is the logical and of three comparisons: drop is detected when: mag(x) < 0.5g drop_th threshold and mag(y) < 0.5g drop_th threshold and mag(z) < 0.5g drop_th threshold else drop not detected. the typical drop threshold value is on the order of < 0.5g for all axes. the drop detection range is from 0.125g to 0.872g . the drop debounce value (bit - field ddb in the drop: drop event control register ) can filter from 1 to 8 consecutive events before setting the drop interrupt. event x axis y axis z axis drop mode a sum (|x| + |y| + |z|) < 0.5g drop_th drop mode b |x| < 0.5g drop_th and |y| < 0.5g drop_th and |z| < 0.5g drop_th table 21 . drop event evaluation
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 35 / 75 ? 201 4 mcube inc. all rights reserved. 9.6 tap detection on - chip tap detection hardware allows the device to detect user events such as on - screen button presses. tap detection can be enabled or disabled on each axis via the tapen: tap detection enable register . to detect fast, impulse events like a tap, the tapp: tap pulse register should be written with a tap pulse parameter that sets the maximum number of sample periods that a tapd event may exceed the threshold before it is ignored by the detection logic. sensed values that are above the threshold for long periods of time typically do not correspond to ta p events. for example, setting the pulse value to 5 requires that the tap impulse exceed the threshold for at least 1 sample period and up to 5 sample periods. the tap detection hardware is rearmed after the sensed value is below the threshold. see the exa mple in figure 16 and figure 17 . figure 16 . example use of tap detection hardware C no tap detected s e n s e d v a l u e t a p _ t h r e g i s t e r t i m e s a m p l e t a p p u l s e r e g i s t e r = = 5 b u t t h e s e n s e d v a l u e i s a b o v e t h e t h r e s h o l d f o r 1 0 s a m p l e s . n o t a p i s d e t e c t e d . t a p d e t e c t i s r e s e t h e r e ( 6 t h s a m p l e ) t a p d e t e c t i s r e a r m e d h e r e 0 s n a p
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 36 / 75 ? 201 4 mcube inc. all rights reserved. figure 17 . example use of tap detection hardware C tap detected the threshold value, set by writing the tap_th: tap threshold register , is an 8 - bit unsigned number that species the threshold detection level for all tap events. this value is not an offset, but a magnitude whic h determines the minimum level for a valid tap event. event x axis y axis z axis tap |x| > tap_th |y| > tap_th |z| > tap_th table 22 . default tap event evaluation s a m p l e s e n s e d v a l u e t a p _ t h r e g i s t e r t i m e t a p p u l s e r e g i s t e r = = 5 a n d t h e s e n s e d v a l u e i s a b o v e t h e t h r e s h o l d f o r 3 s a m p l e s . t a p i s d e t e c t e d . t a p d e t e c t e d h e r e 0 s n a p c o m p a r e d v a l u e s e n s e d v a l u e
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 37 / 75 ? 201 4 mcube inc. all rights reserved. 9.7 continuous sampling the device has the ability to read all sampled readings in a continuous sampling fashion. t he device always updates the xout_ex, yout_ex, and zout_ex registers at 1024 samples/second. an optional interrupt can be generated each time the sample registers have been updated (gi nt interrupt bit in the inten: interrupt enable register ). see sections 8.3 and 11.11 for gint operation and options.
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 38 / 75 ? 201 4 mcube inc. all rights reserved. 10 i2c interface 10.1 physical interface the i2c slave interface operates at a maximum speed of 400 khz. t he sda (data) is an open - drain, bi - directional pin and the scl (clock) is an input pin. the device always operates as an i2c slave. an i2c master initiates all communication and data transfers and ge nerates the scl clock that synchronizes the data transfer. the i2c device address is 0x4c (8 - bit address 0x98) . the i2c interface remains active as long as power is applied to the dvdd and avdd pins. in standby state the device responds to i2c read and wri te cycles, but interrupts cannot be serviced or cleared. all registers can be written in the standby state, but in wake only the mode: register can be modified. internally, the registers which are used to store samples are clocked by the sample clock gated by i2c activity. therefore, in order to allow the device to collect and present samples in the sample registers at least one i2c stop condition must b e present between samples. refer to the i2c specification for a detailed discussion of the protocol. per i2c requirements, sda is an open drain, bi - directional pin. scl and sda each require an external pull - up resistor, typically 4. 7 k . refer also to figure 3 . typical application circuit . 10.2 timing see section 4.3.3 i2c timing characteristics for i2c timing requirements. 10.3 i2c message format the device uses the following general format for writing to the internal registers. the i2c master generates a start condition, and then supplies the device id, 0x4c or 1001100. the 8 th bit is the r/w# flag (write cycle = 0). the device pulls sda low during the 9 th clock cycle indicating a positive ack. this means, from an 8 - bit point of view of an external i2c master, writes should be written to address 0x98 and reads will occur by reading address 0x99. the second byte is the 8 - bit register address of the device to access, and the last byte is the data to write. figure 18 . i2c message format, write cycle, single register write 1 0 0 1 0 1 0 0 a c k r 7 r 6 r 5 r 4 r 1 r 3 r 2 r 0 d 7 d 6 d 5 d 4 d 1 d 4 d 2 d 0 p s a c k a c k s t a r t d e v i c e i d ( 4 c ) r / w # a c k / n a k r e g i s t e r a d d r e s s r e g i s t e r d a t a t o w r i t e s t o p a c k / n a k a c k / n a k i 2 c m a s t e r ( t o s e n s o r ) i 2 c s l a v e ( f r o m s e n s o r )
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 39 / 75 ? 201 4 mcube inc. all rights reserved. in a read cycle, the i2c master writes the device id (r/w#=0) and register address to be read. the master issues a restart condition and then writes the device id with the r/w# flag set to 1. the device shifts out the contents of the register address. figure 19 . i2c message format, rea d cycle, single register read the i2c master may write or read consecutive register addresses by writing or reading additional bytes after the first access. the device will internally increment the register address. if an i2c burst read operation reads pa st register address 0x12 the internal address pointer wraps to address 0x03 and the contents of the tilt: status register are returned. this allows a pplication software to burst read the contents of the six extended registers and the relevant device state registers in a single i2c cycle. 1 0 0 1 0 1 0 0 a c k r 7 r 6 r 5 r 4 r 1 r 3 r 2 r 0 r s a c k i 2 c m a s t e r ( t o s e n s o r ) i 2 c s l a v e ( f r o m s e n s o r ) s t a r t d e v i c e i d ( 4 c ) r / w # a c k / n a k r e g i s t e r a d d r e s s r e s t a r t a c k / n a k d 7 d 6 d 5 d 4 d 1 d 3 d 2 d 0 n a k r e a d d a t a b y t e n a k 1 0 0 1 0 1 0 1 a c k d e v i c e i d ( 4 c ) r / w # a c k / n a k p s t o p
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 40 / 75 ? 201 4 mcube inc. all rights reserved. 11 register interface the device has a simple register interface which allows a mcu or i2c master to configure and moni tor all aspects of the device. this section lists an overview of user programmable registers. by convention, bit 0 is the least significant bit (lsb) of a byte register. t wo registers are needed in order to contain each sample, the xout_ex, yout_ex & zout_ex: x, y, z - axis extended accelerometer registers . the least significant byte is located in the register with a lower address (e.g. xout_ex_l), followe d by the most significant byte in the next higher address (e.g. xout_ex_h).
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 41 / 75 ? 201 4 mcube inc. all rights reserved. 11.1 register summary addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 5 0x00 - 0x02 reserved 6 0x03 tilt tilt status register shaked dropd tapd pola [2] pola [1] pola [0] bafr [1] bafr [0] 0x00 r 0x04 opstat operational state status register otpa 0 resv 8 0 0 0 opstat [1] opstat [0] 0x03 r 0x05 reserved 6 0x06 inten interrupt enable register shintx shinty shintz gint asint tint plint fbint 0x00 w 0x07 mode mode register iah ipp resv 8 resv 8 resv 8 0 7 opcon [1] opcon [0] 0x03 w 0x08 reserved 6 0x09 tapen tap detection enable register zda yda xda resv 8 resv 8 resv 8 resv 8 resv 8 0x00 w 0x0a tapp tap pulse register resv 8 resv 8 resv 8 resv 8 tapp [3] tapp [2] tapp [1] tapp [0] 0x00 w 0x0b drop drop event control register drop_ mode dint resv 8 resv 8 resv 8 drop_ db[2] drop_ db[1] drop_ db[0] 0x00 w 0x0c shdb shake debounce register resv 8 resv 8 shdb [5] shdb [4] shdb [3] shdb [2] shdb [1] shdb [0] 0x00 w 0x0d xout _ex_l xout extended register xout _ex[7] xout _ex[6] xout _ex[5] xout _ex[4] xout _ex[3] xout _ex[2] xout _ex[1] xout _ex[0] 0x00 r 0x0e xout _ex_h xout extended register xout _ex[15] xout _ex[14] xout _ex[13] xout _ex[12] xout _ex[11] xout _ex[10] xout _ex[9] xout _ex[8] 0x00 r 0x0f yout _ex_l yout extended register yout _ex[7] yout _ex[6] yout _ex[5] yout _ex[4] yout _ex[3] yout _ex[2] yout _ex[1] yout _ex[0] 0x00 r 0x10 yout _ex_h yout extended register yout _ex[15] yout _ex[14] yout _ex[13] yout _ex[12] yout _ex[11] yout _ex[10] yout _ex[9] yout _ex[8] 0x00 r 0x11 zout _ex_l zout extended register zout _ex[7] zout _ex[6] zout _ex[5] zout _ex[4] zout _ex[3] zout _ex[2] zout _ex[1] zout _ex[0] 0x00 r 0x12 zout _ex_h zout extended register zout _ex[15] zout _ex[14] zout _ex[13] zout _ex[12] zout _ex[11] zout _ex[10] zout _ex[9] zout _ex[8] 0x00 r 0x13 - 0x17 reserved 6 0x18 chipid chip id register 0 0 0 0 0 0 1 0 0x0 2 r 0x19 - 0x1f reserved 6 0x20 outcfg output configuration register irate lpf [2] lpf [1] lpf [0] hires [1] hires [0] 1 9 1 9 0x03 w 0x2 1 xoffl x - offset lsb register xoff [7] xoff[6] xoff[5] xoff[4] xoff[3] xoff[2] xoff[1] xoff[0] per chip w 5 r registers are read - only, via external i2c access. w registers are read - write, via external i2c access. 6 registers designated as reserved should not be accessed by software. 7 software must always write a zero 0 to this bit. 8 bits designated as r esv are reserved for future use. 9 s oftware must always write a one 1 to this bit.
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 42 / 75 ? 201 4 mcube inc. all rights reserved. addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 5 0x22 xoffh x - offset msb register xgain[8] resv 8 xoff[13] xoff[12] xoff[11] xoff[10] xoff[9] xoff[8] per chip w 0x23 yoffl y - offset lsb register yoff[7] yoff[6] yoff[5] yoff[4] yoff[3] yoff[2] yoff[1] yoff[0] per chip w 0x24 yoffh y - offset msb register ygain[8] resv 8 yoff[13] yoff[12] yoff[11] yoff[10] yoff[9] yoff[8] per chip w 0x25 zoffl z - offset lsb register zoff[7] zoff[6] zoff[5] zoff[4] zoff[3] zoff[2] zoff[1] zoff[0] per chip w 0x26 zoffh z - offset msb register zgain[8] resv 8 zoff[13] zoff[12] zoff[11] zoff[10] zoff[9] zoff[8] per chip w 0x27 xgain x gain register xgain[7] xgain[6] xgain[5] xgain[4] xgain[3] xgain[2] xgain[1] xgain[0] per chip w 0x28 ygain y gain register ygain[7] ygain[6] ygain[5] ygain[4] ygain[3] ygain[2] ygain[1] ygain[0] per chip w 0x29 zgain z gain register zgain[7] zgain[6] zgain[5] zgain[4] zgain[3] zgain[2] zgain[1] zgain[0] per chip w 0x2a reserved 6 0x2b shake _th shake threshold register shake _th[7] shake _th[6] shake _th[5] shake _th[4] shake _th[3] shake _th[2] shake _th[1] shake _th[0] 0x00 w 0x2c ud_z _th up/down z threshold register ud_z _th[7] ud_z _th[6] ud_z _th[5] ud_z _th[4] ud_z _th[3] ud_z _th[2] ud_z _th[1] ud_z _th[0] 0x00 w 0x2d ud_x _th up/down x threshold register ud_x _th[7] ud_x _th[6] ud_x _th[5] ud_x _th[4] ud_x _th[3] ud_x _th[2] ud_x _th[1] ud_x _th[0] 0x00 w 0x2e rl_z _th right/left z threshold register rl_z _th[7] rl_z _th[6] rl_z _th[5] rl_z _th[4] rl_z _th[3] rl_z _th[2] rl_z _th[1] rl_z _th[0] 0x00 w 0x2f rl_y _th right/left y threshold register rl_y _th[7] rl_y _th[6] rl_y _th[5] rl_y _th[4] rl_y _th[3] rl_y _th[2] rl_y _th[1] rl_y _th[0] 0x00 w 0x30 fb_z _th front/back z threshold register fb_z _th[7] fb_z _th[6] fb_z _th[5] fb_z _th[4] fb_z _th[3] fb_z _th[2] fb_z _th[1] fb_z _th[0] 0x00 w 0x31 drop _th drop threshold register drop _th[7] drop _th[6] drop _th[5] drop _th[4] drop _th[3] drop _th[2] drop _th[1] drop _th[0] 0x00 w 0x32 tap _th tap threshold register tap _th[7] tap _th[6] tap _th[5] tap _th[4] tap _th[3] tap _th[2] tap _th[1] tap _th[0] 0x00 w 0x33 to 0x3a reserved 6 0x3b pcode product code 1 0 1 1 1 0 0 0 0x b 8 r 0x3c to 0x3f reserved 6 table 23 . register summary 10 10 no registers are updated with new event status or samples while a i2c cycle is in process.
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 43 / 75 ? 201 4 mcube inc. all rights reserved. 11.2 tilt: status registe r this register contains bits which are set when a motion event is detected. each event has a corresponding interrupt enable which can mask any combination of events. the event detection bits (shaked, dropd, tapd) remain held until the register is read by the i2c interface. note that the orientation bit - fields pola and bafr are continuously updated (every sample) in the tilt: status register and are not held. note that multiple interrupts may be active at the same time, and so a software routine reading the tilt: status register should ac count for this. refer to figure 20 . package orientation and figure 21 . package axis reference . addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x03 t ilt tilt status register shaked dropd tapd pola [2] pola [1] pola [0] bafr [1] bafr [0] 0x00 r bafr[1 :0] back or front 00: unknown condition of front or back 01: front C device is in orientation e in figure 20 . package orientation . 10: back C device is in orientation f in figure 20 . package orientation . 11: reserved pola[2:0] portrait or landscape 000: unknown condition of up, down, left or right 001: left C device is in orientation b in figure 20 . package orientation . 010: right C device is in orientation c in figure 20 . package orientation . 011: reserved 100: reserved 101: down C device is in orientation d in figure 20 . package orientation . 110: up C device is in orientation a in figure 20 . package orientation . 111: reserved tapd tap detect 0: tap event not detected 1: tap event detected dropd drop detect 0: drop event not detected 1: drop event detected shaked shake detect 0: shake event not detected 1: shake event detected table 24 . tilt status register settings
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 44 / 75 ? 201 4 mcube inc. all rights reserved. figure 20 . package orientation figure 21 . package axis reference d i r e c t i o n o f e a r t h g r a v i t y a c c e l e r a t i o n x o u t = - 1 g y o u t = 0 g z o u t = 0 g x o u t = + 1 g y o u t = 0 g z o u t = 0 g x o u t = 0 g y o u t = - 1 g z o u t = 0 g x o u t = 0 g y o u t = + 1 g z o u t = 0 g x o u t = 0 g y o u t = 0 g z o u t = + 1 g x o u t = 0 g y o u t = 0 g z o u t = - 1 g t o p v i e w s i d e v i e w p i n 1 t o p a . b . c . d . e . f . t i l t = l e f t t i l t = r i g h t t i l t = u p t i l t = d o w n t i l t = f r o n t t i l t = b a c k - x + x + y - y + z - z
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 45 / 75 ? 201 4 mcube inc. all rights reserved. 11.3 opstat: operational state st atus register the operational state status register reports which operational state the device is in, either wake or standby as shown in table 25 . operational state status register . addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x04 opstat operational state status register otpa 0 resv 0 0 0 opstat [1] opstat [0] 0x03 r opstat[1:0] sampling state register status, wait state register status 00: reserved 01: device is in wake state 10: reserved 11: device is in standby state, no sampling resv reserved otpa one - time programming (otp) activity status 0: internal memory is idle and the device is ready for use 1: internal memory is active and the device is not yet ready for use table 25 . operational state status register
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 46 / 75 ? 201 4 mcube inc. all rights reserved. 11.4 inten: interrupt ena ble register the interrupt enable register enables or disables interrupts on various motion events. if the corresponding interrupt enable bit is set, a matching event will generate an interrupt transition on the external interrupt pin, intn. to enable the drop interrup t, set the dint control bit in the drop: drop event control register . when an interrupt is triggered, the first i2c access to the device will clear th e external interrupt pin, but the condition (tapd, shaked, dropd) that generated the interrupt will remain held in the tilt: status register until it is read. note that the orientation bit - fields pola and bafr are continuously updated (every sample) in the tilt: status register and are not held. ad dr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x06 inten interrupt enable register shintx shinty shintz gint resv tint plint fbint 0x00 w fbint front / back interrupt 0: disable interrupt on front/back position change 1: enable interrupt on front/back position change plint portrait / landscape interrupt 0: disable interrupt on up/down/left/right position change 1: enable interrupt on up/down/left/right position change tint tap interrupt 0: disable interrupt on tap detection 1: enable interrupt on tap detection resv reserved gint generate interrupt 0: disable automatic interrupt after each measurement 1: enable automatic interrupt after each measurement is updated in xout, yout, or zout. the interrupt occurs for each measurement, not value change. see section 8.3 . shintx shake interrupt, x - axis 0: disable x - axis interrupt, shaked is not set in tilt: status register upon event 1 : enable x - axis interrupt, shaked is set in tilt: status register upon even t shinty shake interrupt, y - axis 0: disable y - axis interrupt, shaked bit is not set in tilt: status register upon event 1 : enable y - axis interrupt, shaked bit is set in tilt: status register upon event shintz shake interrupt, z - axis 0: disable z - axis interrupt, shaked bit is not set in tilt: status register upon event 1 : enable z - axis interrupt, shaked bit is set in tilt: status register upon event table 26 . interrupt enable register settings
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 47 / 75 ? 201 4 mcube inc. all rights reserved. 11.5 mode: register the mode register controls the active operating state of the device. this register can be written from either operational state (standby or wake). addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x07 m ode mode register iah ipp resv * resv * resv * 0 * opcon [1] opcon [0] 0x03 w note*: software must always write a zero 0 to bit 2. bit s 3, 4 and 5 are r eserved. opcon [1:0] 00: reserved set device operational state. wake or standby 01: move to wake state and remain there 10: reserved 11: move to standby state and remain there (standby is the default por state) ipp 0: interrupt pin intn is open drain (default) and requires an external pull - up to avdd. interrupt push pull 1: interrupt pin intn is push - pull. no external pull - up resistor should be installed. iah 0: interrupt pin intn is active low interrupt active high 1: interrupt pin intn is active high table 27 . mode register functionality
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 48 / 75 ? 201 4 mcube inc. all rights reserved. 11.6 tapen: tap detection enable register this register allows individual tap/pulse detection on each axis. setting xda, yda, or zda adds the corresponding axis to tap event detection. see also section 9.6 tap detection . addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x09 tapen tap detection enable register zda yda xda resv resv resv resv resv 0x00 w xda 0: disable tap detection on x - axis 1: enable tap detection on x - axis yda 0: disable tap detection on y - axis 1: enable tap detection on y - axis zda 0: disable tap detection on z - axis 1: enable tap detection on z - axis table 28 . tapen register settings
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 49 / 75 ? 201 4 mcube inc. all rights reserved. 11.7 tapp: tap pulse register this value sets the number of samples for which a tap pulse must exceed the tap_th threshold before it is rejected as not a tap event. if the values detected by the sensor exceed the tap_th threshold for longer than the reject count, no tap event is detect ed and the interrupt is not set. see also section 9.6 tap detection . addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x0a tapp tap pulse register resv resv resv resv tapp [3] tapp [2] tapp [1] tapp [0] 0x00 w tapp [ 3:0] tap detection sample periods (n) description 0x0 1 this tap detection filtering requires the sensed values to exceed the tap_th threshold level for n sample periods. when they have, the sensor will set tapd bit in the tilt: status register . in addition, if the tint tap interrupt is enabled in the inten: interrupt enable register then an interrupt will be generated by the device. 0x1 2 0x2 3 0x3 4 5 n 15 0xf 16 table 29 . tapp tap pulse register settings
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 50 / 75 ? 201 4 mcube inc. all rights reserved. 11.8 drop: drop event con trol register addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x0b drop drop event control register drop_ mode dint resv resv resv drop_ db[2] drop_ db[1] drop_ db[0] 0x00 w drop_d b[2:0] drop debounce 000: 1 drop event 001: 2 adjacent drop events 010: 3 adjacent drop events : 4 n 7 adjacent drop events 111: 8 adjacent drop events drop event debounce value, the number of drop events detected must reach this count for the fin al event to be valid. dint drop interrupt 0: disable drop event interrupt 1: enable drop event interrupt the dropd bit in the tilt: status register will be set upon event occurrence regardless of this bit setting. drop_mode drop mode 0: mode a: drop detection is a summation of all 3 axes: drop is detected when: sum( mag(x) + mag(y) + mag(z) ) < 0.5g drop_th threshold else drop not detected; 1: mode b: drop detection is the logical and of three comparisons: drop is detected when: mag(x) < 0.5g drop_th threshold and mag(y) < 0.5g drop_th threshold and mag(z) < 0.5g drop_th threshold else drop not detected. table 30 . drop event control register settings
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 51 / 75 ? 201 4 mcube inc. all rights reserved. 11.9 shdb: shake debounce register the shake debounce register allows a 1 to 63 event count to be required before a valid shake event is detected or an interrupt is generated. the debounce value applies to all 3 - axes. addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x0c s hdb shake debounce register resv resv shdb [5] shdb [4] shdb [3] shdb [2] shdb [1] shdb [0] 0x00 w shdb[5:0] adjacent shake events (n) description 0x01 1 shake detection debounce filtering requires n adjacent shake detection events in order to trigger a shake event and set the shaked bit in the tilt: status register . in addition, if the shintx, sh inty or shintz bits are set in the inten: interrupt enable register and that event occurs, then an interrupt will be generated by the device. 0x02 2 0x03 3 . 4 n 62 0x3f 63 table 31 . sh_db shake debounce register settings
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 52 / 75 ? 201 4 mcube inc. all rights reserved. 11.10 xout_ex, yout_ex & z out_ex: x, y, z - axis extended accelerometer regist ers t he measurements from sensors for the 3 - axes are written to the registers xout_ex, yout_ex & zout_ex: x, y, z - axis extended accelerometer registers . the most - significant bit of the valu e is the sign bit, and is sign extended to the higher bits. note that all 3 axes are sampled and updated simultaneously. if an i2c burst read operation reads past register address 0x12 the internal address pointer wraps to address 0x03 and the contents o f the tilt: status register are returned. this allows application software to burst read the contents of the six extended registers and relevant device state registers in a single i2c read cycle. once an i2c start bit has been recognized by the sensor, registers will not be updated until an i2c stop bit has occurred. therefore, if software desires to read the low and high byte registers atomically, kno wing that the values have not been changed, it should do so by issuing a start bit, reading one register, then reading the other register then issuing a stop bit. note that all 6 registers may be read in one burst with the same effect. 10 - bit samples occup y bits [9:0], with bits [15:9] occupied by the sign bit. 14 - bit samples occupy bits [13:0], with bits [15:13] occupied by the sign bit. addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x0d x out _ex_l xout extended register xout _ex[7] xout _ex[6] xout _ex[5] xout _ex[4] xout _ex[3] xout _ex[2] xout _ex[1] xout _ex[0] 0x00 r 0x0e xout _ex_h xout extended register xout _ex[15] xout _ex[14] xout _ex[13] xout _ex[12] xout _ex[11] xout _ex[10] xout _ex[9] xout _ex[8] 0x00 r 0x0f yout _ex_l yout extended register yout _ex[7] yout _ex[6] yout _ex[5] yout _ex[4] yout _ex[3] yout _ex[2] yout _ex[1] yout _ex[0] 0x00 r 0x10 yout _ex_h yout extended register yout _ex[15] yout _ex[14] yout _ex[13] yout _ex[12] yout _ex[11] yout _ex[10] yout _ex[9] yout _ex[8] 0x00 r 0x11 zout _ex_l zout extended register zout _ex[7] zout _ex[6] zout _ex[5] zout _ex[4] zout _ex[3] zout _ex[2] zout _ex[1] zout _ex[0] 0x00 r 0x12 zout _ex_h zout extended register zout _ex[15] zout _ex[14] zout _ex[13] zout _ex[12] zout _ex[11] zout _ex[10] zout _ex[9] zout _ex[8] 0x00 r tabl e 32 . extended accelerometer registers
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 53 / 75 ? 201 4 mcube inc. all rights reserved. 11.11 chipid: chip identif ication register this register returns 0x0 2 . addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x18 chipid chip id register 0 0 0 0 0 0 1 0 0x0 2 r
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 54 / 75 ? 201 4 mcube inc. all rights reserved. 11.12 outcfg: output confi guration register t his register can be used to set the resolution of the accelerometer measurements, the maximum g - range and low - pass filter settings for sampling and the bandwidth setting for the gint interrupt. t he lowest 2 bits must be set by software to binary b11. addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x20 outcfg output configuration register irate lpf [2] lpf [1] lpf [0] hires [1] hires [0] 1* 1* 0x03 w note*: s oftware must always write a 1 to bits 0 and 1. hires[1:0] accelerometer g ranges and resolution 00: select +/ - 2g range, 10 - bit resolution 01: select +/ - 4g range, 10 - bit resolution 10: select +/ - 8g range, 10 - bit resolution 11: select +/ - 8g range, 14 - bit reso lution lpf[2:0] low pass filter bandwidth 000: low - pass filter set to 512 hz bandwidth 001: low - pass filter set to 256 hz bandwidth 010: low - pass filter set to 128 hz bandwidth 011: low - pass filter set to 64 hz bandwidth 100: low - pass filter set to 32 hz bandwidth 101: low - pass filter set to 16 hz bandwidth 110: low - pass filter set to 8 hz bandwidth 111: reserved irate gint sample rate trigger 0: gint interrupt updates at sample acquisition rate 1: gint interrupt updates at lpf bandwidth setting determined by lpf[2:0] if irate=1, the gint interrupt will occur at the same rate as the bandwidth setting of the lpf. this prevents extraneous sample acquisition interrupts at a rate greater than the lpf setting. table 33 . outcfg resolution and range select register settings
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 55 / 75 ? 201 4 mcube inc. all rights reserved. 11.13 x - a xis o ffset r egisters this register contains a signed 2s complement 1 4 - bit value applied as an offset adjustment to the output of the sensor values, prior to being sent to the out_ex registers . the power - on - reset value for each chip is unique and is set as part of factory calibration. if necessary, this value can be overwritten by software. note: w hen modifying these r egister s with new gain or offset values, software should perform a read - modif y - write type of access to ensure that unrelated bits do not get changed inadvertently. addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x2 1 xoffl x - offset lsb register xoff[7] xoff[6] xoff[5] xoff[4] xoff[3] xoff[2] xoff[1] xoff[0] per chip w 0x2 2 xoffh x - offset msb register xgain[8] resv xoff[13] xoff[12] xoff[11] xoff[10] xoff[9] xoff[8] per chip w
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 56 / 75 ? 201 4 mcube inc. all rights reserved. 11.14 y - a xis o ffset r egisters this register contains a signed 2s complement 1 4 - bit value applied as an offset adjustment to the output of the sensor values, prior to being sent to the out_ex registers . the power - on - reset value for each chip is unique and is se t as part of factory calibration. if necessary, this value can be overwritten by software. note: when modifying these registers with new gain or offset values, software should perform a read - modify - write type of access to ensure that unrelated bits do not get changed inadvertently. addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x2 3 yoffl y - offset lsb register yoff[7] yoff[6] yoff[5] yoff[4] yoff[3] yoff[2] yoff[1] yoff[0] per chip w 0x2 4 yoffh y - offset msb register ygain[8] resv yoff[13] yoff[12] yoff[11] yoff[10] yoff[9] yoff[8] per chip w
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 57 / 75 ? 201 4 mcube inc. all rights reserved. 11.15 z - a xis o ffset r egisters this register contains a signed 2s complement 1 4 - bit value applied as an offset adjustment to the output of the sensor values, prior to being sent to the out_ex registers . the power - on - reset value for each chip is unique and is set as part of factory calibration. if necessary, this value can be overwritten by software. note: when modifying these registers with new gain or offset values, software should perform a read - modify - write type of access to ensure that unrelated bits do not get changed inadvertently. addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x2 5 zoffl z - offset lsb registe r zoff[7] zoff[6] zoff[5] zoff[4] zoff[3] zoff[2] zoff[1] zoff[0] per chip w 0x2 6 zoffh z - offset msb register zgain[8] resv zoff[13] zoff[12] zoff[11] zoff[10] zoff[9] zoff[8] per chip w
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 58 / 75 ? 201 4 mcube inc. all rights reserved. 11.16 x - a xis g ain r egiste rs the gain value is an unsigned 9 - bit number . note: when modifying these registers with new gain or offset values, software should perform a read - modify - write type of access to ensure that unrelated bits do not get changed inadvertently. addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x2 2 xoffh x - offset msb register xgain[8] resv xoff[13] xoff[12] xoff[11] xoff[10] xoff[9] xoff[8] per chip w 0x2 7 xgain x gain register xgain[7] xgain[6] xgain[5] xgain[4] xgain[3] xgain[2] xgain[1] xgain[0] per chip w
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 59 / 75 ? 201 4 mcube inc. all rights reserved. 11.17 y - a xis g ain r egiste rs the gain value is an unsigned 9 - bit number . note: when modifying these registers with new gain or offset values, software should perform a read - modify - write type of access to ensure that unrelated bits do not get changed inadvertently. addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x2 4 yoffh y - offset msb register ygain[8] resv yoff[13] yoff[12] yoff[11] yoff[10] yoff[9] yoff[8] per chip w 0x2 8 ygain y gain register ygain[7] ygain[6] ygain[5] ygain[4] ygain[3] ygain[2] ygain[1] ygain[0] per chip w
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 60 / 75 ? 201 4 mcube inc. all rights reserved. 11.18 z - a xis g ain r egiste rs the gain value is an unsigned 9 - bit number . note: when modifying these registers with new gain or offset values, software should perform a read - modify - write type of access to ensure that unrelated bits do not get changed inadvertently. addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x2 6 zoffh z - offset msb register zgain[8] resv zoff[13] zoff[12] zoff[11] zoff[10] zoff[9] zoff[8] per chip w 0x2 9 zgain z gain register zgain[7] zgain[6] zgain[5] zgain[4] zgain[3] zgain[2] zgain[1] zgain[0] per chip w
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 61 / 75 ? 201 4 mcube inc. all rights reserved. 11.19 shake_th: shake thre shold register shake_th has a baseline value of 1.3g plus a threshold, shake_th. the shake threshold can range from 0.925g to 1.672g . the value is a n 8 - bit signed 2s complement number. the resolution is approximately 2. 9 mg/bit. see al so section 9.4 shake detection . shake eve nt = ( mag(x) > 1.3g + shake_th ) or ( mag(y) > 1.3g + shake_th ) or ( mag(z) > 1.3g + shake_th ) addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x 2b shake_th shake threshold register signed 2s complement value 0x00 w shake_th[7:0] description ( ~ 2. 9 mg/lsb) 0x80 shake threshold is 0.925 g 0x00 shake threshold is 1.3 g 0x7f shake threshold is 1.672 g table 34 . shake_th threshold register settings
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 62 / 75 ? 201 4 mcube inc. all rights reserved. 11.20 ud_z_th: up/down z a xis threshold regist er the threshold value, ud_z_th[7:0] is an 8 - bit signed 2s complement number that can range from 0.42 5 g to 1.17 2 g , for determination of the pola orientation bits. the resolution is approximately 2. 9 mg/bit. see also section 9.2 portrait/landscape . addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 b it 0 por value r/ w 0x 2c ud_z_th up/down z axis threshold register signed 2s complement value 0x00 w ud_z_th[7:0] description ( ~ 2. 9 mg/lsb) 0x80 up/down z axis threshold is 0.425 g 0x00 up/down z axis threshold is 0.8g 0x7f up/down z axis threshold is 1.172 g table 35 . up/down z - axis threshold register settings
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 63 / 75 ? 201 4 mcube inc. all rights reserved. 11.21 ud_x_th: up/down x a xis threshold regist er this 8 - bit unsigned value is an offset that is added to the magnitude of the x - axis accelerometer measurement. the range of the offset is 0g to 0.7 47 g; the resolution is approximately 2. 9 mg/bit. see also section 9.2 portrait/landscape . increasing this value in conjunction with the rl_y_th: right/left y axis threshold register widens the deadband in portrait /landscape detection. for most applications, the same value should be written to both registers. addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x 2d ud_x_th up/down x axis threshold register unsigned value 0x00 w ud_x_th[7:0] description ( ~ 2. 9 mg/lsb) 0x00 up/down x threshold offset is 0g 0xff up/down x threshold offset is +0.7 47 g table 36 . up/down x - axis threshold register settings
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 64 / 75 ? 201 4 mcube inc. all rights reserved. 11.22 rl_z_th: right/left z axis th reshold register the threshold value, rl_z_th[7:0] is an 8 - bit signed 2s complement number that can range from 0.425g to 1.172g , for determination of the pola orientation bits. the resolution is approximately 2. 9 mg/bit. see also sectio n 9.2 portrait/landscape . addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x 2e rl_z_th right/left z axis threshold register signed 2s complement value 0x00 w rl_z_th[7:0] description ( ~ 2. 9 mg/lsb) 0x80 right/left z axis threshold is 0.425 g 0x00 right/left z axis threshold is 0 .8 g 0x7f right/left z axis threshold is 1.172 g table 37 . right/left z - axis threshold register settings
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 65 / 75 ? 201 4 mcube inc. all rights reserved. 11.23 rl_y_th: right/left y axis threshold reg ister this 8 - bit unsigned value is an offset this is added to the magnitude of the y - axis accelerometer measurement. the range of the offset is 0g to 0.7 47 g; the resolution is approximately 2. 9 mg/bit. see also section 9.2 portrait/landscape . increasing this value in conjunction with the ud_x_th: up/down x axis threshold register widens the dead - band in portrait /landscape detection. for most applications, the same value should be written to both register s. addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x 2 f rl_y_th right/left y axis threshold register unsigned value 0x00 w rl_y_th[7:0] description ( ~ 2. 9 mg/lsb) 0x00 right/left y - axis threshold offset is 0g 0xff right/left y - axis threshold offset is +0.7 47 g table 38 . right/left y - axis threshold register settings
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 66 / 75 ? 201 4 mcube inc. all rights reserved. 11.24 fb_z_th: front/back z axis threshold reg ister the threshold value, fb_z_th[7:0] is an 8 - bit unsigned number that adds up to + 0. 37 3 g to the baseline detection level of 0.17 4 g , in increments of approximately 1.4 6 mg/lsb . increasing the threshold value increases the hysteresis of the front/back detection level. see also section 9.3 front/back . addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x 30 fb_z_th front/back z axis threshold register unsigned value 0x00 w fb_z_th[7:0] description ( ~ 1.4 6 mg/lsb) 0x00 front/back z threshold is 0.17 4 g 0xff front/back z threshold is 0.547g table 39 . front/back z - axis threshold register settings
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 67 / 75 ? 201 4 mcube inc. all rights reserved. 11.25 drop_th: drop thresh old register the threshold value, drop_th[7:0] is an 8 - bit signed 2s complement number that adjusts the drop - detection baseline detection level of 0.5g. see also section 9.5 drop detection . addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x 31 drop_th drop threshold register signed 2s complement value 0x00 w drop_th[7:0] description ( ~ 2. 9 mg/lsb) 0x80 drop threshold is 0.125g 0x00 drop threshold is 0 .5 g 0x7f drop threshold is 0. 872 g table 40 . drop threshold register settings
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 68 / 75 ? 201 4 mcube inc. all rights reserved. 11.26 tap_th: tap threshol d register the threshold value, tap_th[7:0] is an 8 - bit unsigned number that species the threshold detection level for all tap events. this value is not an offset, but a magnitude which determines the minimum level for a valid tap event. the detector is implemented as a 2 nd - order high pass filter. as such, the units are the 2 nd derivative of acceleration, also known as snap. the full range is 0 to 12 snap. the resolution is ~47 millisnap/bit. see also section 9.6 tap detection . addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x 32 tap_th tap threshold register unsigned value 0x00 w tap_th[7:0] description (~47 msnap/lsb) 0x00 tap threshold is 0 snap 0x80 tap threshold is 6 snap 0xff tap threshold is 12 snap table 41 . tap_th tap threshold register settings
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 69 / 75 ? 201 4 mcube inc. all rights reserved. 11.27 pcode: product code this register returns a value specific to the part number of this mcube device, noted below. addr name description bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 por value r/ w 0x3b pcode product code register 0x b8 0x b8 r
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 70 / 75 ? 201 4 mcube inc. all rights reserved. 12 example mc 34 1 0 configuration this section shows an example configuration, for demonstration purposes. the sequences are described as register read and write cycles; the i2c device id and protocol are implied. 12.1 example: shake, tap & drop thresholds demo sequence register data to write comments 1 0x07 0x43 go to standby state, configure intn pin, active low (iah = 0), active drive (ipp = 1) 2 0x06 0x e 4 enable shake interrupt in x,y or z - axis, enable tap interrupt, disable other s 3 0x09 0x40 enable tap detection on y - axis 4 0x0a 0x0 3 tap detected for pulses > tap threshold and for 4 or fewer sample periods 5 0x0b 0x00 set drop mode a, drop debounce set to be 1 drop event, no drop interrupt 6 0x0c 0x1f set shake debounce register to 31 adjacent shake events 7 0x20 0x33 select +/ - 2g range at 10 - bit resolution; lpf bandwidth=64hz; gint updates at sample rate 8 0x2b 0x44 s et shake threshold to be approximately 1 . 5 g (1.3 + 44 x ~ 2.9 mg/lsb ) . 9 0x2c 0x 9 5 set up/down z axis threshold to ~0.5g (~60deg) 11 0x2e 0x 9 5 set right/left z axis threshold to ~ 0.5g (~60deg) 13 0x30 0x 4 0 set front/back z axis threshold to ~ 39deg 14 0x31 0x ab set drop threshold to < ~0.25g 15 0x32 0x64 set tap threshold to ~4.7 snap 1 6 0x07 0x41 go to wake state, enable sampling, configure intn pin, active low (iah = 0), active drive (ipp = 1) table 42 . tap demo register sequence
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 71 / 75 ? 201 4 mcube inc. all rights reserved. to observe the demo: ? write the registers as shown above. ? tap the device in the y - direction ? observe interrupt trigger and tapd tap detection bit ? read tilt: status register to reset the tap interrupt ? tap the device in the x and z directions ? observer no interrupt trigger s ? rotat e the device around in 3d - space ? observe that the up/down/left/right indications trip at a very steep angle (the chip must be tilted a lot in order for unknown to not be indicated by the hardwar e ) ? observe that there is very little hysteresis between the front and back readings
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 72 / 75 ? 201 4 mcube inc. all rights reserved. 13 index of tables table 1. order information ................................ ................................ ................................ ................................ ......... 5 table 2. pin description ................................ ................................ ................................ ................................ .............. 8 table 3. absolute maximum ratings ................................ ................................ ................................ ....................... 12 table 4. sensor characteristics ................................ ................................ ................................ ................................ 13 table 5. electrical characteristics ................................ ................................ ................................ ............................ 14 table 6. i2c elec trical and timing characteristics ................................ ................................ ................................ ... 15 table 7. i2c timing characteristics ................................ ................................ ................................ .......................... 16 table 8. summary of resolution, range, and scaling ................................ ................................ ............................. 17 table 9. operational states ................................ ................................ ................................ ................................ ..... 19 table 10. forcing operational states ................................ ................................ ................................ ...................... 20 table 11. interrupt support ................................ ................................ ................................ ................................ ..... 22 table 12. detection logic event evaluation ................................ ................................ ................................ ............ 24 table 13. portrait/landscape event evaluation criteria ................................ ................................ ......................... 27 table 14. some approximate x and y - axis portrait/landscape evaluation angles and values .............................. 28 table 15. some approximate z - axis portrait/landscape evaluation angles and values ................................ ........ 28 table 16. portrait/landscape tilt: status register assignments ................................ ................................ ........... 29 table 17. bafr bit assignments in the tilt: status register ................................ ................................ .................. 31 table 18. front/back event evaluation ................................ ................................ ................................ ................... 31 table 19. approximate front/back evaluation angles and values ................................ ................................ ......... 31 table 20. shake event evalu ation (baseline + offset) ................................ ................................ ............................ 32 table 21. drop event evaluation ................................ ................................ ................................ ............................. 34 table 22. default tap event evaluation ................................ ................................ ................................ ................... 36 table 23. regis ter summary ................................ ................................ ................................ ................................ .... 42 table 24. tilt status register settings ................................ ................................ ................................ .................... 43 table 25. operational state status register ................................ ................................ ................................ ............ 45 table 26. interrupt enable register settings ................................ ................................ ................................ ........... 46 table 27. mode register functionality ................................ ................................ ................................ .................... 47 table 28. tapen register settings ................................ ................................ ................................ ........................... 48 table 29. tapp tap pulse register settings ................................ ................................ ................................ ............. 49 table 30. drop event control register settings ................................ ................................ ................................ ...... 50 table 3 1. sh_db shake debounce register settings ................................ ................................ .............................. 51
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 73 / 75 ? 201 4 mcube inc. all rights reserved. table 32. extended accelerometer registers ................................ ................................ ................................ .......... 52 table 33. outcfg resolution and range select register settings ................................ ................................ ......... 54 table 34. shake_th threshold register settings ................................ ................................ ................................ ... 61 table 3 5. up/down z - axis threshold register settings ................................ ................................ .......................... 62 table 36. up/down x - axis threshold register settings ................................ ................................ .......................... 63 table 37. right/left z - axis threshold register settings ................................ ................................ .......................... 64 table 38. right/left y - axis threshold register settings ................................ ................................ .......................... 65 table 39. front/back z - axis threshold register settings ................................ ................................ ........................ 66 table 40. drop threshold register settings ................................ ................................ ................................ ............ 67 table 41. tap_th tap threshold register settings ................................ ................................ ................................ . 68 table 42. tap demo register sequence ................................ ................................ ................................ .................. 70
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 74 / 75 ? 201 4 mcube inc. all rights reserved. 14 revision history date revision description 2012 - 0 3 aps - 048 - 00 10 v1 first release. 2012 - 10 aps - 048 - 0010v1. 7 changed device orientation pictures. clarified text in tables, gain registers and footnotes. changed pcode. updated current consumption. 2013 - 03 aps - 048 - 0010v1.8 add tape and reel info. 2013 - 08 aps - 048 - 0010v1.9 added pin numbers to schematic view. 2013 - 10 aps - 048 - 0010v2.0 updates to whitespace. updated current. 2014 - 09 aps - 048 - 0010v2.1 removed i5 from order information. 2014 - 10 aps - 048 - 0010v2.2 updated noise specification. added resistors explicitly to typical application circuit. updated whitespace.
mc 341 0 3 - axis accelerometer datasheet mcube proprietary . aps - 048 - 0010 v2. 2 75 / 75 ? 201 4 mcube inc. all rights reserved. 15 legal 1. m - cube reserves the right to make corrections, modifications, enhancements, improvements and other changes to its products and to this document at any time and discontinue any product without notice. the information contained in this document has been carefully checked and is believed to be accurate. however, m - cube shall assume no responsibilities for inaccuracies and make no commitment to update or to keep current the information contained in this document. 2. m - cube products are designed only for commercial and normal industrial applications and are not suitable for other purpo ses, such as: medical life support equipment; nuclear facilities; critical care equipment; military / aerospace; automotive; security or any other applications, the failure of which could lead to death, personal injury or environmental or property damage. use of the products in unsuitable applications are at the customers own risk and expense. 3. m - cube shall assume no liability for incidental, consequential or special damages or injury that may result from misapplication or improper use of operation of th e product. 4. no license, express or implied, by estoppel or otherwise, to any intellectual property rights of m - cube or any third party is granted under this document. 5. m - cube makes no warranty or representation of non - infringement of intellectual prope rty rights of any third party with respect to the products. m - cube specifically excludes any liability to the customers or any third party regarding infringement of any intellectual property rights, including the patent, copyright, trademark or trade secr et rights of any third party, relating to any combination, machine, or process in which the m - cube products are used. 6. examples of use described herein are provided solely to guide use of m - cube products and merely indicate targeted characteristics, perf ormance and applications of products. m - cube shall assume no responsibility for any intellectual property claims or other problems that may result from applications based on the examples described herein 7. information described in this document including parameters, application circuits and its constants and calculation formulas, programs and control procedures are provided for the purpose of explaining typical operation and usage. typical parameters that may be provided in m - cube data sheets and/or spec ifications can and do vary in different applications and actual performance may vary over time. all operating parameters including typicals, must be validated for each customer application by customers technical experts. in no event shall the informati on described be regarded as a guarantee of conditions or characteristics of the products. therefore, the customer should evaluate the design sufficiently as whole syste m under the consideration of various external or environmental conditions and determine their application at the customers own risk. m - cube shall assume no responsibility or liability for claims, damages, costs and expenses caused by the customer or any third party, owing to the use of the above information. is a trademark of m - cube, inc. m - cube and the m - cube logo are trademarks of m - cube, inc., all other product or service names are the property of their respective owners. ? m - cube, inc. 201 4 . all rights reserved.


▲Up To Search▲   

 
Price & Availability of MC3410

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