link to page 10 link to page 11 link to page 10 link to page 11 link to page 10 link to page 11 link to page 11 link to page 15 link to page 10 Data SheetADIS16240BASIC OPERATION The ADIS16240 starts up automatically when it has a valid power User registers govern all data collection and configuration. Table 7 supply and begins producing digital acceleration data in the output provides a memory map that includes all user registers, along with registers. When using the factory-default configuration, DIO1 references to bit assignment tables that follow the generic assign- serves as a data-ready indicator signal that can drive a processor ments in Figure 15. interrupt function. Figure 14 shows a schematic for connecting to a SPI-compatible processor platform, referred to as the SPI 1514131211109876543210 1 01 master. UPPER BYTELOWER BYTE 33- 81 0 VDDVDD Figure 15. Generic Register Bit Assignments SPI Write CommandsSYSTEM PROCESSORADIS16240SPI MASTERSPI SLAVE Master processors write to the control registers, one byte at a SSCS time, using the bit assignments shown in Figure 18. The program- SCLKSCLK mable registers in Table 7 provide controls for optimizing sensor MOSIDIN operation and for starting various automated functions. For MISODOUT example, set GLOB_CMD[8] = 1 (DIN = 0xCB01) to wake up the IRQ1DIO1 device. IRQ2DIO2CS 10 0 3- SCLK 13 08 12 0 3- Figure 14. Electrical Hook-Up Diagram DIN 13 08 Table 5. Generic Master Processor Pin Names and Functions Figure 16. SPI Sequence for a Wake-Up Command (DIN = 0xCB01) Pin NameFunction Some configurations require writing both bytes to a register, SS Slave select. which takes two separate 16-bit sequences. See GLOB_CMD[3] IRQ1, IRQ2 Interrupt request inputs. in Table 24 for backing up configuration data in nonvolatile MOSI Master output, slave input. flash memory. MISO Master input, slave output. SPI Read Commands SCLK Serial clock. Reading data on the SPI requires two consecutive 16-bit The ADIS16240 SPI interface supports full duplex serial commu- sequences. The first sequence transmits the read command on nication (simultaneous transmit and receive) and uses the bit DIN, and the second sequence receives the resulting data from sequence shown in Figure 18. Processor platforms typically DOUT. The 7-bit register address can represent either the upper support SPI communication with general-purpose serial ports that or lower byte address for the target register. For example, DIN require some configuration in their control registers. Table 6 lists can be either 0x0200 or 0x0300 when reading the SUPPLY_OUT the most common settings that require attention when register. The SPI operates in full duplex mode, which means that initializing a pro-cessor serial port for communication with the the master processor can read the output data from DOUT while ADIS16240. using the same SCLK pulses to transmit a new command on DIN. In Figure 17, the second SPI segment sets up the device to Table 6. Generic Master Processor SPI Settings read YACCL_OUT on the following SPI segment (not shown). Processor SettingDescription 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). MSB First Bit sequence. 16-Bit Shift register/data length. SPI SEGMENT 1SPI SEGMENT 2CSSCLKDIN = 0x0600 TO READ YACCL_OUTDINDOUT 13 0 3- DIN = 0x0400 PRODUCES XACCL_OUT CONTENTS ONDOUT = 0x802B = 2.21g, NEW DATA 813 0 DOUT DURING THE NEXT SPI SEGMENT Figure 17. Example SPI Read Sequence Rev. C | Page 9 of 20 Document Outline Features Applications Functional Block Diagram General Description Revision History Specifications Timing Specifications Timing Diagrams Absolute Maximum Ratings ESD Caution Pin Configuration and Function Descriptions Typical Performance Characteristics Theory of Operation Sensing Element Data Sampling and Processing User Interface SPI Interface User Registers Capture Basic Operation SPI Write Commands Memory Map Output Data Registers Processing Sensor Data Event Recorder Internal Trigger Setup External Trigger Setup Buffer Memory Configuration Event Organization Reading Event Data Transient Behavior During Capture Operational Control Internal Sample Rate Global Commands Input/Output Lines Offset Adjustment Diagnostics Clock Checksum Flash Memory Endurance Management Applications Information Assembly Interface Printed Circuit Board (PCB) Outline Dimensions Ordering Guide