External trigger input and SPI trigger command
Peak acceleration sample-and-hold
Peak XYZ sum-of-squares output
1600 Hz (X, Y) and 550 Hz (Z) sensor bandwidth
Digitally controlled bias correction
Digitally controlled sample rate, up to 4096 SPS
Programmable alarms for condition monitoring
Programmable digital input/output lines
Data-ready output and alarm indicator output
Real-time clock
Digitally activated self-test
Embedded temperature sensor
Programmable power management
SPI-compatible serial interface
Auxiliary 10-bit ADC input
Two analog trigger inputs with programmable threshold
Single-supply operation: 2.4 V to 3.6 V
>4000 g powered shock survivability
APPLICATIONS
Crash or impact detection
Condition monitoring of valuable goods
Safety, shut-off sensing
Impact event recording
Security sensing and tamper detection
Low Power, Programmable
FUNCTIONAL BLOCK DIAGRAM
Figure 1.
GENERAL DESCRIPTION
The ADIS16240 is a fully integrated digital shock detection and
recorder system. It combines industry-leading iMEMS® technology
with a signal processing solution that optimizes dynamic performance for low power applications. The triple-axis sensing element
enables shock measurement in all directions, eliminating the need
for additional sensors and complex mechanical structures for
many applications. The digital serial peripheral interface (SPI)
uses four wires and is compatible with most processor platforms.
The SPI interface provides access to sensor data and a set of configuration registers that control such operational parameters as
offset bias correction, sample rate, sleep mode, peak detection,
and event capture.
Information furnished by Anal og Devices is believed to be accurate and reliable. However, no
responsibility is assumed by Analo g Devices for its use, nor for any infringements of patents or ot her
rights of third parties that may result from its use. Specifications su bject to change without notice. No
license is granted by implication or ot herwise under any patent or patent rights of An alog Devices.
The programmable event recorder offers two trigger modes. The
internal mode monitors continuous sampled data and triggers the
capture, based on the user-defined threshold. The external mode
uses the two comparator inputs and a user-defined threshold to
trigger the event captures. This function also provides user configuration controls for capture length, pretrigger data, and data storage.
Each event is stored with a header that captures temperature, power
supply, and time. Several power management features, including
sleep mode and a wake-up function, enable power optimization
with respect to specific mechanical system requirements.
The ADIS16240 is available in a 12 mm × 12 mm laminate-based
ball grid array (BGA) that meets IPC/JEDEC standards for Pb-free
solder reflow processing (J-STD-020C and J-STD-033).
One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A.
Tel: 781.329.4700 www.analog.com
Page 2
ADIS16240 Data Sheet
TABLE OF CONTENTS
Features .............................................................................................. 1
TA = 25°C, VDD = 2.4 V to 3.6 V unless otherwise noted.
Table 1.
Parameter Conditions Axis Min Typ Max Unit
ACCELEROMETER
Dynamic Range ±16 ±19
Initial Sensitivity 51.4 mg/LSB
Sensitivity Temperature Coefficient −40°C to +85°C ±0.01 %
Sensitivity Change with Supply Voltage 2.4 V < VDD < 3.6 V X, Y 6 %
Sensor-to-Sensor Alignment Error ±0.1 Degrees
Cross-Axis Sensitivity ±1 %
Initial Bias Error −2.7 +2.7
Bias Temperature Coefficient ±1 mg/°C
Bias Voltage Sensitivity TBD mg/V
Output Noise 24 mg rms
Noise Density 480
Bandwidth No external capacitance X, Y 1600 Hz
Sensor Resonant Frequency 5.5 kHz
Self-Test Change in Output Response X −10 −21 −39 LSB
Y +10 +21 +39 LSB
Z +10 +36 +65 LSB
TEMPERATURE SENSOR SCALE FACTOR TEMP_OUT = 0x0133 (307) at 25°C 0.244 °C/LSB
ADC INPUT
Input Range 0 VDD V
Resolution 10 Bits
Integral Nonlinearity, INL ±1 ±2 LSB
Differential Nonlinearity, DNL ±1 ±1.25 LSB
Offset Error ±1 ±2 LSB
Gain Error ±1 ±3 LSB
Input Capacitance 11 pF
LOGIC INPUTS1
Input High Voltage, V
Input Low Voltage, V
Logic 1 Input Current, I
Logic 0 Input Current, I
2.0 V
INH
0.8 V
INL
VIH = VDD ±0.2 ±1 µA
INH
VIL = 0 V −40 −60 μA
INL
Input Capacitance, CIN 10 pF
DIGITAL OUTPUTS
Output High Voltage, VOH I
Output Low Voltage, VOL I
= 1.6 mA 2.4 V
SOURCE
= 1.6 mA 0.4 V
SINK
START-UP TIME
Initial, Reset Recovery 32 ms
FLASH MEMORY
Endurance2 10,000 Cycles
Data Retention3 TJ = 85°C 20 Years
CONVERSION RATE SETTING 4096 SPS
POWER SUPPLY 2.4 3.6 V
Average Supply Current4 SMPL_PRD = 0x1F, VDD = 2.5 V 1 mA
g
g
µg/√Hz
1
Note that the inputs are 5 V tolerant.
2
Endurance is qualified as per JEDEC Standard 22, Method A117 and measured at −40°C, +25°C, +85°C, and +105°C.
3
Retention lifetime equivalent at junction temperature (TJ) of 55°C as per JEDEC Standard 22, Method A117. Retention lifetime decreases with junction temperature.
4
Instantaneous current has periodic peaks at the sample rate that can reach 30 mA.
Rev. A | Page 3 of 20
Page 4
ADIS16240 Data Sheet
t
Data input hold time after SCLK rising edge
20
ns
CS
SCLK
t
DATARATE
08133-002
CS
SCLK
DOUT
DIN
1234561516
W/RA5A6A4A3A2
D2
MSB
DB14
D1LSB
DB13DB12DB10DB11DB2LSBDB1
t
CS
t
SFS
t
DAV
t
DHD
t
DSU
08133-003
TIMING SPECIFICATIONS
TA = 25°C, VDD = 3.3 V, unless otherwise noted.
Table 2.
Parameter Description Min1 Typ Max1 Unit
f
Serial clock rate2 0.01 2.5 MHz
SCLK
t
Chip select period
DATA RATE
tCS Chip select to clock edge 120 ns
t
Data output valid after SCLK edge 30 ns
DAV
t
Data input setup time before SCLK rising edge 20 ns
DSU
DHD
tDF Data output fall time 10 25 ns
tDR Data output rise time 10 25 ns
t
SFS
1
Guaranteed by design; typical specifications are not tested or guaranteed.
2
Based on sample rate selection.
CS high after SCLK edge
Timing Diagrams
2
60 μs
430 ns
Figure 2. SPI Chip Select Timing
Figure 3. SPI Timing (Utilizing SPI Settings Typically Identified as Phase = 1, Polarity = 1)
Rev. A | Page 4 of 20
Page 5
Data Sheet ADIS16240
Parameter
Rating
Storage Temperature Range
−65°C to +150°C
ABSOLUTE MAXIMUM RATINGS
Table 3.
Acceleration
Any Axis, Unpowered 2000 g
Any Axis, Powered 2000 g
VDD to GND −0.3 V to +3.6 V
Digital Input Voltage to GND −0.3 V to VDD + 0.3 V
Analog Inputs to GND −0.3 V to VDD + 0.3 V
Operating Temperature Range −40°C to +85°C
Stresses above those listed under Absolute Maximum Ratings
may cause permanent damage to the device. This is a stress
rating only; functional operation of the device at these or any
other conditions above those indicated in the operational
section of this specification is not implied. Exposure to absolute
maximum rating conditions for extended periods may affect
device reliability.
ESD CAUTION
Rev. A | Page 5 of 20
Page 6
ADIS16240 Data Sheet
08133-004
214
5
6
9
10
11
3
7
8
A
B
TOP VIEW
NOTES
1. THE ACTUAL PI NS ARE NOT
VISIBLE FROM T HE TO P VIEW.
C
D
E
F
G
J
H
K
L
A
Z
A1
A
Y
A
X
A
Z
A
Y
A
X
08133-005
X
E10, E11
SCLK
I
SPI Serial Clock
K8, L8
AN I Analog Input Channel
H1, H2
YA O Y-Axis Accelerometer Filter Pin
NC No Connect
PIN CONFIGURATION AND FUNCTION DESCRIPTIONS
Figure 4. Pin Configuration (Top View)
Figure 5. Axis Orientation of Device (Top View)
Table 4. Pin Function Descriptions
Pin No. Mnemonic Type1 Description
F10, F11
CS
I SPI Chip Select, Active Low
G10, G11 DIN I SPI Data Input
H10, H11 DOUT O SPI Data Output
J10, J11 DIO2 I/O Multifunction Digital Input/Output 2
K9, L9 DIO1 I/O Multifunction Digital Input/Output 1
K7, L7 CMP2 I Analog Comparator Input 2
K6, L6 CMP1 I Analog Comparator Input 1
K3, L3
J1, J2 XA O X-Axis Accelerometer Filter Pin
G1, G2 ZA O Z-Axis Accelerometer Filter Pin
A5, B5 ST I Self-Test Input Control Line
D4 to D8, E4, E8, F4, F8, G4, G8, H4 to H8 VDD S Power Supply, 3.3 V
A1, A2, A10, A11, B1, B2, B10, B11, C3 to C9, D3, D9, E3, E9, F3, F9,
I = input, O = output, I/O = input/output, S = supply.
RST
I Reset, Active Low, No Pull-Up Resistor
GND S Ground
Rev. A | Page 6 of 20
Page 7
Data Sheet ADIS16240
0.3
0.8
1.3
1.8
2.3
2.8
3.3
0500 1000 1500 2000 2500 3000 3500 4000 4500
SUPPLY CURRENT (mA)
SAMPLE RATE (SPS)
08133-106
0.2
0
0.4
0.6
0.8
1.0
1.2
SUPPLY CURRENT (mA)
1.4
1.6
2.42.62.83.0
SUPPLY VOLTAGE (V)
3.23.43.6
08133-107
0.9
1.0
1.1
1.2
1.3
1.4
1.5
–40 –30 –20 –10 0 10 20 30 40 50 60 70 80 90
SUPPLY CURRENT (mA)
TEMPERATURE (°C)
3.0V
3.6V
08133-110
2.4V
08133-108
CH1 20.0VM40.0µsA CH1 17.2mV
1
T 40.5304µs
CURRENT
30mA PEAK
08133-109
CH1 50.0VM40.0µsA CH1 73.0mV
1
T 40.5304µs
CURRENT
30mA PEAK
TYPICAL PERFORMANCE CHARACTERISTICS
Figure 6. Supply Current vs. Sample Rate
Figure 7. Supply Current vs. Supply Voltage
Figure 9. Instantaneous Supply Current
Figure 10. Instantaneous Supply Current
Figure 8. Supply Current vs. Temperature
Rev. A | Page 7 of 20
Page 8
ADIS16240 Data Sheet
MOVABLE
FRAME
ACCELERATI ON
UNIT
FORCING
CELL
UNIT SENSING
CELL
MOVING
PLATE
FIXED
PLATES
PLATE
CAPACITORS
ANCHOR
ANCHOR
08133-007
MEMS
SENSOR
CLOCK
CONTROLLER
INPUT/OUTPUT
FUNCTIONS
CAPTURE
BUFFER
CONTROL
REGISTERS
SPI SIGNALS
SPI PORT
OUTPUT
REGISTERS
08133-008
NONVOLATILE
FLASH MEMORY
(NO SPI ACCESS)
MANUAL
FLASH
BACKUP
START-UP
RESET
VOLATILE
SRAM
(SPI ACCESS)
08133-009
THEORY OF OPERATION
The ADIS16240 is a triple-axis accelerometer system for shock
detection and recording applications. This sensing system collects
data autonomously and makes it available to any processor system
that supports a 4-wire serial peripheral interface (SPI).
SENSING ELEMENT
Digital shock sensing starts with the triple-axis MEMS sensing
element in the ADIS16240. This element provides a linear motionto-electrical transducer function. Figure 11 provides a basic
physical diagram of the sensing element and its response to
linear acceleration. It uses a fixed frame and a moving frame to
form a differential capacitance network that responds to linear
acceleration. Tiny springs tether the moving frame to the fixed
frame and govern the relationship between acceleration and
physical displacement. A modulation signal on the moving plate
feeds through each capacitive path into the fixed frame plates
and into a demodulation circuit, which produces the electrical
signal that is proportional to the acceleration acting on the device.
USER INTERFACE
SPI Interface
Data collection and configuration commands both use the SPI,
CS
which consists of four wires. The chip select (
the SPI interface, and the serial clock (SCLK) synchronizes the
serial data lines. The serial input data clocks into DIN on the rising
edge of SCLK, and the serial output data clocks out of DOUT on
the falling edge of SCLK. Many digital processor platforms
support this interface with dedicated serial ports and simple
instruction sets.
User Registers
The user registers provide addressing for all input/output
operations on the SPI interface. Each 16-bit register has its own
unique bit assignment and has two 7-bit addresses: one for its
upper byte and one for its lower byte. Tab l e 7 provides a memory
map for each register and identifies output registers as read only
(R) and configuration registers as either read/write (R/W) or write
only (W). The control registers use a dual-memory structure. The
SRAM controls operation while the part is on and facilitates all user
configuration inputs. The flash memory provides nonvolatile storage for the control registers that are identified with a “yes” in the
flash backup column in Tabl e 7. Storing configuration data in the
flash memory requires a manual command (see GLOB_CMD[3]
in Tabl e 24). When the device starts up from an initial power-up
or reset, the flash memory contents load into the SRAM. Then
the device starts producing data according to the configuration
in the control registers.
) signal activates
DATA SAMPLING AND PROCESSING
The analog acceleration signals feed into an analog-to-digital
converter stage that passes digitized data into the controller for
data processing and capture. The ADIS16240 runs autonomously,
based on the configuration in the user control registers.
Figure 11. MEMS Sensor Diagram
Figure 12. Simplified Sensor Signal Processing Diagram
Figure 13. Control Registers—SRAM and Flash Memory Diagram
CAPTURE
The ADIS16240 offers a recorder function that captures
acceleration information based on either internal or external
triggers. The buffer memory is 3 × 8192 samples and is capable
of storing multiple trigger events.
Rev. A | Page 8 of 20
Page 9
Data Sheet ADIS16240
CS
ADIS16240
SPI SLAVE
SCLK
DIN
DOUT
DIO1
DIO2
SS
V
DD
V
DD
SYSTEM PROCESSOR
SPI MASTER
SCLK
MOSI
MISO
IRQ1
IRQ2
08133-010
MOSI
Master output, slave input.
MSB First
Bit sequence.
UPPER BYTE
15 14 13 12 11 10 9876543210
LOWER BYTE
08133-011
CS
DIN
SCLK
08133-012
CS
DIN
SCLK
DIN = 0x0400 PRODUCES X ACCL_OUT CONTENTS ON
DOUT DURING THE NEXT SP I SEGMENT
DOUT
SPI SEGMENT 1SPI SEGMENT 2
DOUT = 0x802B = 2.21g, NEW DATA
DIN = 0x0600 TO READ Y ACCL_OUT
08133-013
BASIC OPERATION
The ADIS16240 starts up automatically when it has a valid power
supply and begins producing digital acceleration data in the output
registers. When using the factory-default configuration, DIO1
serves as a data-ready indicator signal that can drive a processor
interrupt function. Figure 14 shows a schematic for connecting
to a SPI-compatible processor platform, referred to as the SPI
master.
User registers govern all data collection and configuration. Table 7
provides a memory map that includes all user registers, along with
references to bit assignment tables that follow the generic assignments in Figure 15.
Figure 15. Generic Register Bit Assignments
SPI Write Commands
Master processors write to the control registers, one byte at a
time, using the bit assignments shown in Figure 18. The programmable registers in Tabl e 7 provide controls for optimizing sensor
operation and for starting various automated functions. For
example, set GLOB_CMD[8] = 1 (DIN = 0xCB01) to wake up the
device.
Figure 14. Electrical Hook-Up Diagram
Table 5. Generic Master Processor Pin Names and Functions
Pin Name Function
SS
Slave select.
IRQ1, IRQ2 Interrupt request inputs.
MISO Master input, slave output.
SCLK Serial clock.
The ADIS16240 SPI interface supports full duplex serial communication (simultaneous transmit and receive) and uses the bit
sequence shown in Figure 18. Processor platforms typically support
SPI communication with general-purpose serial ports that require
some configuration in their control registers. Table 6 lists the most
common settings that require attention when initializing a processor serial port for communication with the ADIS16240.
Table 6. Generic Master Processor SPI Settings
Processor Setting Description
Master The ADIS16240 operates as a slave.
SCLK Rate ≤ 2.5 MHz Bit rate setting.
SPI Mode 3 (1,1) Clock polarity/phase (CPOL = 1, CPHA = 1).
16-Bit Shift register/data length.
Figure 16. SPI Sequence for a Wake-Up Command (DIN = 0xCB01)
Some configurations require writing both bytes to a register,
which takes two separate 16-bit sequences. See GLOB_CMD[3]
in Tabl e 24 for backing up configuration data in nonvolatile
flash memory.
SPI Read Commands
Reading data on the SPI requires two consecutive 16-bit
sequences. The first sequence transmits the read command on
DIN, and the second sequence receives the resulting data from
D O U T. T he 7-bit register address can represent either the upper
or lower byte address for the target register. For example, DIN
can be either 0x0200 or 0x0300 when reading the SUPPLY_OUT
register. The SPI operates in full duplex mode, which means that
the master processor can read the output data from DOUT while
using the same SCLK pulses to transmit a new command on
DIN. In Figure 17, the second SPI segment sets up the device to
read YACCL_OUT on the following SPI segment (not shown).
Figure 17. Example SPI Read Sequence
Rev. A | Page 9 of 20
Page 10
ADIS16240 Data Sheet
YACCL_OUT
R
No
0x06
N/A
Output, y-axis accelerometer
See Table 9
ZPEAK_OUT
R
No
0x12
N/A
Output, z-axis acceleration peak
See Table 9
CLK_DATE
R/W
Yes
0x30
0x0000
Clock, month and day
See Table 30
MSC_CTRL
R/W
No
0x46
0x0006
Miscellaneous control
See Table 25
R/W
R/W
A6A5A4A3A2A1A0 DC7 DC6 DC5 DC4 DC3 DC2 DC1 DC0
D0D1D2D3D4D5D6D7D8D9D10D11D12D13
D14
D15
NOTES
1. DOUT BITS ARE BASED ON THE PREVIO US 16- BIT SEQUE NCE , WHEN R/W = 0.
CS
SCLK
DIN
DOUT
A6A5
D13D14D15
08133-014
MEMORY MAP
Note that all registers are two bytes. All unused memory locations are reserved for future use.
Table 7. User Register Memory Map
Register
Name
Read/
Write
Flash
Backup
Register
Address
1
Default Function
FLASH_CNT R Yes 0x00 N/A Flash memory write count N/A
SUPPLY_OUT R No 0x02 N/A Output, power supply See Table 10
XACCL_OUT R No 0x04 N/A Output, x-axis accelerometer See Table 9
ZACCL_OUT R No 0x08 N/A Output, z-axis accelerometer See Table 9
AUX_ADC R No 0x0A N/A Output, auxiliary ADC input See Table 8
TEMP_OUT R No 0x0C N/A Output, temperature See Table 11
XPEAK_OUT R No 0x0E N/A Output, x-axis acceleration peak See Table 9
YPEAK_OUT R No 0x10 N/A Output, y-axis acceleration peak See Table 9
XYZPEAK_OUT R No 0x14 N/A Output, sum-of-squares acceleration peak See Table 8
CAPT_BUF1 R 0x16 N/A Output, Capture Buffer 1, X and Y acceleration See Table 18
CAPT_BUF2 R 0x18 N/A Output, Capture Buffer 2, Z acceleration See Table 19
DIAG_STAT R 0x1A 0x0000 Diagnostic, error flags See Table 28
EVNT_CNTR R 0x1C 0x0000 Diagnostic, event counter See Table 21
CHK_SUM R Ye s 0x1E N/A Diagnostic, check sum value from firmware test See Table 34
XACCL_OFF R/W Ye s 0x20 0x0000 Calibration, x-axis acceleration offset adjustment See Table 27
YACCL_OFF R/W Yes 0x22 0x0000 Calibration, y-axis acceleration offset adjustment See Table 27
ZACCL_OFF R/W Yes 0x24 0x0000 Calibration, z-axis acceleration offset adjustment See Table 27
CLK_TIME R/W Yes 0x2E 0x0000 Clock, hour and minute See Table 29
Bit
Assignments
CLK_YEAR R/W Yes 0x32 0x0000 Clock, year See Table 31
WAKE_TIME R/W Yes 0x34 0x0000 Wake-up setting, hour and minute See Table 32
WAKE_DATE R/W Yes 0x36 0x0000 Wake-up setting, month and day See Table 33
ALM_MAG1 R/W Ye s 0x38 0x9000 Alarm 1 amplitude threshold See Table 13
ALM_MAG2 R/W Ye s 0x3A 0x9000 Alarm 2 amplitude threshold See Table 13
ALM_CTRL R/W Ye s 0x3C 0x0000 Alarm control See Table 12
XTRIG_CTRL R/W Yes 0x3E 0x0000 Capture, external trigger control See Table 15
CAPT_PNTR R/W Yes 0x40 0x0000 Capture, address pointer See Table 20
CAPT_CTRL R/W Yes 0x42 0x0022 Capture, configuration and control See Table 17
GPIO_CTRL R/W No 0x44 0x0000 General-purpose digital input/output control See Table 26
SMPL_PRD R/W Yes 0x48 0x001F Internal sample period (rate) control See Table 23
GLOB_CMD W Yes 0x4A N/A System command See Table 24
1
Each register contains two bytes. The address of the lower byte is displayed. The address of the upper byte is equal to the address of the lower byte plus 1.
Figure 18. SPI Communication Bit Sequence
Rev. A | Page 10 of 20
Page 11
Data Sheet ADIS16240
MSB FOR 10-BI T OUTPUT
ND EA
xxxx D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
08133-015
XPEAK_OUT1
10
Twos complement
51.4 mg
OUTXYZPEAKXYZ
rms
_=
… … …
…
01 0011 0010
0x132
306
+24.756°C
OUTPUT DATA REGISTERS
Each output data register uses the bit assignments shown in
Figure 19. The ND flag indicates that unread data resides in the
register. This flag clears and returns to 0 after reading the register.
It returns to 1 after the next internal sample updates the register
with new data. When the data-ready function (the DIO1 and
DIO2 pins and the MSC_CTRL register; see Ta bl e 25) drives
data collection, the ND bit is always high and does not require
validation. The EA flag indicates that one of the error flags in the
DIAG_STAT register (see Ta ble 28) is active (true).
Processing sensor data starts with reading the appropriate output
data register using the SPI. For example, use DIN = 0x0E00
to read the XPEAK_OUT register. Use the ND and EA bits to
validate new data and normal operating status, if necessary. Then
mask off all of the nondata bits and calculate the data, using the
format and scale information shown in Ta b le 8. For example,
XACCL_OUT[9:0] and XYZPEAK_OUT[11:0] contain all
relevant data for their function. Tab l e 9, Tab l e 10, and Tab l e 11
provide output code examples for each output register.
The XACCL_OUT register is located at Address 0x05[15:8] and Address 0x04[7:0].
The YACCL_OUT register is located at Address 0x07[15:8] and Address 0x06[7:0].
The ZACCL_OUT register is located at Address 0x09[15:8] and Address 0x08[7:0].
The XPEAK_OUT register is located at Address 0x0F[15:8] and Address 0x0E[7:0].
The YPEAK_OUT register is located at Address 0x11[15:8] and Address 0x10[7:0].
The ZPEAK_OUT register is located at Address 0x13[15:8] and Address 0x12[7:0].
When MSC_CTRL[14] = 1, the XPEAK_OUT, YPEAK_OUT,
and ZPEAK_OUT registers track the peak acceleration in each
acceleration output register. When MSC_CTRL[15] = 1, use the
following equation to calculate the root mean square (rms) of all
three peak registers, where 1 LSB = 0.822 g:
Set GLOB_CMD[5] = 1 to reset these registers to 0x0000.
The TEMP_OUT register is located at Address 0x0D[15:8] and Address 0x0C[7:0].
Rev. A | Page 11 of 20
Page 12
ADIS16240 Data Sheet
2
Alarm indicator enable: 1 = enabled, 0 = disabled
14
Unused
0xB980,
7
External Trigger 1 direction: 0 = <, 1 = >
0xBD80
Set Alarm 2 to an external trigger (ALM_CTRL)
[15:8]
Unused
EVENT RECORDER
The ADIS16240 provides a 3 × 8192 (8-bit) buffer memory for
reading transient acceleration data on all three axes (x, y, and z).
There are a number of user controls for tailoring the event recorder
for optimal system-level operation. Alarm 1 and Alarm 2 provide
internal and external trigger options for starting a data capture
sequence.
Internal Trigger Setup
Select the trigger data source for Alarm 1 and Alarm 2 using
ALM_CTRL[15:8] (see Table 12). The ALM_MAG1 and ALM_
MAG2 registers contain threshold magnitude and direction
settings for Alarm 1 and Alarm 2, respectively. The format for
the data bits in these registers matches the trigger data source,
which is set using ALM_CTRL[15:8]. For example, if ALM_
CTRL[15:12] equals 0010, then the format matches that of
XACCL_OUT: 10-bit, twos complement, with 1 LSB = 51.4 mg
of acceleration.
The ALM_CTRL register is located at Address 0x3D[15:8] and Address 0x3C[7:0].
Table 13. ALM_MAG1, ALM_MAG2 Register Bit Descriptions1
Bit Description (Default = 0x9000)
15 Threshold direction
1 = active for output greater than alarm magnitude
0 = inactive for output less than alarm magnitude
[13:0]
Trigger threshold; bit format matches that of the register
selected by ALM_CTRL[15:8] but is unsigned.
1
The ALM_MAG1 register is located at Address 0x39[15:8] and Address 0x38[7:0].
The ALM_MAG2 register is located at Address 0x3B[15:8] and Address 0x3A[7:0].
Table 14. Internal Trigger Setup Example
DIN Description
0xBD44 Set Alarm 1 and Alarm 2 to ZACCL_OUT
Set Alarm 1 to trigger on a measured acceleration
0xB832
0xBB00,
0xBA0A
0xBC37
that has a magnitude of >2.57 g
Set Alarm 2 to trigger on a measured acceleration
that has a magnitude of <0.5 g
Activate Alarm 1 and Alarm 2 to trigger capture events,
and configure DIO2 as a positive alarm indicator output.
External Trigger Setup
ALM_CTRL[15:8] and XTRIG_CTRL (see Tab l e 15) provide all
of the settings needed to govern the use of the comparator pins
(CMP1, CMP2) as external trigger inputs.
The XTRIG_CTRL register is located at Address 0x3F[15:8] and Address 0x3E[7:0].
Table 16. External Trigger Setup Example
DIN Description
0xBE1C
Activate and set CMP2 to trigger on signals that are
greater than one-half of the supply voltage (XTRIG_CTRL)
0xBC20 Activate Alarm 2 to trigger data capture (ALM_CTRL)
If the device is in standby mode, an external trigger on CMD1 or
CMD2 awakens the device and initiates an event capture. The first
sample is taken 0.2 ms + sample period (SMPL_PRD[7:0]) after
the trigger edge.
Buffer Memory Configuration
CAPT_CTRL (see Tab l e 17) manages the buffer memory for the
event recorder using two programmable controls: event length and
pretrigger length.
1
Table 17. CAPT_CTRL Register Bit Descriptions
Bit Description (Default = 0x0022)
[7:4] Pretrigger length control factor (P), binary format
3 Unused
[2:0] Event length control factor (T ), binary format
1
The CAPT_CTRL register is located at Address 0x43[15:8] and Address 0x42[7:0].
The event length (NL) also determines the number of events (NE)
that the buffer can store at one time.
Rev. A | Page 12 of 20
Page 13
Data Sheet ADIS16240
8192
SAMPLES
EVENT 1
EVENT N
E
N
L
NL=
2
T
1024
NE= 8 × 2
T
EVENT 2
08133-016
616−=
L
PRE
N
N
XYZPEAK_OUT
TIME
DATE
TEMP_OUT
SUPPLY_OUT
AUX_ADC
0
0
0
0
0
0
Z
–26
Z
–25
Z
–1
Z
0
Z
1
Y
–1
Y
0
Y
1
X
–1
X
0
X
1
Z
223
Y
223
X
223
Y
–26
Y
–25
X
–26
X
–25
0
0
0
0
0
0
0
0
255
0
1
2
3
4
5
6
7
31
32
33
POSTTRIGGER
DATA
PRETRIGGER
DATA
EVENT
HEADER
BUFFER 2BUFFER 1
08133-017
[7:0]
X-axis acceleration
CAPT_PNTR
CAPT_BUF2
USER ACCESIBL E
INTERNAL M E M ORY STRUCTURE
CAPT_BUF1
BUFFER 2BUFFER 1
08133-018
Figure 20. Event Storage in Buffer Memory
For example, if CAPT_CTRL[2:0] = 100, then T = 4, which
organizes the buffer memory into 128 events of 64 samples each.
Event Organization
Each event contains a header, pretrigger data, and posttrigger data,
as shown in Figure 21. The event header provides information
about the conditions that occur when the capture takes place.
CAPT_CTRL[7:4] sets the number of pretrigger samples in
each event. If N
is negative, there is no pretrigger data and
PRE
the first sample after the trigger follows the header.
Table 18. CAPT_BUF1 Register Bit Descriptions
1
Bit Description Format
[15:8] Y-axis acceleration
Twos complement,
205.7 mg/LSB
1
The CAPT_BUF1 register is located at Address 0x17[15:8] and Address 0x16[7:0].
Table 19. CAPT_BUF2 Register Bit Descriptions1
Bit Description Format
[15:8] Unused
[7:0] Z-axis acceleration
1
The CAPT_BUF2 register is located at Address 0x19[15:8] and Address 0x18[7:0].
Twos complement,
205.7 mg/LSB
Table 20. CAPT_PNTR Register Bit Descriptions1
Bit Description
[15:13] Unused
[7:0] Buffer address that loads into CAPT_BUF1, CAPT_BUF2
1
The CAPT_PNTR register is located at Address 0x41[15:8] and Address 0x40[7:0].
Figure 21. Default Event Organization
Reading Event Data
The CAPT_BUF1, CAPT_BUF2, and CAPT_PNTR registers
manage user access to data in the capture buffer (see Tab le 18,
Tabl e 19, and Ta b l e 20). The address pointer, CAPT_PNTR,
determines which capture memory location loads into the capture
buffer registers. It increments automatically with every CAPT_
BUF2 read. The most efficient method for reading the entire
buffer memory space is to alternate between the CAPT_BUF1
(DIN = 0x9600) and CAPT_BUF2 (DIN = 0x9800) read commands. When alternating the read sequences in this manner,
the CAP_PNTR increments automatically and optimizes SPI
processing resources. Writing to the CAPT_PNTR register provides access to individual locations in the capture. For example,
writing 0x0138 (DIN = 0xC038, DIN = 0xC101) to the CAPT_
PNTR register causes the 311
to load into the CAP_BUF1 and CAPT_BUF2 locations (see
Figure 22).
th
sample in each buffer memory
The EVNT_CNTR register (see Tab l e 21) provides a running count
for the number of triggers (internal and external) that occur after
a buffer clear and/or reset. If this number is greater than the
number of events, this indicates that the device has experienced
trigger events that it could not capture because its capture buffer
is full. The EVNT_CNTR returns to 0x0000 after a buffer clear
(GLOB_CMD[6] = 1 by DIN = 0xCA40), or a factory reset
(GLOB_CMD[1] = 1 by DIN = 0xCA02). After a power cycle or
software reset command, the EVNT_CNTR contains the number
of events stored in the buffer memory.
Table 21. EVNT_CNTR Register Bit Descriptions
Bit Description
[15:0] Binary event counter
1
The EVNT_CNTR register is located at Address 0x1D[15:8] and Address 0x1C[7:0].
Rev. A | Page 13 of 20
Figure 22. Capture Buffer Data Flow Diagram
1
Page 14
ADIS16240 Data Sheet
1024
33
32768
SR
4
Clear DIAG_STAT register
N/A
0
Data-ready line selection: 1 = DIO2, 0 = DIO1
Transient Behavior During Capture
During capture events, the device consumes an increased amount
of current for a short period. Following a capture event, sampling
suspends and the SPI commands are ignored by the sensor for
the pause times that are listed in Table 22.
Table 22. Postcapture Operation Pause Times
Event Length (Samples) Pause Time (ms)
<64 2
128 4
256 8
512 16
OPERATIONAL CONTROL
Internal Sample Rate
The SMPL_PRD register (see Tabl e 23) provides a user control
for sample rate adjustment, using the following equation:
f
=
S
N
For example, set SMPL_PRD[7:0] = 0x07 (DIN = 0xC807) to
configure the ADIS16240 to operate at its maximum sample
rate of 4096 SPS. Note that the sample rate affects power dissipation and peak resolution during event capture.
Table 23. SMPL_PRD Register Bit Descriptions
Bit Description (Default = 0x001F)
[15:0] Sample rate scale factor, binary format (NSR)
1
The SMPL_PRD register is located at Address 0x49[15:8] and Address 0x48[7:0].
Global Commands
For convenience, the GLOB_CMD register (see Tabl e 24) provides
an array of single-write commands. Setting the assigned bit to 1
activates each function, right after the 16
munication sequence. When the function completes, the bit
restores itself to 0. All commands in the GLOB_CMD register
require the power supply to be within normal limits for the
execution times listed in Tab l e 24. The execution times reflect the
factory default configuration, where applicable, and describe the
time required to return to normal operation. For example, set
GLOB_CMD[2] = 1 (DIN = 0xCA04) to place the part in standby
mode. Set GLOB_CMD[8] = 1 (DIN = 0xCB01) to wake up the
device and return to normal operation.
Input/Output Lines
The ADIS16240 provides two general-purpose digital input/
output lines that offer several functions. When using the factorydefault configuration, MSC_CTRL[2:0] establishes DIO1 as
a positive data-ready output. Change MSC_CTRL[2:0] to 100
(DIN = 0xC604) to make DIO1 a negative data-ready output
signal. ALM_CTRL[2:0] offers a control for setting one of the
digital signals as an alarm indicator. For example, set ALM_
CTRL[2:0] = 110 (DIN = 0xBC06) to set DIO1 as a positive
alarm indicator output signal. When configured as general-
)1(
+
1
th
SCLK in the SPI com-
Rev. A | Page 14 of 20
purpose lines, the GPIO_CTRL register configures DIO1 and
DIO2. For example, set GPIO_CTRL = 0x0103 (DIN = 0xC403,
then 0xC501) to set DIO1 and DIO2 as outputs, with DIO1 in
a 1 state and DIO2 in a 0 state. In the event of competing assignments, the order of precedence is MSC_CTRL, ALM_CTRL,
and GPIO_CTRL.
Table 24. GLOB_CMD Register Bit Descriptions
1
Bit Description Execution Time2
[15:9] Unused N/A
8 Wake up from standby mode 0.2 ms
7 Software reset 32 ms
6 Clear capture buffer flash memory 350 ms
5 Clear peak registers N/A
3 Save configuration to flash 24 ms
2 Start standby mode for low power N/A
1 Restore factory-default settings 350 ms
0 Auto-null N/A
1
The GLOB_CMD register is located at Address 0x4B[15:8] and Address 0x4A[7:0].
2
SPI processing and data sampling suspend for the indicated times.
Table 25. MSC_CTRL Register Bit Descriptions1
Bit Description (Default = 0x0006)
15 Enables sum-of-squares output (XYZPEAK_OUT)
14
Enables peak tracking output (XPEAK_OUT,
YPEAK_OUT, and ZPEAK_OUT)
[13:10] Unused
9 No self-test on startup when set to 1
8 Self-test enable: 1 = apply electrostatic force, 0 = disabled
[7:3] Unused
2 Data-ready enable: 1 = enabled, 0 = disabled
1 Data-ready polarity: 1 = active high, 0 = active low
1
The MSC_CTRL register is located at Address 0x47[15:8] and Address 0x46[7:0].
Table 26. GPIO_CTRL Register Bit Descriptions1
Bit Description (Default = 0x0000)
[15:10] Unused
9 General-Purpose I/O Line 2 data level
8 General-Purpose I/O Line 1 data level
[7:2] Unused
1 General-Purpose I/O Line 2, data direction control:
1 = output, 0 = input
0 General-Purpose I/O Line 1, data direction control:
1 = output, 0 = input
1
The GPIO_CTRL register is located at Address 0x45[15:8] and Address 0x44[7:0].
Offset Adjustment
The XACCL_OUT, YACCL_OFF, and ZACCL_OFF registers
add to the sensor outputs and provide a convenient offset adjustment function for each accelerometer output. For example, writing
0x0A to YACCL_OUT[7:0] (DIN = 0xA20A) results in a 514 mg
offset adjustment for the YACCL_OUT output data.
The XACCL_OFF register is located at Address 0x21[15:8] and Address 0x20[7:0].
The YACCL_OFF register is located at Address 0x23[15:8] and Address 0x22[7:0].
The ZACCL_OFF register is located at Address 0x25[15:8] and Address 0x24[7:0].
Diagnostics
For all of the error flags in the DIAG_STAT register (see Tabl e 28),
a 1 identifies an error condition, and a 0 signals normal operation.
All of the flags return to 0 after reading DIAG_STAT. If the power
supply is still out of range during the next sample cycle, DIAG_
STAT[0] and DIAG_STAT[1] return to 1. DIAG_STAT[9:8] provide flags to check for the alarms with respect to the conditions in
the ALM_CTRL and ALM_MAGx registers. DIAG_STAT[6]
contains the internal memory checksum result. If the sum of the
firmware program memory does not does not match the expected
value, this flag reports a 1. The SPI communication flag (DIAG_
STAT[3]) changes to 1 when the number of SCLK pulses during
a SPI transfer is not a multiple of 16 when
The DIAG_STAT register is located at Address 0x1B[15:8] and Address 0x1A[7:0].
Clock
The CLK_TIME, CLK_DATE, and CLK_YEAR registers provide
an internal clock that enables a time entry into the event header
and for user access. If CLK_TIME = 0x2231, the time is 22:31,
or 10:31 p.m. The CLK_DATE and CLK_YEAR registers follow
a similar binary-coded, decimal format.
The CLK_YEAR register is located at Address 0x33[15:8] and Address 0x32[7:0].
The WAKE_TIME and WAKE_DATE registers enable users
to program a specific time for the ADIS16240 to exit standby
mode. Enable this function by writing the wake-up time and
date to these registers.
Table 32. WAKE_TIME Register Bit Descriptions
1
Bit Description (Default = 0x0000)
15 Wake time enable (1 = enabled, 0 = disabled)
14 Unused
[13:12] Hours, 10s digit
[11:8] Hours, 1s digit
[6:4] Minutes, 10s digit
[3:0] Minutes, 1s digit
1
The WAKE_TIME register is located at Address 0x35[15:8] and Address 0x34[7:0].
The WAKE_DATE register is located at Address 0x37[15:8] and Address 0x36[7:0].
Checksum
Table 34. CHK_SUM Register Bit Descriptions1
Bit Description
[15:0] Sum of memory locations used to verify code integrity
1
The CHK_SUM register is located at Address 0x1F[15:8] and Address 0x1E[7:0].
Rev. A | Page 15 of 20
Page 16
ADIS16240 Data Sheet
2
2
2
APPLICATIONS INFORMATION
ASSEMBLY
When developing a process flow for installing the ADIS16240
devices on PCBs, see the JEDEC standard document J-STD-020C
for reflow temperature profile and processing information. The
ADIS16240 can use the Sn-Pb eutectic process and the Pb-free
eutectic process from this standard. See JEDEC J-STD-033 for
moisture sensitivity (MSL) handling requirements. The MSL
rating for these devices is marked on the antistatic bags, which
protect these devices from ESD during shipping and handling.
Prior to assembly, review the process flow for information about
introducing shock levels that exceed the absolute maximum
ratings for the ADIS16240. PCB separation and ultrasonic
cleaning processes can introduce high levels of shock and
damage the MEMS element. Bowing or flexing the PCB after
solder reflow can also place large pealing stress on the pad
structure and can damage the device. If this is unavoidable,
consider using an underfill material to help distribute these
forces across the bottom of the package. Figure 23 provides
a PCB pad design example for this package style.
10.00mm
1.00mm
INTERFACE PRINTED CIRCUIT BOARD (PCB)
The ADIS16240/PCBZ includes one ADIS16240ABCZ IC on
a 1.2 inch × 1.3 inch PCB. The interface PCB simplifies the IC
connection of these devices to an existing processor system. The
four mounting holes accommodate either M2 (2 mm) or 2-56
machine screws. These boards are made of IS410 material and
are 0.063 inches thick. The second-level assembly uses a SAC305compatible solder composition, which has a pre-solder reflow
thickness of approximately 0.005 inches.
The pad pattern on these PCBs matches that shown in Figure 24.
J1 and J2 are dual-row, 2 mm (pitch) connectors that work with
a number of ribbon cable systems, including 3M Part Number
152212-0100-GB (ribbon crimp connector) and 3M Part Number
3625/12 (ribbon cable). The schematic and connector pin
assignments for the ADIS16240/PCBZ are in Figure 25.
1.100
1.050
×0.925
×0.673
J1
*
iSensor
*
U1
J2
*
1.00mm
10.00mm
11 × 11 ARRAY PATTERN
SM OPEN
0.400mm
DETAIL A
PAD DIMENSION
METAL PAD
0.60mm
NOTES
1. 12 × 12mm miniBG A PACKAGE
2. 11 × 11 BALL ARRAY – 121 SOLDER BALLS
3. 0.5 mm DIAMETER SOLDER BAL LS – 1mm BALL PITCH
4. ALL DIMENSIONS IN MILLIMETERS.
SOLDER MASK OPENING
RECOMMEND SOLDER M ASK
DEFINED ATTACH PAD
Figure 23. Recommended Pad Layout (Units in Millimeters)
×0.000
0.150
0.200
0.035
C1
2 × 0.000
PIN 1 IDENTIFIER
*
0.865
2 × 0.900
4 × Ø0.087
M2 × 0.4
08133-025
Figure 24. PCB Assembly View and Dimensions
AN
J2
1
2
3
4
5
6
7
8
9
10
11
12
J1
1
2
3
R1
R2
10kΩ
10kΩ
08133-023
C1
10µF
4
5
6
7
8
9
10
11
12
ADIS16240ABCZ
RST
SCLK
CS
DOUT
DIN
GND
VDD
DIO2
DIO1
GND
CMP1
CMP2
08133-024
Figure 25. Electrical Schematic
Rev. A | Page 16 of 20
Page 17
Data Sheet ADIS16240
10-17-2011-B
A1 BALL
CORNER
TOP VIEW
BALL A1
PAD CORNER
DETAIL A
BOTTOM VIEW
SEATING
PLANE
BALL DIAME TER
0.55
0.50
0.35
COPLANARITY
0.10
*
3.20 MAX
*
2.80 MAX
0.45
0.40
0.35
0.60
0.50
0.40
1.10
1.00
0.90
1.00
BSC
10.00
BSC SQ
DETAIL A
10118
7
6
3
2
1
9
5
4
A
B
C
D
E
F
G
J
H
K
L
12.10
12.00 SQ
11.90
*
COMPLIANT TO JEDEC STANDARDS MO-192 W ITH THE
EXCEPTI ON TO PACKAGE HE IGHT AND THICKNESS.