link to page 9 link to page 9 link to page 9 link to page 9 link to page 9 link to page 9 link to page 9 ADIS16137Data SheetTHEORY OF OPERATION The ADIS16137 is an autonomous system that requires no user Table 7. Generic Master Processor SPI Settings initialization. As soon as it has a valid power supply, it initializes Processor SettingDescription and starts sampling, processing, and loading sensor data into Master ADIS16137 operates as a slave the output registers. After each sample cycle concludes, DIO1 SCLK Rate ≤ 2.5 MHz Maximum serial clock rate pulses high. The SPI interface enables simple integration with SPI Mode 3 CPOL = 1 (polarity), CPHA = 1 (phase) many embedded processor platforms, as shown in Figure 10 MSB First Mode Bit sequence (electrical connection) and Table 6 (processor pin names and 16-Bit Mode Shift register/data length functions). I/O LINES ARE COMPATIBLE WITH5VREADING SENSOR DATA3.3V OR 5V LOGIC LEVELSVDD A single register read requires two 16-bit SPI cycles. The first 101112 cycle requests the contents of a register using the bit assignments SYSTEM PROCESSORSS6CSADIS16137 shown in Figure 13. Then, the register contents follow on DOUT SPI MASTERSCLK3SCLK during the second sequence. Figure 11 includes three single register MOSI5DIN reads in succession. In this example, the process starts with Pin MISO4DOUT 5, DIN = 0x0600, to request the contents of the GYRO_OUT IRQ7DIO1 register and follows with 0x0400 to request the contents of the 131415 GYRO_OUT2 register and then with 0x0200 to request the 010 54- contents of the TEMP_OUT register. Full duplex operation 18 1 enables processors to use the same 16-bit SPI cycle to read data Figure 10. Electrical Connection Diagram from DOUT while requesting the next set of data on the DIN Table 6. Generic Master Processor Pin Names and Functions pin. Figure 12 provides an example of the four SPI signals when Pin NameFunction reading GYRO_OUT in a repeating pattern. SS Slave select DIN0x06000x04000x0200 SCLK Serial clock 1 01 4- MOSI Master output, slave input DOUTGYRO_OUTGYRO_OUT2TEMP_OUT 85 1 1 MISO Master input, slave output Figure 11. SPI Read Example IRQ Interrupt request CS The ADIS16137 SPI interface supports full duplex serial SCLK communication (simultaneous transmit and receive) and uses the bit sequence shown in Figure 13. Table 7 provides a list of DINDIN = 0000 0100 0000 0000 = 0x0400 the most common settings that require attention to initialize a DOUT 012 processor serial port for the ADIS16137 SPI interface. DOUT = 1111 1001 1101 1010 = 0xF9DA = –1574 LSBs = –63.959°/sec 1854- 1 Figure 12. SPI Read Example, Second 16-Bit Sequence CSSCLKDINR/WR/WA6A5A4A3A2A1A0DC7DC6DC5DC4DC3DC2DC1DC0A6A5DOUTD15D14D13D12D11D10D9D8D7D6D5D4D3D2D1D0D15D14D13NOTES 1. DOUT BITS ARE PRODUCED ONLY WHEN THE PREVIOUS 16-BIT DIN SEQUENCE STARTS WITH R/W = 0. 013 2. WHEN CS IS HIGH, DOUT IS IN A THREE-STATE, HIGH IMPEDANCE MODE, WHICH ALLOWS MULTIFUNCTIONAL USE OF THE LINEFOR OTHER DEVICES. 1854- 1 Figure 13. SPI Communication Bit Sequence Rev. A | Page 8 of 20 Document Outline Features Applications General Description Functional Block Diagram Table of Contents Revision History Specifications Timing Specifications Timing Diagrams Absolute Maximum Ratings ESD Caution Pin Configuration and Function Descriptions Typical Performance Characteristics Theory of Operation Reading Sensor Data Output Data Registers Rotation Rate (Gyroscope) Internal Temperature Device Configuration Dual Memory Structure User Registers Digital Processing Configuration Internal Sample Rate Input Clock Configuration Digital Filtering Averaging/Decimation Filter Calibration Automatic Bias Correction (Autonull) Manual Bias Correction Restoring Factory Calibration Alarms Static Alarm Use Dynamic Alarm Use Alarm Reporting Alarm Example System Controls Global Commands Software Reset Memory Management Checksum Test General-Purpose Input/Output Data Ready Input/Output Indicator Example Input/Output Configuration Automatic Self Test Power Management Status Product Identification Applications Information Power Supply Considerations Prototype Interface Board Installation Tips Packaging and Ordering Information Outline Dimensions Ordering Guide