Home

ADXL345 (Rev. E)

image

Contents

1. sse 4 10 Rev 0 to Rev A Changes to Features Section and General Description Sectlon esee tette tenente 1 Changes to Specifications Section sss 3 Changes to Table 2 and Table 3 sees 5 Added Package Information Section Figure 2 and Table 4 Renumbered Sequentially sse 5 Changes to Pin 12 Description Table 5 sss 6 Added Typical Performance Characteristics Section 7 Changes to Theory of Operation Section and Power Sequencing SECTION M 12 Changes to Powers Savings Section Table 7 Table 8 Auto Sleep Mode Section and Standby Mode Section 13 Changes to SPI Section Changes to Figure 36 to Figure 38 sse Changes to Table 9 and Table 10 sss Changes to I C Section and Table 11 Changes to Table I2 ep ERREUR Changes to Interrupts Section Activity Section Inactivity Section and FREE FALL Section sss 19 Added Table 13 5 oerte eei eis 19 Changes to FIFO Section sssseeeeeen eene 20 Changes to Self Test Section and Table 15 to Table 18 21 Added Figures 42 and Table 14 sse 21 GChaniges to Table Torarinn iaa ti ERI rev ager 22 Changes to Register 0x1 D THRESH_TAP Read Write Section Register Ox1E Register Ox1F Register 0x20 OFSX OFSY OSXZ Read Write
2. 10 60 50 40 30 20 10 0 60 50 40 30 20 10 0 0 2 0 5 0 8 1 1 1 4 1 7 2 0 SELF TEST RESPONSE 9 Figure 28 X Axis Self Test Response at 25 C Vs 2 5 V 0 2 0 5 0 8 1 1 1 4 1 7 2 0 SELF TEST RESPONSE 9 Figure 29 Y Axis Self Test Response at 25 C Vs 2 5 V 0 3 0 9 1 5 2 1 2 7 3 3 SELF TEST RESPONSE 9 Figure 30 Z Axis Self Test Response at 25 C Vs 2 5 V 07925 228 07925 229 07925 230 PERCENT OF POPULATION Figure 31 Current Consumption at 25 C 100 Hz Output Data Rate Vs 2 5 V CURRENT CONSUMPTION pA 25 N e a E eo a 100 110 120 130 140 150 160 170 180 190 200 CURRENT CONSUMPTION pA 160 140 120 100 80 60 40 20 1 60 3 12 6 25 12 50 25 50 100 200 400 800 1600 3200 OUTPUT DATA RATE Hz 07925 231 07925 232 Figure 32 Current Consumption vs Output Data Rate at 25 C 10 Parts SUPPLY CURRENT pA Rev E Page 12 of 40 Vs 2 5V 200 150 100 50 0 2 0 2 4 2 8 3 2 SUPPLY VOLTAGE V Figure 33 Supply Current vs Supply Voltage Vs at 25 C 3 6 0792
3. TEMPERATURE ts PREHEAT RAMP DOWN t25 C TO PEAK TIME 07925 014 CRITICAL ZONE T TO Tp 07925 015 Figure 60 Recommended Soldering Profile Table 24 Recommended Soldering Profile Profile Feature Condition Sn63 Pb37 Pb Free Average Ramp Rate from Liquid Temperature Ti to Peak Temperature Tp Preheat Minimum Temperature Tsmin Maximum Temperature Tsmax Time from Tsmin to Tsmax ts Tsmax to T Ramp Up Rate Liquid Temperature Ti Time Maintained AboveT ti Peak Temperature Tp Time of Actual Tp 5 C te Ramp Down Rate Time 25 C to Peak Temperature 3 C sec maximum 100 C 150 C 60 sec to 120 sec 3 C sec maximum 183 C 60 sec to 150 sec 240 0 5 C 10 sec to 30 sec 6 C sec maximum 6 minutes maximum 3 C sec maximum 150 C 200 C 60 sec to 180 sec 3 C sec maximum 217 C 60 sec to 150 sec 260 0 5 C 20 sec to 40 sec 6 C sec maximum 8 minutes maximum 1 Based on JEDEC Standard J STD 020D 1 For best results the soldering profile should be in accordance with the recommendations of the manufacturer of the solder paste used Rev E Page 36 of 40 OUTLINE DIMENSIONS PAD A1 F Bsc CORNER Mad m 0 813 x 0 50 0 80 BSC BSC 0 50 y ME 1 01 1 00 om MT 0 95 END VIEW poo 1 50 0 85 0 69 Epl SEATING i PLANE 3 8 Figure 61 1
4. 0 10 0 05 0000 23 Output Data Rate Hz Bandwidth Hz Rate Code Ip pA 400 200 1100 90 200 100 1011 60 100 50 1010 50 50 25 1001 45 25 12 5 1000 40 12 5 6 25 0111 34 Auto Sleep Mode Additional power can be saved if the ADXL345 automatically switches to sleep mode during periods of inactivity To enable this feature set the THRESH INACT register Address 0x25 and the TIME INACT register Address 0x26 each to a value that signifies inactivity the appropriate value depends on the application and then set the AUTO SLEEP bit Bit D4 and the link bit Bit D5 in the POWER CTL register Address 0x2D Current consumption at the sub 12 5 Hz data rates that are used in this mode is typically 23 uA for a Vs of 2 5 V Standby Mode For even lower power operation standby mode can be used In standby mode current consumption is reduced to 0 1 uA typical In this mode no measurements are made Enter standby mode by clearing the measure bit Bit D3 in the POWER CTL register Address 0x2D Placing the device into standby mode preserves the contents of FIFO Rev E Page 14 of 40 SERIAL COMMUNICATIONS TC and SPI digital communications are available In both cases the ADXL345 operates as a slave C mode is enabled if the CS pin is tied high to Vppyo The cs pin should always be tied high to Vono or be driven by an external controller because there is no default mode if the CS pin is left unconnected Therefore
5. Section Register 0x21 DUR Read Write Section Register 0x22 Latent Read Write Section and Register 0x23 Window Read Write Section 23 Changes to ACT_X Enable Bits and INACT_X Enable Bit Section Register 0x28 THRESH FF Read Write Section Register 0x29 TIME FF Read Write Section Asleep Bit Section and AUTO SLEEP Bit Section Changes to Sleep Bit Section sse Changes to Power Supply Decoupling Section Mechanical Considerations for Mounting Section and Tap Detection Neap M 27 Changes to Threshold Section sss 28 Changes to Sleep Mode vs Low Power Mode Section 29 Added Offset Calibration Section sss 29 Changes to Using Self Test Section sss 30 Added Data Formatting of Upper Data Rates Section Figure 48 and Figure 495 diana eie REO Re ei RR EVEN 31 Added Noise Performance Section Figure 50 to Figure 52 and Operation at Voltages Other Than 2 5 V Section 32 Added Offset Performance at Lowest Data Rates Section and Figure 55 to Figure 55 iosciseiuio dene eiie eren 33 6 09 Revision 0 Initial Version Rev E Page 3 of 40 SPECIFICATIONS Ta 25 C Vs 2 5 V Vopuo 1 8 V acceleration 0 g Cs 10 uF tantalum Cyo 0 1 uF output data rate ODR 800 Hz unless otherwise noted All minimum and maximum specifications are guaranteed Typical specifications are not guarant
6. 0 50 100 ZERO g OFFSET mg Figure 5 Y Axis Zero g Offset at 25 C Vs 2 5 V 150 PERCENT OF POPULATION S 2 0 150 100 50 0 50 100 ZERO g OFFSET mg Figure 6 Z Axis Zero g Offset at 25 C Vs 2 5V 150 07925 204 07925 205 07925 206 Rev E Page 8 of 40 PERCENT OF POPULATION 96 PERCENT OF POPULATION PERCENT OF POPULATION 2 0 150 100 50 0 50 100 ZERO g OFFSET mg Figure 7 X Axis Zero g Offset at 25 C Vs 3 3 V 150 2 0 150 100 50 0 50 100 ZERO g OFFSET mg Figure 8 Y Axis Zero g Offset at 25 C Vs 3 3 V 150 2 0 150 100 50 0 50 100 ZERO g OFFSET mg Figure 9 Z Axis Zero g Offset at 25 C Vs 3 3 V 150 07925 207 07925 208 07925 209 30 nN a N eo a A o PERCENT OF POPULATION 0 2 0 1 5 10
7. 0x32 through Register 0x37 All data except that for the 16 g range must be clipped to avoid rollover SELF_TEST Bit A setting of 1 in the SELF_TEST bit applies a self test force to the sensor causing a shift in the output data A value of 0 disables the self test force SPI Bit A value of 1 in the SPI bit sets the device to 3 wire SPI mode and a value of 0 sets the device to 4 wire SPI mode Rev E Page 26 of 40 INT_INVERT Bit A value of 0 in the INT_INVERT bit sets the interrupts to active high and a value of 1 sets the interrupts to active low FULL_RES Bit When this bit is set to a value of 1 the device is in full resolution mode where the output resolution increases with the g range set by the range bits to maintain a 4 mg LSB scale factor When the FULL_RES bit is set to 0 the device is in 10 bit mode and the range bits determine the maximum g range and scale factor Justify Bit A setting of 1 in the justify bit selects left justified MSB mode and a setting of 0 selects right justified mode with sign extension Range Bits These bits set the g range as described in Table 21 Table 21 g Range Setting Table 22 FIFO Modes Setting D7 D6 Mode Function 0 0 Bypass FIFO is bypassed 0 1 FIFO FIFO collects up to 32 values and then stops collecting data collecting new data only when FIFO is not full 1 0 Stream FIFO holds the last 32 data values When FIFO is full the oldest
8. 19 of 40 ADXL345 INTERRUPTS The ADXL345 provides two output pins for driving interrupts INT1 and INT2 Both interrupt pins are push pull low impedance pins with output specifications shown in Table 13 The default configuration of the interrupt pins is active high This can be changed to active low by setting the INT_INVERT bit in the DATA_FORMAT Address 0x31 register All functions can be used simultaneously with the only limiting feature being that some functions may need to share interrupt pins Interrupts are enabled by setting the appropriate bit in the INT_ENABLE register Address 0x2E and are mapped to either the INT1 pin or the INT2 pin based on the contents of the INT_MAP register Address 0x2F When initially configuring the interrupt pins it is recommended that the functions and interrupt mapping be done before enabling the interrupts When changing the configuration of an interrupt it is recommended that the interrupt be disabled first by clearing the bit corresponding to that function in the INT_ENABLE register and then the function be reconfigured before enabling the interrupt again Configuration of the functions while the interrupts are disabled helps to prevent the accidental generation of an interrupt before desired The interrupt functions are latched and cleared by either reading the data registers Address 0x32 to Address 0x37 until the interrupt condition is no longer valid for the data related interrupts or b
9. 8 for details The default value is 0x0A which translates to a 100 Hz output data rate An output data rate should be selected that is appropriate for the communication protocol and frequency selected Selecting too high of an output data rate with a low communication speed results in samples being discarded Register Ox2D POWER_CTL Read Write D7 D6 D5 D4 D3 D2 D1 DO 0 0 Link AUTO SLEEP Measure Sleep Wakeup D7 D6 DS D4 D3 D2 D1 DO 0 0 0 0 Suppress TAP X TAP Y TAP Z enable enable enable Suppress Bit Setting the suppress bit suppresses double tap detection if acceleration greater than the value in THRESH_TAP is present between taps See the Tap Detection section for more details TAP xEnable Bits A setting of 1 in the TAP_X enable TAP_Y enable or TAP Z enable bit enables x y or z axis participation in tap detection A setting of 0 excludes the selected axis from participation in tap detection Register Ox2B ACT TAP STATUS Read Only D7 D6 D5 D4 D3 D2 D1 DO 0 ACT_X ACT_Y ACT_Z Asleep TAP_X TAP_Y TAP_Z source source source source source source ACT_x Source and TAP x Source Bits These bits indicate the first axis involved in a tap or activity event A setting of 1 corresponds to involvement in the event and a setting of 0 corresponds to no involvement When new da
10. ADXL345 POWER SAVINGS Power Modes The ADXL345 automatically modulates its power consumption in proportion to its output data rate as outlined in Table 7 If additional power savings is desired a lower power mode is available In this mode the internal sampling rate is reduced allowing for power savings in the 12 5 Hz to 400 Hz data rate range at the expense of slightly greater noise To enter low power mode set the LOW_POWER bit Bit 4 in the BW_RATE register Address 0x2C Table 8 shows the current consumption in low power mode for cases where there is an advantage to using low power mode Use of low power mode for a data rate not shown in Table 8 does not provide any advantage over the same data rate in normal power mode Therefore it is recommended that only data rates shown in Table 8 be used in low power mode The current consumption values shown in Table 7 and Table 8 are for a Vs of 2 5 V Table 7 Typical Current Consumption vs Data Rate T4 25 C Vs 2 5 V Vppyo 1 8 V Table 8 Typical Current Consumption vs Data Rate Low Power Mode T 25 C Vs 2 5 V Vono 1 8 V Output Data Rate Hz Bandwidth Hz Rate Code loo MA 3200 1600 1111 140 1600 800 1110 90 800 400 1101 140 400 200 1100 140 200 100 1011 140 100 50 1010 140 50 25 1001 90 25 12 5 1000 60 12 5 6 25 0111 50 6 25 3 13 0110 45 3 13 1 56 0101 40 1 56 0 78 0100 34 0 78 0 39 0011 23 0 39 0 20 0010 23 0 20 0 10 0001 23
11. DATA NE Figure 38 SPI 4 Wire Read lserup a thop e lspo snio SEM GELD TR Cw om ee eee V JD J v Y ADDRESS BITS DATA BITS SDO NOTES 1 tspo IS ONLY PRESENT DURING READS 07925 019 Figure 39 SPI 3 Wire Read Write Rev E Page 16 of 40 Table 9 SPI Digital Input Output Limit Parameter Test Conditions Min Max Unit Digital Input Low Level Input Voltage Vii 0 3 X Vop vo V High Level Input Voltage Vin 0 7 X VoD vo V Low Level Input Current li Vin VoD yo 0 1 uA High Level Input Current liu Vi 0V 0 1 uA Digital Output Low Level Output Voltage VoL lo 10 mA 0 2 X Vopvo V High Level Output Voltage Vou lou 4 mA 0 8 X Vppvo V Low Level Output Current loi Vor VoL max 10 mA High Level Output Current lou Vou Vou min 4 mA Pin Capacitance fin 1 MHz Vin 2 5 V 8 pF Limits based on characterization results not production tested Table 10 SPI Timing Ta 25 C Vs 2 5 V Vppyo 1 8 V Limit Parameter Min Max Unit Description fsax 5 MHz SPI clock frequency tscik 200 ns 1 SPI clock frequency mark space ratio for the SCLK input is 40 60 to 60 40 tpELAY 5 ns CS falling edge to SCLK falling edge tauiet 5 ns SCLK rising edge to CS rising edge tpis 10 ns CS rising edge to SDO disabled tcspis 150 ns CS deassertion between SPI communications ts 0 3 x tsax ns SCLK low pulse width space tm 0 3 x tsax ns SCLK high pulse width mark tsetup 5 ns SD
12. DUR register resulting in an invalid double tap at the end of the DUR time limit for the second tap event also shown in Figure 48 INVALIDATES DOUBLE TAP AT START OF WINDOW roa iat TIME dac Hi H e FOR TAP rl pt DUR TIME LIMIT gt POUR S LATENCY TIME WINDOW FOR i TIME SECOND TAP WINDOW LATENT FOR TAPS DUR I TIME Limit gt Xui gw INVALIDATES DOUBLE TAP AT END OF DUR 07925 039 Figure 48 Tap Interrupt Function with Invalid Double Taps Single taps double taps or both can be detected by setting the respective bits in the INT ENABLE register Address Ox2E Control over participation of each of the three axes in single tap double tap detection is exerted by setting the appropriate bits in the TAP AXES register Address 0x2A For the double tap function to operate both the latent and window registers must be set to a nonzero value Every mechanical system has somewhat different single tap double tap responses based on the mechanical characteristics of the system Therefore some experimentation with values for the DUR latent window and THRESH_TAP registers is required In general a good starting point is to set the DUR register to a value greater than 0x10 10 ms the latent register to a value greater than 0x10 20 ms the window register to a value greater than 0x40 80 ms and the THRESH_TAP register to a value greater than 0x30 3 g Setting a very low value in the
13. Fall time is measured as the transition time from Vou min to Vo max Of the interrupt pin Rev E Page 20 of 40 Overrun The overrun bit is set when new data replaces unread data The precise operation of the overrun function depends on the FIFO mode In bypass mode the overrun bit is set when new data replaces unread data in the DATAX DATAY and DATAZ registers Address 0x32 to Address 0x37 In all other modes the overrun bit is set when FIFO is filled The overrun bit is automatically cleared when the contents of FIFO are read FIFO The ADXL345 contains technology for an embedded memory management system with 32 level FIFO that can be used to minimize host processor burden This buffer has four modes bypass FIFO stream and trigger see FIFO Modes Each mode is selected by the settings of the FIFO_MODE bits Bits D7 D6 in the FIFO_CTL register Address 0x38 Bypass Mode In bypass mode FIFO is not operational and therefore remains empty FIFO Mode In FIFO mode data from measurements of the x y and z axes are stored in FIFO When the number of samples in FIFO equals the level specified in the samples bits of the FIFO_CTL register Address 0x38 the watermark interrupt is set FIFO continues accumulating samples until it is full 32 samples from measurements of the x y and z axes and then stops collecting data After FIFO stops collecting data the device continues to operate therefore features such a
14. LATENT o LT a l SINGLE TAP DOUBLE TAP Es l INTERRUPT INTERRUPT 8 E a z Figure 46 Tap Interrupt Function with Valid Single and Double Taps If only the single tap function is in use the single tap interrupt is triggered when the acceleration goes below the threshold as long as DUR has not been exceeded If both single and double tap functions are in use the single tap interrupt is triggered when the double tap event has been either validated or invalidated Rev E Page 28 of 40 Several events can occur to invalidate the second tap of a double tap event First if the suppress bit in the TAP_AXES register Address 0x2A is set any acceleration spike above the threshold during the latency time set by the latent register invalidates the double tap detection as shown in Figure 47 INVALIDATES DOUBLE TAP IF SUPRESS BIT SET i I l TIME LIMIT FOR TAPS LATENCY TIME WINDOW FOR SECOND 2 DUR TIME LATENT TAP WINDOW 2 Figure 47 Double Tap Event Invalid Due to High g Event When the Suppress Bit Is Set A double tap event can also be invalidated if acceleration above the threshold is detected at the start of the time window for the second tap set by the window register This results in an invalid double tap at the start of this window as shown in Figure 48 Additionally a double tap event can be invalidated if an accel eration exceeds the time limit for taps set by the
15. Lower Data Rates Normalized to 100 Hz Output Data Rate Vs 2 5 V 140 120 e eo 0 10Hz 0 20Hz 0 39Hz 0 78Hz 1 56Hz 3 13Hz NORMALIZED OUTPUT LSB 25 35 45 55 65 75 85 TEMPERATURE C 07925 058 Figure 56 Typical Z Axis Output vs Temperature at Lower Data Rates Normalized to 100 Hz Output Data Rate Vs 2 5 V Rev E Page 34 of 40 ADXL345 AXES OF ACCELERATION SENSITIVITY Az Ay 07925 021 Ax Figure 57 Axes of Acceleration Sensitivity Corresponding Output Voltage Increases When Accelerated Along the Sensitive Axis Xour 19 Your 0g Zour 0g LJ TOP GRAVITY Xour 0g 5 li Xour 09 Your 19 o o Your 19 Zour 0g E T Zout 0g dOL LJ Xour 19 Your 0g Zour 0g Xour 0g Xour 0g g Your 0g Your 0g 2 Zout 19 Zout 19 Figure 58 Output Response vs Orientation to Gravity Rev E Page 35 of 40 LAYOUT AND DESIGN RECOMMENDATIONS Figure 59 shows the recommended printed wiring board land pattern Figure 60and Table 24 provide details about the recommended soldering profile lt 3 3400 gt 1 0500 e A i 1 0 5500 1 j 1 y 0 2500 3 0500 oma zn 5 3400 0 2500 1 1450 j Figure 59 Recommended Printed Wiring Board Land Pattern Dimensions shown in millimeters RAMP UP
16. Sleep mode suppresses DATA READY stops transmission of data to FIFO and switches the sampling rate to one specified by the wakeup bits In sleep mode only the activity function can be used When the DATA READY interrupt is suppressed the output data registers Register 0x32 to Register 0x37 are still updated at the sampling rate set by the wakeup bits D1 D0 When clearing the sleep bit it is recommended that the part be placed into standby mode and then set back to measurement mode with a subsequent write This is done to ensure that the device is properly biased if sleep mode is manually disabled otherwise the first few samples of data after the sleep bit is cleared may have additional noise especially if the device was asleep when the bit was cleared Wakeup Bits These bits control the frequency of readings in sleep mode as described in Table 20 Table 20 Frequency of Readings in Sleep Mode Register OX2E INT ENABLE Read Write D7 D6 D5 D4 DATA_READY SINGLE_TAP DOUBLE_TAP Activity D3 D2 D1 DO Inactivity FREE_FALL Watermark Overrun Setting bits in this register to a value of 1 enables their respective functions to generate interrupts whereas a value of 0 prevents the functions from generating interrupts The DATA_READY watermark and overrun bits enable only the interrupt output the functions are always enabled It is recommended that interrupts be configured before enabling their outputs
17. Vit 0 3 x Vop vo V High Level Input Voltage Vin 0 7 X VoD o V Low Level Input Current li Vin Voo 1 0 0 1 yA High Level Input Current liu Vi 2 OV 0 1 yA Digital Output Low Level Output Voltage VoL Vooo lt 2V lo 3 mA 0 2 x Voo o V Vooo 2 V lo 3 mA 400 mV Low Level Output Current loi Vor VoL max 3 mA Pin Capacitance fiw 1 MHz Vin 2 5 V 8 pF Limits based on characterization results not production tested SINGLE BYTE WRITE MASTER START SLAVE ADDRESS WRITE REGISTER ADDRESS DATA STOP SLAVE ACK ACK ACK MULTIPLE BYTE WRITE MASTER START SLAVE ADDRESS WRITE REGISTER ADDRESS DATA DATA STOP SLAVE ACK ACK ACK ACK SINGLE BYTE READ MASTER START SLAVE ADDRESS WRITE REGISTER ADDRESS START SLAVE ADDRESS READ NACK STOP SLAVE ACK ACK ACK DATA MULTIPLE BYTE READ MASTER START SLAVE ADDRESS WRITE REGISTER ADDRESS START SLAVE ADDRESS READ ACK NACK STOP SLAVE ACK ACK ACK DATA DATA NOTES 1 THIS START IS EITHER A RESTART OR A STOP FOLLOWED BY A START 2 THE SHADED AREAS REPRESENT WHEN THE DEVICE IS LISTENING 07925 033 Figure 41 PC Device Addressing Rev E Page 18 of 40 Table 12 C Timing Ta 25 C Vs 2 5 V Vppyo 1 8 V Limit Parameter Min Max Unit Description fsa 400 kHz SCL clock frequency ti 2 5 us SCL cycle time t 0 6 us tuu SCL high time t3 1 3 us tiow SCL low time t4 0 6 us t o sta Start repeated start condition hold time ts 100 ns tsu par d
18. Vpp vo SDA SDI SDIO GND SDO ALT ADDRESS RESERVED RESERVED GND NC GND INT2 Vs INT1 NOTES 07925 002 1 NC NO INTERNAL CONNECTION Figure 3 Pin Configuration Top View Pin No Mnemonic Description 1 Vpp vo Digital Interface Supply Voltage 2 GND This pin must be connected to ground 3 RESERVED Reserved This pin must be connected to Vs or left open 4 GND This pin must be connected to ground 5 GND This pin must be connected to ground 6 Vs Supply Voltage 7 cs Chip Select 8 INT1 Interrupt 1 Output 9 INT2 Interrupt 2 Output 10 NC Not Internally Connected 11 RESERVED Reserved This pin must be connected to ground or left open 12 SDO ALT ADDRESS Serial Data Output SPI 4 Wire Alternate I C Address Select I C 13 SDA SDI SDIO Serial Data PC Serial Data Input SPI 4 Wire Serial Data Input and Output SPI 3 Wire 14 SCL SCLK Serial Communications Clock SCL is the clock for IC and SCLK is the clock for SPI Rev E Page 7 of 40 TYPICAL PERFORMANCE CHARACTERISTICS PERCENT OF POPULATION a 2 0 150 100 50 0 50 100 ZERO g OFFSET mg Figure 4 X Axis Zero g Offset at 25 C Vs 2 5 V 150 PERCENT OF POPULATION a 2 0 150 100 50
19. Y Axis Sensitivity vs Temperature Eight Parts Soldered to PCB Vs 2 5 V Full Resolution 40 20 0 20 40 60 80 100 120 TEMPERATURE C Figure 24 Z Axis Sensitivity vs Temperature Eight Parts Soldered to PCB Vs 2 5 V Full Resolution SENSITIVITY LSB g 07925 222 SENSITIVITY LSB g 07925 223 SENSITIVITY LSB g 07925 224 Rev E Page 11 of 40 280 275 270 265 260 255 250 245 240 235 230 40 20 0 20 40 60 80 100 120 280 275 270 265 260 255 250 245 240 235 230 TEMPERATURE C Figure 25 X Axis Sensitivity vs Temperature Eight Parts Soldered to PCB Vs 3 3 V Full Resolution 40 20 0 20 40 60 80 100 120 280 275 270 265 260 255 250 245 240 235 230 TEMPERATURE C Figure 26 Y Axis Sensitivity vs Temperature Eight Parts Soldered to PCB Vs 3 3 V Full Resolution 40 20 0 20 40 60 80 100 120 TEMPERATURE C Figure 27 Z Axis Sensitivity vs Temperature Eight Parts Soldered to PCB Vs 3 3 V Full Resolution 07925 225 07925 226 07925 227 PERCENT OF POPULATION T PERCENT OF POPULATION m PERCENT OF POPULATION i 60 50 40 30 20
20. at the 100 Hz data rate For data rates less than 100 Hz it is recommended that at least 10 samples be averaged together These values are stored as Xog Yog and Zg for the 0 g measurements on the x and y axis and the 1 g measurement on the z axis respectively The values measured for Xog and Yog correspond to the x and y axis offset and compensation is done by subtracting those values from the output of the accelerometer to obtain the actual acceleration XAcrUAL XMzAs Xog Yacruat Yuras Yog Because the z axis measurement was done in a 1 g field a no turn or single point calibration scheme assumes an ideal sensitivity Sz for the z axis This is subtracted from Z to attain the z axis offset which is then subtracted from future measured values to obtain the actual value Zog Zug Sz ZactuaL ZMEAS Zog The ADXL345 can automatically compensate the output for offset by using the offset registers Register Ox1E Register Ox1E and Register 0x20 These registers contain an 8 bit twos complement value that is automatically added to all measured acceleration values and the result is then placed into the DATA registers Because the value placed in an offset register is additive a negative value is placed into the register to eliminate a positive offset and vice versa for a negative offset The register has a scale factor of 15 6 mg LSB and is independent of the selected g range As an example assume that the ADX
21. data is overwritten with newer data 1 1 Trigger When triggered by the trigger bit FIFO holds the last data samples before the trigger event and then continues to collect data until full New data is collected only when FIFO is not full Setting D1 DO g Range 0 0 2g 0 1 4g 1 0 89 1 1 16g Register 0x32 to Register 0x37 DATAXO DATAX1 DATAYO DATAY1 DATAZO DATAZ1 Read Only These six bytes Register 0x32 to Register 0x37 are eight bits each and hold the output data for each axis Register 0x32 and Register 0x33 hold the output data for the x axis Register 0x34 and Register 0x35 hold the output data for the y axis and Register 0x36 and Register 0x37 hold the output data for the z axis The output data is twos complement with DATAxO as the least significant byte and DATAx as the most significant byte where x represent X Y or Z The DATA FORMAT register Address 0x31 controls the format of the data It is recommended that a multiple byte read of all registers be performed to prevent a change in data between reads of sequential registers Register 0x38 FIFO CTL Read Write Trigger Bit A value of 0 in the trigger bit links the trigger event of trigger mode to INTI and a value of 1 links the trigger event to INT2 Samples Bits The function of these bits depends on the FIFO mode selected see Table 23 Entering a value of 0 in the samples bits immediately sets the watermark sta
22. latent window or THRESH TAP register may result in an unpredictable response due to the accelerometer picking up echoes of the tap inputs After a tap interrupt has been received the first axis to exceed the THRESH_TAP level is reported in the ACT TAP STATUS register Address 0x2B This register is never cleared but is overwritten with new data THRESHOLD The lower output data rates are achieved by decimating a common sampling frequency inside the device The activity free fall and single tap double tap detection functions without improved tap enabled are performed using undecimated data Because the bandwidth of the output data varies with the data rate and is lower than the bandwidth of the undecimated data the high frequency and high g data that is used to determine activity free fall and single tap double tap events may not be present if the output of the accelerometer is examined This may result in functions triggering when acceleration data does not appear to meet the conditions set by the user for the corresponding function LINK MODE The function of the link bit is to reduce the number of activity interrupts that the processor must service by setting the device to look for activity only after inactivity For proper operation of this feature the processor must still respond to the activity and inactivity interrupts by reading the INT SOURCE register Address 0x30 and therefore clearing the interrupts If an activity
23. not taking these precautions may result in an inability to communicate with the part In SPI mode the CS pin is controlled by the bus master In both SPI and C modes of operation data transmitted from the ADXL345 to the master device should be ignored during writes to the ADXL345 SPI For SPI either 3 or 4 wire configuration is possible as shown in the connection diagrams in Figure 34 and Figure 35 Clearing the SPI bit Bit D6 in the DATA FORMAT register Address 0x31 selects 4 wire mode whereas setting the SPI bit selects 3 wire mode The maximum SPI clock speed is 5 MHz with 100 pF maximum loading and the timing scheme follows clock polarity CPOL 1 and clock phase CPHA 1 If power is applied to the ADXL345 before the clock polarity and phase of the host processor are configured the CS pin should be brought high before changing the clock polarity and phase When using 3 wire SPI it is recommended that the SDO pin be either pulled up to Vppyo or pulled down to GND via a 10 kQ resistor ADXL345 PROCESSOR 07925 004 07925 003 Figure 35 4 Wire SPI Connection Diagram CS is the serial port enable line and is controlled by the SPI master This line must go low at the start of a transmission and high at the end of a transmission as shown in Figure 37 SCLK is the serial port clock and is supplied by the SPI master SCLK should idle high during a period of no transmission SDI and SDO are the serial data input and
24. not access 0x1D 29 THRESH_TAP R W 00000000 Tap threshold Ox1E 30 OFSX R W 00000000 X axis offset Ox1F 31 OFSY R W 00000000 Y axis offset 0x20 32 OFSZ R W 00000000 Z axis offset 0x21 33 DUR R W 00000000 Tap duration 0x22 34 Latent R W 00000000 Tap latency 0x23 35 Window R W 00000000 Tap window 0x24 36 THRESH ACT R W 00000000 Activity threshold 0x25 37 THRESH INACT R W 00000000 Inactivity threshold 0x26 38 TIME INACT R W 00000000 Inactivity time 0x27 39 ACT_INACT_CTL R W 00000000 Axis enable control for activity and inactivity detection 0x28 40 THRESH_FF R W 00000000 Free fall threshold 0x29 41 TIME FF R W 00000000 Free fall time Ox2A 42 TAP_AXES R W 00000000 Axis control for single tap double tap Ox2B 43 ACT TAP STATUS R 00000000 Source of single tap double tap Ox2C 44 BW RATE R W 00001010 Data rate and power mode control Ox2D 45 POWER CTL R W 00000000 Power saving features control Ox2E 46 INT_ENABLE R W 00000000 Interrupt enable control Ox2F 47 INT MAP R W 00000000 Interrupt mapping control 0x30 48 INT SOURCE R 00000010 Source of interrupts 0x31 49 DATA FORMAT R W 00000000 Data format control 0x32 50 DATAXO R 00000000 X Axis Data 0 0x33 51 DATAX1 R 00000000 X Axis Data 1 0x34 52 DATAYO R 00000000 Y Axis Data 0 0x35 53 DATAY1 R 00000000 Y Axis Data 1 0x36 54 DATAZO R 00000000 Z Axis Data 0 0x37 55 DATAZ1 R 00000000 Z Axis Data 1 0x38 56 FIFO_CTL R W 00000000 FIFO control 0x39 57 FIFO_STATUS R 00000000 FIFO status Rev E Pag
25. or other rights of third parties that may result from its use Specifications subject to change without notice No license is granted by implication or otherwise under any patent or patent rights of Analog Devices Trademarks and registered trademarks are the property of their respective owners DIGITAL FILTER INTERRUPT CONTROL Q INT1 AND O INT2 SDA SDI SDIO O SDO ALT ADDRESS 9 SCL SCLK O 07925 001 One Technology Way P O Box 9106 Norwood MA 02062 9106 U S A Tel 781 329 4700 2009 2015 Analog Devices Inc All rights reserved Technical Support www analog com TABLE OF CONTENTS F dtUres eter e RR ER DIES 1 Self Test se enne ad Applications eet den eene ee ene 1 Register Map nnne ad General Description rettet eie biet 1 Register Definitions eene x Functional Block DEReuioenoitava MH MERERI 1 Applications Information eerte 28 Revision History ce RR TR TORRR TERREA YRERRER HUS 3 Power Supply Decoupling eicugeceteeatatore testet 28 Specifications oco te RUE ERU 4 Mechanical Considerations for Mounting 28 Absolute Maximum Ratings T p Det ctiOmus i eee ne ie rit denim 28 MLR Al Raster estt c Threshold e eee RUMBO EE 29 Package Information 6 Link Mode RE T e DR INIHI 29 DOS e c DM MM EM 6 Sleep Modevs Lowe Powet Mod s usen MUI S Pin Configuration and Function Descriptions 7 Offset Calibration re ER 30 Typical Performance Chara
26. typically higher than on the x axis and y axis therefore while they change roughly the same in percentage over supply voltage the magnitude of change on the z axis is greater than the magnitude of change on the x axis and y axis 5 0 45 X AXIS LOW POWER Y AXIS LOW POWER 4 9 777 Z AXIS LOW POWER a X AXIS NORMAL POWER s Y AXIS NORMAL POWER E 3 5 Z AXIS NORMAL POWER a 4 3 0 W O 25 o z e 2 0 m E 15 o 1 0 0 5 0 3 13 6 25 12 50 25 50 100 200 400 800 1600 3200 OUTPUT DATA RATE Hz 07925 250 Figure 51 Noise vs Output Data Rate for Normal and Low Power Modes Full Resolution 256 LSB g 10k 9 1k z o E E W a z 3 100 E 10 z 0 01 0 1 1 10 100 1k 10k amp AVERAGING PERIOD 1 s g Figure 52 Root Allan Deviation 130 e eo eo eo PERCENTAGE OF NORMALIZED NOISE E e 70 2 0 2 2 2 4 2 6 2 8 3 0 3 2 3 4 3 6 SUPPLY VOLTAGE Vs V 07925 252 Figure 53 Normalized Noise vs Supply Voltage Vs OPERATION AT VOLTAGES OTHER THAN 2 5 V The ADXL345 is tested and specified at a supply voltage of Vs 2 5 V however it can be powered with Vs as high as 3 6 V or as low as 2 0 V Some performance parameters change as the supply voltage changes offset sensitivity noise self test and supply current Due to slight changes in the electrostatic forces
27. 0 5 0 0 5 1 0 1 5 ZERO g OFFSET TEMPERATURE COEFFICIENT mg C 2 0 07925 210 Figure 10 X Axis Zero g Offset Temperature Coefficient Vs 2 5 V 30 nN a nN eo a E eo PERCENT OF POPULATION 26 a 0 2 0 1 5 1 0 0 5 0 0 5 1 0 1 5 ZERO g OFFSET TEMPERATURE COEFFICIENT mg C 2 0 07925 211 Figure 11 Y Axis Zero g Offset Temperature Coefficient Vs 2 5 V 25 N e a eo PERCENT OF POPULATION a 0 2 0 1 5 1 0 0 5 0 0 5 1 0 1 5 ZERO g OFFSET TEMPERATURE COEFFICIENT mg C 2 0 07925 212 Figure 12 Z Axis Zero g Offset Temperature Coefficient Vs 2 5 V OUTPUT mg OUTPUT mg OUTPUT mg Rev E Page 9 of 40 150 100 50 ADXL345 d 100 150 60 150 40 20 0 20 40 60 TEMPERATURE C 80 Figure 13 X Axis Zero g Offset vs Temperature 45 Parts Soldered to PCB Vs 2 5 V 100 100 a eo S 100 150 60 1250 1200 40 20 0 20 40 60 TEMPERATURE C 80 Figure 14 Y Axis Zero g Offset vs Temperature 45 Parts Soldered to PCB Vs 2 5 V 100 1150 1100 1050
28. 0 Hz or lower also provides a valid LSB in all ranges and modes that changes according to the applied acceleration DATAx0 REGISTER OUTPUT DATA WORD FOR 16g FULL RESOLUTION MODE THE 4g AND 8g FULL RESOLUTION MODES HAVE THE SAME LSB LOCATION AS THE 29 AND 16g FULL RESOLUTION MODES BUT THE MSB LOCATION CHANGES TO BIT D2 AND BIT D3 OF THE DATAX1 REGISTER FOR 4g AND 18g RESPECTIVELY OUTPUT DATA WORD FOR ALL 10 BIT MODES AND THE 29 FULL RESOLUTION MODE 07925 145 Figure 49 Data Formatting of Full Resolution and 2 g 10 Bit Modes of Operation When Output Data Is Right Justified DATAx1 REGISTER F LSB FOR 29 FULL RESOLUTION MSB FOR ALL MODES AND 2g 10 BIT MODES OF OPERATION WHEN SB FOR 4g FULL RESOLUTION MODE LSB FOR 8g FULL RESOLUTION MODE LSB FOR 16g FULL RESOLUTION MODE LEFT JUSTIFIED FOR 3200Hz AND 1600Hz OUTPUT DATA RATES THE LSB IN THESE MODES IS ALWAYS 0 ADDITIONALLY ANY BITS TO THE RIGHT OF THE LSB ARE ALWAYS 0 WHEN THE OUTPUT DATA IS LEFT JUSTIFIED 07925 146 Figure 50 Data Formatting of Full Resolution and 2 g 10 Bit Modes of Operation When Output Data Is Left Justified Rev E Page 32 of 40 NOISE PERFORMANCE The specification of noise shown in Table 1 corresponds to the typical noise performance of the ADXL345 in normal power operation with an output data rate of 100 Hz LOW_POWER bit D4 0 rate bits D3 D0 0xA in the BW RATE register Address 0x2C For
29. 1000 950 900 850 800 750 60 40 60 20 0 20 40 TEMPERATURE C 80 Figure 15 Z Axis One g Offset vs Temperature 45 Parts Soldered to PCB Vs 2 5 V 100 07925 213 07925 214 07925 215 PERCENT OF POPULATION PERCENT OF POPULATION PERCENT OF POPULATION 55 50 45 40 35 30 25 20 15 10 5 0 Fig 55 50 45 40 35 30 25 20 15 10 5 0 IB 230 234 238 242 246 250 254 258 262 266 270 274 278 282 SENSITIVITY LSB g ure 16 X Axis Sensitivity at 25 C Vs 2 5 V Full Resolution Dr 230 234 238 242 246 250 254 258 262 266 270 274 278 282 Fig 55 50 45 40 35 30 25 20 15 10 5 0 SENSITIVITY LSB g ure 17 Y Axis Sensitivity at 25 C Vs 2 5 V Full Resolution A 230 234 238 242 246 250 254 258 262 266 270 274 278 282 Fig SENSITIVITY LSB g ure 18 Z Axis Sensitivity at 25 C Vs 2 5 V Full Resolution 07925 216 07925 217 07925 218 Rev E Page 10 of 40 2 e e a e eo nN a a o PERCENT OF POPULATION P 0 0
30. 2 0 01 0 0 01 SENSITIVITY TEMPERATURE COEFFICIENT C 0 02 07925 219 Figure 19 X Axis Sensitivity Temperature Coefficient Vs 2 5 V 40 e a e eo nN a E a o PERCENT OF POPULATION N 0 0 02 0 01 0 0 01 SENSITIVITY TEMPERATURE COEFFICIENT C 0 02 07925 220 Figure 20 Y Axis Sensitivity Temperature Coefficient Vs 2 5 V 40 e a ao eo nN a a o PERCENT OF POPULATION N 0 02 0 01 0 0 01 SENSITIVITY TEMPERATURE COEFFICIENT C 0 02 07925 221 Figure 21 Z Axis Sensitivity Temperature Coefficient Vs 2 5 V SENSITIVITY LSB g SENSITIVITY LSB g SENSITIVITY LSB g 280 275 270 265 260 255 250 245 240 235 230 40 20 0 20 40 60 80 100 120 280 275 270 265 260 255 250 245 240 235 230 TEMPERATURE C Figure 22 X Axis Sensitivity vs Temperature Eight Parts Soldered to PCB Vs 2 5 V Full Resolution 40 20 0 20 40 60 80 100 120 280 275 270 265 260 255 250 245 240 235 230 TEMPERATURE C Figure 23
31. 4 Terminal Land Grid Array LGA CC 14 1 Solder Terminations Finish Is Au over Ni Dimensions shown in millimeters ORDERING GUIDE Measurement Specified Package Model Range g Voltage V Temperature Range Package Description Option ADXL345BCCZ 2 4 8 16 2 5 40 C to 85 C 14 Terminal Land Grid Array LGA CC 14 1 ADXL345BCCZ RL 2 4 8 16 2 5 40 C to 85 C 14 Terminal Land Grid Array LGA CC 14 1 ADXL345BCCZ RL7 2 4 8 16 2 5 40 C to 85 C 14 Terminal Land Grid Array LGA CC 14 1 EVAL ADXL345Z Evaluation Board EVAL ADXL345Z DB Evaluation Board EVAL ADXL345Z M Analog Devices Inertial Sensor Evaluation System Includes ADXL345 Satellite EVAL ADXL345Z S ADXL345 Satellite Standalone Z RoHS Compliant Part Rev E Page 37 of 40 NOTES Rev E Page 38 of 40 NOTES Rev E Page 39 of 40 NOTES PC refers to a communications protocol originally developed by Philips Semiconductors now NXP Semiconductors Analog Devices offers specific products designated for automotive applications please consult your local Analog Devices sales representative for details Standard products sold by Analog Devices are not designed intended or approved for use in life support implantable medical devices transportation nuclear safety or other equipment where malfunction of the product can reasonably be expected to result in personal injury death severe property damage or severe environmen
32. 5 233 THEORY OF OPERATION The ADXL345 is a complete 3 axis acceleration measurement system with a selectable measurement range of 2 g 4 g 8 g or 16 g It measures both dynamic acceleration resulting from motion or shock and static acceleration such as gravity that allows the device to be used as a tilt sensor The sensor is a polysilicon surface micromachined structure built on top of a silicon wafer Polysilicon springs suspend the structure over the surface of the wafer and provide a resistance against forces due to applied acceleration Deflection of the structure is measured using differential capacitors that consist of independent fixed plates and plates attached to the moving mass Acceleration deflects the proof mass and unbalances the differential capacitor resulting in a sensor output whose ampli tude is proportional to acceleration Phase sensitive demodulation is used to determine the magnitude and polarity of the acceleration Table 6 Power Sequencing POWER SEQUENCING Power can be applied to Vs or Vppyo in any sequence without damaging the ADXL345 AIl possible power on modes are summarized in Table 6 The interface voltage level is set with the interface supply voltage Vpn yo which must be present to ensure that the ADXL345 does not create a conflict on the communication bus For single supply operation Von vo can be the same as the main supply Vs In a dual supply application however Vpp vo can differ f
33. ANALOG DEVICES FEATURES Ultralow power as low as 23 pA in measurement mode and 0 1 pA in standby mode at Vs 2 5 V typical Power consumption scales automatically with bandwidth User selectable resolution Fixed 10 bit resolution Full resolution where resolution increases with g range up to 13 bit resolution at 16 g maintaining 4 mg LSB scale factor in all g ranges Embedded memory management system with FIFO technology minimizes host processor load Single tap double tap detection Activity inactivity monitoring Free fall detection Supply voltage range 2 0 V to 3 6 V 1 0 voltage range 1 7 V to Vs SPI 3 and 4 wire and P C digital interfaces Flexible interrupt modes mappable to either interrupt pin Measurement ranges selectable via serial command Bandwidth selectable via serial command Wide temperature range 40 C to 85 C 10 000 g shock survival Pb free RoHS compliant Small and thin 3 mm x 5 mm x 1 mm LGA package APPLICATIONS Handsets Medical instrumentation Gaming and pointing devices Industrial instrumentation Personal navigation devices Hard disk drive HDD protection 3 Axis 2 9 4 g x8 o 16 g Digital Accelerometer ADXL345 GENERAL DESCRIPTION The ADXL345 is a small thin ultralow power 3 axis accelerometer with high resolution 13 bit measurement at up to 16 g Digital output data is formatted as 16 bit twos complement and is acces sible through either a SPI 3 or 4 wire or I
34. C digital interface The ADXL345 is well suited for mobile device applications It measures the static acceleration of gravity in tilt sensing appli cations as well as dynamic acceleration resulting from motion or shock Its high resolution 3 9 mg LSB enables measurement of inclination changes less than 1 0 Several special sensing functions are provided Activity and inactivity sensing detect the presence or lack of motion by comparing the acceleration on any axis with user set thresholds Tap sensing detects single and double taps in any direction Free fall sensing detects if the device is falling These functions can be mapped individually to either of two interrupt output pins An integrated memory management system with a 32 level first in first out FIFO buffer can be used to store data to minimize host processor activity and lower overall system power consumption Low power modes enable intelligent motion based power management with threshold sensing and active acceleration measurement at extremely low power dissipation The ADXL345 is supplied in a small thin 3 mm x 5 mm x 1 mm 14 lead plastic package FUNCTIONAL BLOCK DIAGRAM Vs Vppvo POWER MANAGEMENT SENSE N ELECTRONICS 3 AXIS SENSOR GND Rev E Document Feedback Information fumished by Analog Devices is believed to be accurate and reliable However no responsibility is assumed by Analog Devices for its use nor for any infringements of patents
35. I valid before SCLK rising edge tHoLD 5 ns SDI valid after SCLK rising edge tspo 40 ns SCLK falling edge to SDO SDIO output transition ta 20 ns SDO SDIO output high to output low transition te 20 ns SDO SDIO output low to output high transition The CS SCLK SDI and SDO pins are not internally pulled up or down they must be driven for proper operation Limits based on characterization results characterized with fsck 5 MHz and bus load capacitance of 100 pF not production tested 3 The timing values are measured corresponding to the input thresholds Vi and Vix given in Table 9 Output rise and fall times measured with capacitive load of 150 pF Rev E Page 17 of 40 PC With CS tied high to Vppyo the ADXL345 is in PC mode requiring a simple 2 wire connection as shown in Figure 40 The ADXL345 conforms to the UM10204 I C Bus Specification and User Manual Rev 03 19 June 2007 available from NXP Semiconductors It supports standard 100 kHz and fast 400 kHz data transfer modes if the bus parameters given in Table 11 and Table 12 are met Single or multiple byte reads writes are supported as shown in Figure 41 With the ALT ADDRESS pin high the 7 bit C address for the device is Ox1D followed by the R W bit This translates to 0x3A for a write and 0x3B for a read An alternate I C address of 0x53 followed by the R W bit can be chosen by grounding the ALT ADDRESS pin Pin 12 This translates to 0xA6 for a write
36. L345 is placed into full resolution mode with a sensitivity of typically 256 LSB g The part is oriented such that the z axis is in the field of gravity and X y and z axis outputs are measured as 10 LSB 13 LSB and 9 LSB respectively Using the previous equations Xog is 10 LSB Yog is 13 LSB and Zog is 9 LSB Each LSB of output in full resolution is 3 9 mg or one quarter of an LSB of the offset register Because the offset register is additive the 0 g values are negated and rounded to the nearest LSB of the offset register Xorrser Round 10 4 3 LSB Yorrser Round 13 4 3 LSB Zorrser Round 9 4 2 LSB These values are programmed into the OFSX OFSY and OFXZ registers respectively as OXFD 0x03 and OxFE As with all registers in the ADXL345 the offset registers do not retain the value written into them when power is removed from the part Power cycling the ADXL345 returns the offset registers to their default value of 0x00 Because the no turn or single point calibration method assumes an ideal sensitivity in the z axis any error in the sensitivity results in Offset error For instance if the actual sensitivity was 250 LSB g in the previous example the offset would be 15 LSB not 9 LSB To help minimize this error an additional measurement point can be used with the z axis in a 0 g field and the 0 g measurement can be used in the Zacruar equation Rev E Page 30 of 40 USING SELF TEST The
37. Register Ox2F INT_MAP R W D7 D6 D5 D4 DATA_READY SINGLE_TAP DOUBLE_TAP Activity D3 D2 D1 DO Inactivity FREE_FALL Watermark Overrun Any bits set to 0 in this register send their respective interrupts to the INT1 pin whereas bits set to 1 send their respective interrupts to the INT2 pin All selected interrupts for a given pin are ORed Register 0x30 INT SOURCE Read Only D7 D6 D5 D4 DATA_READY SINGLE_TAP DOUBLE_TAP Activity D3 D2 D1 DO Inactivity FREE_FALL Watermark Overrun Bits set to 1 in this register indicate that their respective functions have triggered an event whereas a value of 0 indicates that the corresponding event has not occurred The DATA_READY watermark and overrun bits are always set if the corresponding events occur regardless of the INT_ENABLE register settings and are cleared by reading data from the DATAX DATAY and DATAZ registers The DATA_READY and watermark bits may require multiple reads as indicated in the FIFO mode descriptions in the FIFO section Other bits and the corresponding interrupts are cleared by reading the INT_SOURCE register Register 0x31 DATA FORMAT Read Write D7 D6 D5 D4 D3 D2 D1 DO SELF TEST SPI INT INVERT O FULL_RES Justify Range Setting D1 DO Frequency Hz 0 0 8 0 1 4 1 0 2 1 1 1 The DATA_FORMAT register controls the presentation of data to Register
38. amage to the product This is a stress rating only functional operation of the product at these or any other conditions above those indicated in the operational section of this specification is not implied Operation beyond the maximum operating conditions for extended periods may affect product reliability THERMAL RESISTANCE Table 3 Package Characteristics Package Type Osa Bic Device Weight 14 Terminal LGA 150 C W 85 C W 30mg PACKAGE INFORMATION The information in Figure 2 and Table 4 provide details about the package branding for the ADXL345 For a complete listing of product availability see the Ordering Guide section 07925 102 Figure 2 Product Information on Package Top View Table 4 Package Branding Information Branding Key Field Description 345B Part identifier for ADXL345 RoHS compliant designation yww Date code VVVV Factory lot code CNTY Country of origin ESD CAUTION ESD electrostatic discharge sensitive device Charged devices and circuit boards can discharge A without detection Although this product features patented or proprietary protection circuitry damage dy A may occur on devices subjected to high energy ESD Therefore proper ESD precautions should be taken to avoid performance degradation or loss of functionality Rev E Page 6 of 40 PIN CONFIGURATION AND FUNCTION DESCRIPTIONS Table 5 Pin Function Descriptions ADXL345 TOP VIEW Not to Scale SCL SCLK
39. and 0xA7 for a read There are no internal pull up or pull down resistors for any unused pins therefore there is no known state or default state for the CS or ALT ADDRESS pin if left floating or unconnected It is required that the CS pin be connected to Vpp yo and that the ALT ADDRESS pin be connected to either Vppyo or GND when using IC Table 11 C Digital Input Output Due to communication speed limitations the maximum output data rate when using 400 kHz I C is 800 Hz and scales linearly with a change in the PC communication speed For example using C at 100 KHz would limit the maximum ODR to 200 Hz Operation at an output data rate above the recommended maxi mum may result in undesirable effect on the acceleration data including missing samples or additional noise VoD vo 07925 008 Figure 40 C Connection Diagram Address 0x53 If other devices are connected to the same I C bus the nominal operating voltage level of these other devices cannot exceed Vppwo by more than 0 3 V External pull up resistors Re are necessary for proper PC operation Refer to the UM10204 P C Bus Specification and User Manual Rev 03 19 June 2007 when selecting pull up resistor values to ensure proper operation Limit Parameter Test Conditions Min Max Unit Digital Input Low Level Input Voltage
40. as supply voltage is varied the offset and sensitivity change slightly When operating at a supply voltage of Vs 3 3 V the x and y axis offset is typically 25 mg higher than at Vs 2 5 V operation The z axis is typically 20 mg lower when operating at a supply voltage of 3 3 V than when operating at Vs 2 5 V Sensitivity on the x and y axes typically shifts from a nominal 256 LSB g full resolution or 2 g 10 bit operation at Vs 2 5 V operation to 265 LSB g when operating with a supply voltage of 3 3 V The z axis sensitivity is unaffected by a change in supply voltage and is the same at Vs 3 3 V operation as itis at Vs 2 5 V operation Simple linear interpolation can be used to determine typical shifts in offset and sensitivity at other supply voltages Rev E Page 33 of 40 ADXL345 Changes in noise performance self test response and supply current are discussed elsewhere throughout the data sheet For noise performance the Noise Performance section should be reviewed The Using Self Test section discusses both the operation of self test over voltage a square relationship with supply voltage as well as the conversion of the self test response in g s to LSBs Finally Figure 33 shows the impact of supply voltage on typical current consumption at a 100 Hz output data rate with all other output data rates following the same trend OFFSET PERFORMANCE AT LOWEST DATA RATES The ADXL345 offers a large number of output
41. ata setup time te 56 0 0 9 us tup par data hold time t 0 6 us tsu sta setup time for repeated start ts 0 6 us tsu sto Stop condition setup time to 1 3 us teur bus free time between a stop condition and a start condition tio 300 ns tr rise time of both SCL and SDA when receiving 0 ns tr rise time of both SCL and SDA when receiving or transmitting tu 300 ns tr fall time of SDA when receiving 250 ns tr fall time of both SCL and SDA when transmitting Cb 400 pF Capacitive load for each bus line 1 Limits based on characterization results with fsc 400 kHz and a 3 mA sink current not production tested All values referred to the Viu and the Vi levels given in Table 11 3 te is the data hold time that is measured from the falling edge of SCL It applies to data in transmission and acknowledge A transmitting device must internally provide an output hold time of at least 300 ns for the SDA signal with respect to Virimin of the SCL signal to bridge the undefined region of the falling edge of SCL 5 The maximum te value must be met only if the device does not stretch the low period ts of the SCL signal The maximum value for te is a function of the clock low time ts the clock rise time tio and the minimum data setup time tsmin This value is calculated as te max t3 tio tsimin SDA SCL START REPEATED STOP 3 CONDITION START CONDITION CONDITION g Figure 42 C Timing Diagram Rev E Page
42. ay result in undesirable effects on the acceleration data including missing samples or additional noise Preventing Bus Traffic Errors The ADXL346 CS pin is used both for initiating SPI transactions and for enabling I C mode When the ADXL346 is used on a SPI bus with multiple devices its cs pin is held high while the master communicates with the other devices There may be conditions where a SPI command transmitted to another device looks like a valid PC command In this case the ADXL346 would interpret this as an attempt to communicate in IC mode and could interfere with other bus traffic Unless bus traffic can be adequately controlled to assure such a condition never occurs it is recommended to add a logic gate in front of the SDI pin as shown in Figure 36 This OR gate will hold the SDA line high when CS is high to prevent SPI bus traffic at the ADXL346 from appearing as an I C start command ADXL345 PROCESSOR 07925 104 Figure 36 Recommended SPI Connection Diagram when Using Multiple SPI Devices on a Single Bus Rev E Page 15 of 40 i tscik tm ts t t gt peLAY lt a c c ae QUIET ja a tos DIS E wa PT Nl eS RT a thoi tseTUP a a SDI ma lobo ADDRESS BITS DATA BITS tis lt 07925 017 Figure 37 SPI 4 Wire Write t t togLay gt La QUIET a a n CS DIS thon tsetup I e V D mt tsp0 ADDRESS BITS ips sno ee ee 07925 018
43. ble tap functions Register 0x22 Latent Read Write The latent register is eight bits and contains an unsigned time value representing the wait time from the detection of a tap event to the start of the time window defined by the window register during which a possible second tap event can be detected The scale factor is 1 25 ms LSB A value of 0 disables the double tap function Register 0x23 Window Read Write The window register is eight bits and contains an unsigned time value representing the amount of time after the expiration of the latency time determined by the latent register during which a second valid tap can begin The scale factor is 1 25 ms LSB A value of 0 disables the double tap function Register 0Ox24 THRESH_ACT Read Write The THRESH_ACT register is eight bits and holds the threshold value for detecting activity The data format is unsigned so the magnitude of the activity event is compared with the value in the THRESH_ACT register The scale factor is 62 5 mg LSB A value of 0 may result in undesirable behavior if the activity interrupt is enabled Register 0xX25 THRESH INACT Read Write The THRESH_INACT register is eight bits and holds the threshold value for detecting inactivity The data format is unsigned so the magnitude of the inactivity event is compared with the value in the THRESH_INACT register The scale factor is 62 5 mg LSB A value of 0 may result in undesirable behavior if the i
44. celeration on all axes is compared with the value in THRESH FF to determine if a free fall event occurred The scale factor is 62 5 mg LSB Note that a value of 0 mg may result in undesirable behavior if the free fall interrupt is enabled Values between 300 mg and 600 mg 0x05 to 0x09 are recommended Register 0x29 TIME FF Read Write The TIME FF register is eight bits and stores an unsigned time value representing the minimum time that the value of all axes must be less than THRESH FF to generate a free fall interrupt The scale factor is 5 ms LSB A value of 0 may result in undesirable behavior if the free fall interrupt is enabled Values between 100 ms and 350 ms 0x14 to 0x46 are recommended Register OxX2A TAP AXES Read Write Asleep Bit A setting of 1 in the asleep bit indicates that the part is asleep and a setting of 0 indicates that the part is not asleep This bit toggles only if the device is configured for auto sleep See the AUTO SLEEP Bit section for more information on autosleep mode Register OxX2C BW RATE Read Write D7 D6 D5 D4 D3 D2 D1 DO 0 0 0 LOW_POWER Rate LOW_POWER Bit A setting of 0 in the LOW_POWER bit selects normal operation and a setting of 1 selects reduced power operation which has somewhat higher noise see the Power Modes section for details Rate Bits These bits select the device bandwidth and output data rate see Table 7 and Table
45. cteristics 8 Using Self Teste eod eene 31 Theory of Operation iei CHR Hd ERES 13 Data Formatting of Upper Data Rates 32 E E A 13 Noise Performancen innan E E E e 33 Power Savings ici DRE ERR ene eats 14 Operation at Voltages Other Than 25 V sse a Serial Communications eerte 15 Offset Performance at Lowest Data Rates at Axes of Acceleration Sensitivity sss 35 Layout and Design Recommendations ss 36 luco P M 20 Outline Dimensions srrsrssreusueueasuteetemememeennenrnnns xi O 21 Ordering Guide jaa ee 3 Rev E Page 2 of 40 REVISION HISTORY 6 15 Rev D to Rev E Changes to Features Section and General Description Section cede eaa Change to Figute 36 5 ient nire esi e etienne 15 Change to FIFO Section 21 2 13 Rev C to Rev D Changes to Figure 13 Figure 14 and Figure 15 9 Change to Table 15 re RED 22 5 11 Rev B to Rev C Added Preventing Bus Traffic Errors Section 15 Changes to Figure 37 Figure 38 Figure 39 sss 16 Changes to Table 12 tte tpi rebos d 19 Changes to Using Self Test Section sss 31 Changes to Axes of Acceleration Sensitivity Section 35 11 10 Rev A to Rev B Change to 0 g Offset vs Temperature for Z Axis Parameter Table 1 secte eph Changes to Figure 10 to Figure 15 Changes to Ordering Guide
46. data rates and bandwidths designed for a large range of applications However at the lowest data rates described as those data rates below 6 25 Hz the offset performance over temperature can vary significantly from the remaining data rates Figure 54 Figure 55 and Figure 56 show the typical offset performance of the ADXL345 over temperature for the data rates of 6 25 Hz and lower All plots are normalized to the offset at 100 Hz output data rate therefore a nonzero value corresponds to additional offset shift due to temperature for that data rate When using the lowest data rates it is recommended that the operating temperature range of the device be limited to provide minimal offset shift across the operating temperature range Due to variability between parts it is also recommended that calibration over temperature be performed if any data rates below 6 25 Hz are in use 140 120 a 4 100 LE a E 80 o 0 10Hz a 0 20Hz N 60 0 39Hz a 0 78Hz 1 56Hz go 3 13Hz z 6 25Hz 20 0 25 35 45 55 65 75 85 07925 056 TEMPERATURE C Figure 54 Typical X Axis Output vs Temperature at Lower Data Rates Normalized to 100 Hz Output Data Rate Vs 2 5 V 140 N e e eo e 60 40 NORMALIZED OUTPUT LSB 20 75 85 7925 057 TEMPERATURE C Figure 55 Typical Y Axis Output vs Temperature at
47. e 23 of 40 REGISTER DEFINITIONS Register OxOO DEVID Read Only D7 D6 D5 D4 D3 D2 D1 DO 1 1 1 0 0 1 0 1 The DEVID register holds a fixed device ID code of OxE5 345 octal Register OxX1D THRESH TAP Read Write The THRESH_TAP register is eight bits and holds the threshold value for tap interrupts The data format is unsigned therefore the magnitude of the tap event is compared with the value in THRESH_TAP for normal tap detection The scale factor is 62 5 mg LSB that is OxFF 16 g A value of 0 may result in undesirable behavior if single tap double tap interrupts are enabled Register Ox E Register Ox1F Register Ox20 OFSX OFSY OFSZ Read Write The OFSX OFSY and OFSZ registers are each eight bits and offer user set offset adjustments in twos complement format with a scale factor of 15 6 mg LSB that is Ox7F 2 g The value stored in the offset registers is automatically added to the acceleration data and the resulting value is stored in the output data registers For additional information regarding offset calibration and the use of the offset registers refer to the Offset Calibration section Register 0x21 DUR Read Write The DUR register is eight bits and contains an unsigned time value representing the maximum time that an event must be above the THRESH_TAP threshold to qualify as a tap event The scale factor is 625 us LSB A value of 0 disables the single tap dou
48. eed Table 1 Parameter Test Conditions Min Typ Max Unit SENSOR INPUT Each axis Measurement Range User selectable 2 4 8 16 g Nonlinearity Percentage of full scale 0 5 Inter Axis Alignment Error 0 1 Degrees Cross Axis Sensitivity 1 OUTPUT RESOLUTION Each axis All g Ranges 10 bit resolution 10 Bits 2 g Range Full resolution 10 Bits 4 g Range Full resolution 11 Bits 8 g Range Full resolution 12 Bits 16 g Range Full resolution 13 Bits SENSITIVITY Each axis Sensitivity at Xour Your Zour All g ranges full resolution 230 256 282 LSB g 2 g 10 bit resolution 230 256 282 LSB g 4 g 10 bit resolution 115 128 141 LSB g 8 g 10 bit resolution 57 64 71 LSB g 16 g 10 bit resolution 29 32 35 LSB g Sensitivity Deviation from Ideal All g ranges 1 0 Scale Factor at Xour Your Zout All g ranges full resolution 3 5 3 9 4 3 mg LSB 2 g 10 bit resolution 3 5 3 9 4 3 mg LSB 4 g 10 bit resolution 7 1 7 8 8 7 mg LSB 8 g 10 bit resolution 14 1 15 6 17 5 mg LSB 16 g 10 bit resolution 28 6 31 2 34 5 mg LSB Sensitivity Change Due to Temperature 0 01 C 0 g OFFSET Each axis 0 g Output for Xour Your 150 0 4150 mg 0 g Output for Zour 250 0 250 mg 0 g Output Deviation from Ideal Xour Your 35 mg 0 g Output Deviation from Ideal Zour 40 mg 0 g Offset vs Temperature for X Y Axes 0 4 mg C 0 g Offset vs Temperature for Z Axis 1 2 mg C NOISE X Y Axes ODR 100 Hz for 2 g 10 bit resol
49. eration by multiplying each value by the 3 9 mg LSB scale factor if configured for full resolution mode Additionally Table 15 through Table 18 correspond to the self test range converted to LSBs and can be compared with the measured self test change when operating at a Vs of 2 5 V For other voltages the minimum and maximum self test output values should be adjusted based on multiplied by the scale factors shown in Table 14 If the part was placed into 2 g 10 bit or full resolution mode the values listed in Table 15 should be used Although the fixed 10 bit mode or a range other than 16 g can be used a different set of values as indicated in Table 16 through Table 18 would need to be used Using a range below 8 g may result in insufficient dynamic range and should be considered when selecting the range of operation for measuring self test If the self test change is within the valid range the test is considered successful Generally a part is considered to pass if the minimum magnitude of change is achieved However a part that changes by more than the maximum magnitude is not necessarily a failure Another effective method for using the self test to verify accel erometer functionality is to toggle the self test at a certain rate and then perform an FFT on the output The FFT should have a corresponding tone at the frequency the self test was toggled Using an FFT like this removes the dependency of the test on supply voltage and on
50. es below 6 25 Hz exhibit additional offset shift with increased temperature depending on selected output data rate Refer to the Offset Performance at Lowest Data Rates section for details Self test change is defined as the output g when the SELF TEST bit 1 in the DATA FORMAT register Address 0x31 minus the output g when the SELF TEST bit 0 Due to device filtering the output reaches its final value after 4 x tT when enabling or disabling self test where t 1 data rate The part must be in normal power operation LOW POWER bit 0 in the BW RATE register Address 0x2C for self test to operate correctly 7 Turn on and wake up times are determined by the user defined bandwidth At a 100 Hz data rate the turn on and wake up times are each approximately 11 1 ms For other data rates the turn on and wake up times are each approximately t 1 1 in milliseconds where t 1 data rate Rev E Page 5 of 40 ABSOLUTE MAXIMUM RATINGS Table 2 Parameter Rating Acceleration Any Axis Unpowered 10 000 g Any Axis Powered 10 000 g Vs 0 3V to 3 9V Vop vo 0 3V to 3 9V Digital Pins 0 3 V to Vooo 0 3 V or 3 9 V whichever is less All Other Pins 0 3V to 43 9 V Output Short Circuit Duration Indefinite Any Pin to Ground Temperature Range Powered 40 C to 105 C Storage 40 C to 105 C Stresses at or above those listed under Absolute Maximum Ratings may cause permanent d
51. f acceleration are then compared to this reference value and if the magnitude of the difference exceeds the THRESH_ACT value the device triggers an activity interrupt Similarly in ac coupled operation for inactivity detection a reference value is used for comparison and is updated whenever the device exceeds the inactivity threshold After the reference value is selected the device compares the magnitude of the difference between the reference value and the current acceleration with THRESH_INACT If the difference is less than the value in THRESH_INACT for the time in TIME_INACT the device is considered inactive and the inactivity interrupt is triggered Rev E Page 24 of 40 ACT_x Enable Bits and INACT_x Enable Bits A setting of 1 enables x y or z axis participation in detecting activity or inactivity A setting of 0 excludes the selected axis from participation If all axes are excluded the function is disabled For activity detection all participating axes are logically ORed causing the activity function to trigger when any of the partici pating axes exceeds the threshold For inactivity detection all participating axes are logically ANDed causing the inactivity function to trigger only if all participating axes are below the threshold for the specified time Register 0OxX28 THRESH FF Read Write The THRESH FF register is eight bits and holds the threshold value in unsigned format for free fall detection The ac
52. he trigger mode is reset To reset the trigger mode set the device to bypass mode and then set the device back to trigger mode Note that the FIFO data should be read first because placing the device into bypass mode clears FIFO Retrieving Data from FIFO The FIFO data is read through the DATAX DATAY and DATAZ registers Address 0x32 to Address 0x37 When the FIFO is in FIFO stream or trigger mode reads to the DATAX DATAY and DATAZ registers read data stored in the FIFO Each time data is read from the FIFO the oldest x y and z axes data are placed into the DATAX DATAY and DATAZ registers If a single byte read operation is performed the remaining bytes of data for the current FIFO sample are lost Therefore all axes of interest should be read in a burst or multiple byte read operation To ensure that the FIFO has completely popped that is that new data has completely moved into the DATAX DATAY and DATAZ registers there must be at least 5 us between the end of reading the data registers and the start of a new read of the FIFO or a read of the FIFO_STATUS register Address 0x39 The end of reading a data register is signified by the transition from Register 0x37 to Register 0x38 or by the CS pin going high For SPI operation at 1 6 MHz or less the register addressing portion of the transmission is a sufficient delay to ensure that the FIFO has completely popped For SPI operation greater than 1 6 MHz it is necessary
53. interrupt is not cleared the part cannot go into autosleep mode The asleep bit in the ACT TAP STATUS register Address 0x2B indicates if the part is asleep Rev E Page 29 of 40 ADXL345 SLEEP MODE VS LOW POWER MODE In applications where a low data rate and low power consumption is desired at the expense of noise performance it is recommended that low power mode be used The use of low power mode preserves the functionality of the DATA_READY interrupt and the FIFO for postprocessing of the acceleration data Sleep mode while offering a low data rate and power consumption is not intended for data acquisition However when sleep mode is used in conjunction with the AUTO_SLEEP mode and the link mode the part can automatically switch to a low power low sampling rate mode when inactivity is detected To prevent the generation of redundant inactivity interrupts the inactivity interrupt is automatically disabled and activity is enabled When the ADXL345 is in sleep mode the host processor can also be placed into sleep mode or low power mode to save significant system power When activity is detected the accelerometer automatically switches back to the original data rate of the application and provides an activity interrupt that can be used to wake up the host processor Similar to when inactivity occurs detection of activity events is disabled and inactivity is enabled OFFSET CALIBRATION Accelerometers are mechanical structu
54. nactivity interrupt is enabled Register 0x26 TIME_INACT Read Write The TIME_INACT register is eight bits and contains an unsigned time value representing the amount of time that acceleration must be less than the value in the THRESH_INACT register for inactivity to be declared The scale factor is 1 sec LSB Unlike the other interrupt functions which use unfiltered data see the Threshold section the inactivity function uses filtered output data At least one output sample must be generated for the inactivity interrupt to be triggered This results in the function appearing unresponsive if the TIME_INACT register is set to a value less than the time constant of the output data rate A value of 0 results in an interrupt when the output data is less than the value in the THRESH_INACT register Register Ox27 ACT_INACT_CTL Read Write D7 D6 D5 D4 ACT ac dc ACT_X enable ACT_Y enable ACT_Z enable D3 D2 D1 DO INACT ac dc INACT Xenable INACT Y enable INACT_Z enable ACT AC DC and INACT AC DC Bits A setting of 0 selects dc coupled operation and a setting of 1 enables ac coupled operation In dc coupled operation the current acceleration magnitude is compared directly with THRESH_ACT and THRESH_INACT to determine whether activity or inactivity is detected In ac coupled operation for activity detection the acceleration value at the start of activity detection is taken as a reference value New samples o
55. near a hard mounting point ensures that any PCB vibration at the accelerometer is above the accelerometer s mechanical sensor resonant frequency and therefore effectively invisible to the accelerometer Multiple mounting points close to the sensor and or a thicker PCB also help to reduce the effect of system resonance on the performance of the sensor ACCELEROMETERS PCB d E d MOUNTING POINTS 07925 036 Figure 45 Incorrectly Placed Accelerometers TAP DETECTION The tap interrupt function is capable of detecting either single or double taps The following parameters are shown in Figure 46 for a valid single and valid double tap event e The tap detection threshold is defined by the THRESH TAP register Address Ox1D e The maximum tap duration time is defined by the DUR register Address 0x21 e The tap latency time is defined by the latent register Address 0x22 and is the waiting period from the end of the first tap until the start of the time window when a second tap can be detected which is determined by the value in the window register Address 0x23 e The interval after the latency time set by the latent register is defined by the window register Although a second tap must begin after the latency time has expired it need not finish before the end of the time defined by the window register FIRST TAP SECOND TAP THRESHOLD E H P oua eae H J LATENCY TIME WINDOW FOR LATENCY SECOND TAP eae
56. normal power operation at data rates below 100 Hz the noise of the ADXL345 is equivalent to the noise at 100 Hz ODR in LSBs For data rates greater than 100 Hz the noise increases roughly by a factor of V2 per doubling of the data rate For example at 400 Hz ODR the noise on the x and y axes is typically less than 1 5 LSB rms and the noise on the z axis is typically less than 2 2 LSB rms For low power operation LOW_POWER bit D4 1 in the BW RATE register Address 0x2C the noise of the ADXL345 is constant for all valid data rates shown in Table 8 This value is typically less than 1 8 LSB rms for the x and y axes and typically less than 2 6LSB rms for the z axis The trend of noise performance for both normal power and low power modes of operation of the ADXL345 is shown in Figure 51 Figure 52 shows the typical Allan deviation for the ADXL345 The 1 f corner of the device as shown in this figure is very low allowing absolute resolution of approximately 100 ug assuming that there is sufficient integration time Figure 52 also shows that the noise density is 290 ug YHz for the x axis and y axis and 430 ug VHz for the z axis Figure 53 shows the typical noise performance trend of the ADXL345 over supply voltage The performance is normalized to the tested and specified supply voltage Vs 2 5 V In general noise decreases as supply voltage is increased It should be noted as shown in Figure 51 that the noise on the z axis is
57. of 40 ADXL345 APPLICATIONS INFORMATION POWER SUPPLY DECOUPLING A 1 uF tantalum capacitor Cs at Vs and a 0 1 uF ceramic capacitor Cro at Von vo placed close to the ADXL345 supply pins is recommended to adequately decouple the accelerometer from noise on the power supply If additional decoupling is necessary a resistor or ferrite bead no larger than 100 Q in series with Vs may be helpful Additionally increasing the bypass capacitance on Vs to a 10 uF tantalum capacitor in parallel with a 0 1 uF ceramic capacitor may also improve noise Care should be taken to ensure that the connection from the ADXL345 ground to the power supply ground has low impedance because noise transmitted through ground has an effect similar to noise transmitted through Vs It is recommended that Vs and Vop vo be separate supplies to minimize digital clocking noise on the Vs supply If this is not possible additional filtering of the supplies as previously mentioned may be necessary Vs Vpp vo Vpp vo ADXL345 INTERRUPT SEPORPC SPI OR PC CONTROL INTERFACE IFO 07925 016 Figure 44 Application Diagram MECHANICAL CONSIDERATIONS FOR MOUNTING The ADXL345 should be mounted on the PCB in a location close to a hard mounting point of the PCB to the case Mounting the ADXL345 at an unsupported PCB location as shown in Figure 45 may result in large apparent measurement errors due to undampened PCB vibration Locating the accelerometer
58. ormal power operation LOW_POWER bit 0 in BW_RATE register Address 0x2C and be placed into a data rate of 100 Hz through 800 Hz or 3200 Hz for the self test function to operate correctly SELF TEST SHIFT LIMIT 07925 242 Vs V Figure 43 Self Test Output Change Limits vs Supply Voltage Table 14 Self Test Output Scale Factors for Different Supply Voltages Vs Supply Voltage V V X Axis Y Axis Z Axis 2 00 0 64 0 8 2 50 1 00 1 00 3 30 1 77 1 47 3 60 2 11 1 69 Table 15 Self Test Output in LSB for 2 g 10 Bit or Full Resolution T4 25 C Vs 2 5 V Vppyo 1 8 V Axis Min Max Unit X 50 540 LSB Y 540 50 LSB Z 75 875 LSB Table 16 Self Test Output in LSB for 4 g 10 Bit Resolution T4 25 C Vs 2 5 V Vppvo 1 8 V Axis Min Max Unit X 25 270 LSB Y 270 25 LSB Z 38 438 LSB Table 17 Self Test Output in LSB for 8 g 10 Bit Resolution Ta 25 C Vs 2 5 V Vppvo 1 8 V Axis Min Max Unit X 12 135 LSB Y 135 12 LSB Z 19 219 LSB Table 18 Self Test Output in LSB for 16 g 10 Bit Resolution Ta 25 C Vs 2 5 V Vppyo 1 8 V Axis Min Max Unit X 6 67 LSB Y 67 6 LSB Z 10 110 LSB Rev E Page 22 of 40 REGISTER MAP Table 19 Address Hex Dec Name Type Reset Value Description 0x00 0 DEVID R 11100101 Device ID 0x01 to Ox1C 1to28 Reserved Reserved do
59. output respectively Data is updated on the falling edge of SCLK and should be sampled on the rising edge of SCLK To read or write multiple bytes in a single transmission the multiple byte bit located after the R W bit in the first byte transfer MB in Figure 37 to Figure 39 must be set After the register addressing and the first byte of data each subsequent set of clock pulses eight clock pulses causes the ADXL345 to point to the next register for a read or write This shifting continues until the clock pulses cease and CS is deasserted To perform reads or writes on different nonsequential registers CS must be deasserted between transmissions and the new register must be addressed separately The timing diagram for 3 wire SPI reads or writes is shown in Figure 39 The 4 wire equivalents for SPI writes and reads are shown in Figure 37 and Figure 38 respectively For correct operation of the part the logic thresholds and timing parameters in Table 9 and Table 10 must be met at all times Use of the 3200 Hz and 1600 Hz output data rates is only recommended with SPI communication rates greater than or equal to 2 MHz The 800 Hz output data rate is recommended only for communication speeds greater than or equal to 400 KHz and the remaining data rates scale proportionally For example the minimum recommended communication speed for a 200 Hz output data rate is 100 KHz Operation at an output data rate above the recommended maximum m
60. res containing elements that are free to move These moving parts can be very sensitive to mechanical stresses much more so than solid state electronics The 0 g bias or offset is an important accelerometer metric because it defines the baseline for measuring acceleration Additional stresses can be applied during assembly of a system containing an accelerometer These stresses can come from but are not limited to component soldering board stress during mounting and application of any compounds on or over the component If calibration is deemed necessary it is recommended that calibration be performed after system assembly to compensate for these effects A simple method of calibration is to measure the offset while assuming that the sensitivity of the ADXL345 is as specified in Table 1 The offset can then be automatically accounted for by using the built in offset registers This results in the data acquired from the DATA registers already compensating for any offset In a no turn or single point calibration scheme the part is oriented such that one axis typically the z axis is in the 1 g field of gravity and the remaining axes typically the x and y axis are ina 0 g field The output is then measured by taking the average of a series of samples The number of samples averaged is a choice of the system designer but a recommended starting point is 0 1 sec worth of data for data rates of 100 Hz or greater This corresponds to 10 samples
61. rom Vs to accommodate the desired interface voltage as long as Vs is greater than or equal to Vppyo After Vs is applied the device enters standby mode where power consumption is minimized and the device waits for Vpn vo to be applied and for the command to enter measurement mode to be received This command can be initiated by setting the measure bit Bit D3 in the POWER CTL register Address 0x2D In addition while the device is in standby mode any register can be written to or read from to configure the part It is recommended to configure the device in standby mode and then to enable measurement mode Clearing the measure bit returns the device to the standby mode Condition Vs Vooo Description Power Off Off Off The device is completely off but there is a potential for a communication bus conflict Bus Disabled On Off The device is on in standby mode but communication is unavailable and creates a conflict on the communication bus The duration of this state should be minimized during power up to prevent a conflict Bus Enabled Off On No functions are available but the device does not create a conflict on the communication bus Standby or Measurement On On At power up the device is in standby mode awaiting a command to enter measurement mode and all sensor functions are off After the device is instructed to enter measurement mode all sensor functions are available Rev E Page 13 of 40
62. s tap detection can be used after FIFO is full The watermark interrupt continues to occur until the number of samples in FIFO is less than the value stored in the samples bits of the FIFO_CTL register Stream Mode In stream mode data from measurements of the x y and z axes are stored in FIFO When the number of samples in FIFO equals the level specified in the samples bits of the FIFO_CTL register Address 0x38 the watermark interrupt is set FIFO continues accumulating samples and holds the latest 32 samples from measurements of the x y and z axes discarding older data as new data arrives The watermark interrupt continues occurring until the number of samples in FIFO is less than the value stored in the samples bits of the FIFO_CTL register Trigger Mode In trigger mode FIFO accumulates samples holding the latest 32 samples from measurements of the x y and z axes After a trigger event occurs and an interrupt is sent to the INT1 or INT2 pin determined by the trigger bit in the FIFO_CTL register FIFO keeps the last n samples where n is the value specified by the samples bits in the FIFO_CTL register and then operates in FIFO mode collecting new samples only when FIFO is not full A delay of at least 5 us should be present between the trigger event occurring and the start of reading data from the FIFO to allow the FIFO to discard and retain the necessary samples Additional trigger events cannot be recognized until t
63. self test change is defined as the difference between the acceleration output of an axis with self test enabled and the acceleration output of the same axis with self test disabled see Endnote 4 of Table 1 This definition assumes that the sensor does not move between these two measurements because if the sensor moves a non self test related shift corrupts the test Proper configuration of the ADXL345 is also necessary for an accurate self test measurement The part should be set with a data rate of 100 Hz through 800 Hz or 3200 Hz This is done by ensuring that a value of 0x0A through OxOD or OxOF is written into the rate bits Bit D3 through Bit DO in the BW_RATE register Address 0x2C The part also must be placed into normal power operation by ensuring the LOW_POWER bit in the BW_RATE register is cleared LOW_POWER bit 0 for accurate self test measurements It is recommended that the part be set to full resolution 16 g mode to ensure that there is sufficient dynamic range for the entire self test shift This is done by setting Bit D3 of the DATA_FORMAT register Address 0x31 and writing a value of 0x03 to the range bits Bit D1 and Bit DO of the DATA_FORMAT register Address 0x31 This results in a high dynamic range for measurement and a 3 9 mg LSB scale factor After the part is configured for accurate self test measurement several samples of x y and z axis acceleration data should be retrieved from the sensor and averaged
64. self test magnitude which can vary within a rather wide range Rev E Page 31 of 40 DATA FORMATTING OF UPPER DATA RATES Formatting of output data at the 3200 Hz and 1600 Hz output data rates changes depending on the mode of operation full resolution or fixed 10 bit and the selected output range When using the 3200 Hz or 1600 Hz output data rates in full resolution or 2 g 10 bit operation the LSB of the output data word is always 0 When data is right justified this corresponds to Bit DO of the DATAxO register as shown in Figure 49 When data is left justified and the part is operating in 2 g 10 bit mode the LSB of the output data word is Bit D6 of the DATAX0 register In full resolution operation when data is left justified the location of the LSB changes according to the selected output range DATAx1 REGISTER For a range of 2 g the LSB is Bit D6 of the DATAxO register for 4 g Bit D5 of the DATAxO register for 8 g Bit D4 of the DATAx0 register and for 16 g Bit D3 of the DATAxO register This is shown in Figure 50 The use of 3200 Hz and 1600 Hz output data rates for fixed 10 bit operation in the 4 g 8 g and 16 g output ranges provides an LSB that is valid and that changes according to the applied acceleration Therefore in these modes of operation Bit D0 is not always 0 when output data is right justified and Bit D6 is not always 0 when output data is left justified Operation at any data rate of 80
65. set by the ACT INACT CTL register Address 0x27 The maximum value for TIME INACT is 255 sec FREE FALL The FREE FALL bit is set when acceleration of less than the value stored in the THRESH FF register Address 0x28 is experienced for more time than is specified in the TIME FF register Address 0x29 on all axes logical AND The FREE FALL interrupt differs from the inactivity interrupt as follows all axes always participate and are logically ANDed the timer period is much smaller 1 28 sec maximum and the mode of operation is always dc coupled Watermark The watermark bit is set when the number of samples in FIFO equals the value stored in the samples bits Register FIFO_CTL Address 0x38 The watermark bit is cleared automatically when FIFO is read and the content returns to a value below the value stored in the samples bits Limit Parameter Test Conditions Min Max Unit Digital Output Low Level Output Voltage Voi lo 300 pA 0 2 X Voo vo V High Level Output Voltage Vou lou 150 pA 0 8 X Vpp vo V Low Level Output Current loi Vor VoL max 300 pA High Level Output Current lou Von Vou min 150 pA Pin Capacitance fin 1 MHz Vin 2 5 V 8 pF Rise Fall Time Rise Time tr Cioap 150 pF 210 ns Fall Time tr Cioap 150 pF 150 ns Limits based on characterization results not production tested Rise time is measured as the transition time from Voi max to Von min of the interrupt pin 3
66. ta is available these bits are not cleared but are overwritten by the new data The ACT_TAP_STATUS register should be read before clearing the interrupt Disabling an axis from participation clears the corresponding source bit when the next activity or single tap double tap event occurs Link Bit A setting of 1 in the link bit with both the activity and inactivity functions enabled delays the start of the activity function until inactivity is detected After activity is detected inactivity detection begins preventing the detection of activity This bit serially links the activity and inactivity functions When this bit is set to 0 the inactivity and activity functions are concurrent Additional information can be found in the Link Mode section When clearing the link bit it is recommended that the part be placed into standby mode and then set back to measurement mode with a subsequent write This is done to ensure that the device is properly biased if sleep mode is manually disabled otherwise the first few samples of data after the link bit is cleared may have additional noise especially if the device was asleep when the bit was cleared AUTO_SLEEP Bit If the link bit is set a setting of 1 in the AUTO_SLEEP bit enables the auto sleep functionality In this mode the ADXL345 auto matically switches to sleep mode if the inactivity function is enabled and inactivity is detected that is when acceleration is below the THRESH_INACT val
67. tal harm Buyer uses or sells standard products for use in the above critical applications at Buyer s own risk and Buyer agrees to defend indemnify and hold harmless Analog Devices from any and all damages claims suits or expenses resulting from such unintended use 2009 2015 Analog Devices Inc All rights reserved Trademarks and AN ALOG registered trademarks are the property of their respective owners Rev E Page 40 of 40 www analog com D07925 0 6 15 E
68. to deassert the CS pin to ensure a total delay of 5 us otherwise the delay is not sufficient The total delay necessary for 5 MHz operation is at most 3 4 us This is nota concern when using I C mode because the communication rate is low enough to ensure a sufficient delay between FIFO reads Rev E Page 21 of 40 SELF TEST The ADXL345 incorporates a self test feature that effectively tests its mechanical and electronic systems simultaneously When the self test function is enabled via the SELF_TEST bit in the DATA_FORMAT register Address 0x31 an electrostatic force is exerted on the mechanical sensor This electrostatic force moves the mechanical sensing element in the same manner as acceleration and it is additive to the acceleration experienced by the device This added electrostatic force results in an output change in the x y and z axes Because the electrostatic force is proportional to Vs the output change varies with Vs This effect is shown in Figure 43 The scale factors shown in Table 14 can be used to adjust the expected self test output limits for different supply voltages Vs The self test feature of the ADXL345 also exhibits a bimodal behavior However the limits shown in Table 1 and Table 15 to Table 18 are valid for both potential self test values due to bimodality Use of the self test feature at data rates less than 100 Hz or at 1600 Hz may yield values outside these limits Therefore the part must be in n
69. together The number of samples averaged is a choice of the system designer but a recommended starting point is 0 1 sec worth of data for data rates of 100 Hz or greater This corresponds to 10 samples at the 100 Hz data rate For data rates less than 100 Hz it is recommended that at least 10 samples be averaged together The averaged values should be stored and labeled appropriately as the self test disabled data that is Xsr_orr Ysr_orr and Zsr orr Next self test should be enabled by setting Bit D7 SELF_TEST of the DATA_FORMAT register Address 0x31 The output needs some time about four samples to settle after enabling self test After allowing the output to settle several samples of the x y and z axis acceleration data should be taken again and averaged It is recommended that the same number of samples be taken for this average as was previously taken These averaged values should again be stored and labeled appropriately as the value with self test enabled that is Xsr ow Ysr_on and Zsr_on Self test can then be disabled by clearing Bit D7 SELF_TEST of the DATA_FORMAT register Address 0x31 With the stored values for self test enabled and disabled the self test change is as follows Xsr Xst_on Xsr orr Ysr Yst_on Ysr orr Zsr Zst_on Zst_OFF Because the measured output for each axis is expressed in LSBs Xsr Ysr and Zsr are also expressed in LSBs These values can be converted to g s of accel
70. tus bit in the INT SOURCE register regardless of which FIFO mode is selected Undesirable operation may occur ifa value of 0 is used for the samples bits when trigger mode is used Table 23 Samples Bits Functions FIFO Mode Samples Bits Function Bypass None FIFO Specifies how many FIFO entries are needed to trigger a watermark interrupt Stream Specifies how many FIFO entries are needed to trigger a watermark interrupt Trigger Specifies how many FIFO samples are retained in the FIFO buffer before a trigger event Register 0x39 FIFO STATUS Read Only D7 D6 D5 D4 D3 D2 D1 DO FIFO_TRIG 0 Entries D7 D6 D5 D4 D3 D2 D1 DO FIFO_MODE Trigger Samples FIFO_MODE Bits These bits set the FIFO mode as described in Table 22 FIFO_TRIG Bit A 1 in the FIFO_TRIG bit corresponds to a trigger event occurring and a 0 means that a FIFO trigger event has not occurred Entries Bits These bits report how many data values are stored in FIFO Access to collect the data from FIFO is provided through the DATAX DATAY and DATAZ registers FIFO reads must be done in burst or multiple byte mode because each FIFO level is cleared after any read single or multiple byte of FIFO FIFO stores a maximum of 32 entries which equates to a maximum of 33 entries available at any given time because an additional entry is available at the output filter of the device Rev E Page 27
71. ue for at least the time indicated by TIME INACT If activity is also enabled the ADXL345 automatically wakes up from sleep after detecting activity and returns to operation at the output data rate set in the BW RATE register A setting of 0 in the AUTO SLEEP bit disables automatic switching to sleep mode See the description of the Sleep Bit in this section for more information on sleep mode Rev E Page 25 of 40 ADXL345 If the link bit is not set the AUTO_SLEEP feature is disabled and setting the AUTO_SLEEP bit does not have an impact on device operation Refer to the Link Bit section or the Link Mode section for more information on utilization of the link feature When clearing the AUTO_SLEEP bit it is recommended that the part be placed into standby mode and then set back to measure ment mode with a subsequent write This is done to ensure that the device is properly biased if sleep mode is manually disabled otherwise the first few samples of data after the AUTO_SLEEP bit is cleared may have additional noise especially if the device was asleep when the bit was cleared Measure Bit A setting of 0 in the measure bit places the part into standby mode and a setting of 1 places the part into measurement mode The ADXL345 powers up in standby mode with minimum power consumption Sleep Bit A setting of 0 in the sleep bit puts the part into the normal mode of operation and a setting of 1 places the part into sleep mode
72. ution or 0 75 LSB rms all g ranges full resolution Z Axis ODR 100 Hz for 2 g 10 bit resolution or 1 1 LSB rms all g ranges full resolution OUTPUT DATA RATE AND BANDWIDTH User selectable Output Data Rate ODR 0 1 3200 Hz SELF TEST Output Change in X Axis 0 20 2 10 g Output Change in Y Axis 2 10 020 g Output Change in Z Axis 0 30 3 40 g POWER SUPPLY Operating Voltage Range Vs 2 0 2 5 3 6 V Interface Voltage Range Vpbp vo 14 1 8 Vs V Supply Current ODR 100 Hz 140 uA ODR lt 10 Hz 30 yA Standby Mode Leakage Current 0 1 uA Turn On and Wake Up Time ODR 3200 Hz 1 4 ms Rev E Page 4 of 40 Parameter Test Conditions Min Typ Max Unit TEMPERATURE Operating Temperature Range 40 WEIGHT Device Weight 85 C 30 mg The typical specifications shown are for at least 68 of the population of parts and are based on the worst case of mean 1 o except for 0 g output and sensitivity which represents the target value For 0 g offset and sensitivity the deviation from the ideal describes the worst case of mean 1 o Cross axis sensitivity is defined as coupling between any two axes 3 Bandwidth is the 3 dB frequency and is half the output data rate bandwidth ODR 2 4 The output format for the 3200 Hz and 1600 Hz ODRs is different than the output format for the remaining ODRs This difference is described in the Data Formatting of Upper Data Rates section 5 Output data rat
73. y reading the INT_SOURCE register Address 0x30 for the remaining interrupts This section describes the interrupts that can be set in the INT_ENABLE register and monitored in the INT_SOURCE register DATA_READY The DATA_READY bit is set when new data is available and is cleared when no new data is available SINGLE_TAP The SINGLE_TAP bit is set when a single acceleration event that is greater than the value in the THRESH_TAP register Address 0x1D occurs for less time than is specified in the DUR register Address 0x21 Table 13 Interrupt Pin Digital Output DOUBLE_TAP The DOUBLE_TAP bit is set when two acceleration events that are greater than the value in the THRESH_TAP register Address 0x1D occur for less time than is specified in the DUR register Address 0x21 with the second tap starting after the time specified by the latent register Address 0x22 but within the time specified in the window register Address 0x23 See the Tap Detection section for more details Activity The activity bit is set when acceleration greater than the value stored in the THRESH_ACT register Address 0x24 is experienced on any participating axis set by the ACT_INACT_CTL register Address 0x27 Inactivity The inactivity bit is set when acceleration of less than the value stored in the THRESH_INACT register Address 0x25 is experienced for more time than is specified in the TIME_INACT register Address 0x26 on all participating axes as

Download Pdf Manuals

image

Related Search

Related Contents

OK - 取扱説明書ダウンロード  Droit du travail pour non-juriste : mode d`emploi  PowerLite Pro G6750WU  robotic arm robotarm bras robotique brazo  Helios 7TM - Titan Controls  750E 750E  Manuale d`installazione e uso - Envoy  Massive Floor lamp 42069/17/10  USER MANUAL  LMS Baby System MANUEL D`UTILISATION  

Copyright © All rights reserved.
Failed to retrieve file