| Electronic Components Datasheet Search |
|
ADXL366 Datasheet(PDF) 64 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADXL366 Datasheet(HTML) 64 Page - Analog Devices |
|
64 / 71 page ![]() Data Sheet ADXL366 APPLICATIONS INFORMATION analog.com Rev. 0 | 64 of 71 FIFO MODES The FIFO is a 512-sample memory buffer that can be used to save power, unburden the host processor, and autonomously record data. Note that to guarantee inertial data from the same sample, the user must read a complete set of data (for example, x-channel, y-channel, z-channel, temperature) consecutively. If the channels are not read consecutively, there is a chance of missing data. The FIFO operates in one of the four modes described in the FIFO Disabled section, Oldest Saved Mode section, Stream Mode section, and Triggered Mode section. FIFO Disabled When the FIFO is disabled, no data is stored in it and any data already stored in it is cleared. The FIFO is disabled by setting the FIFO_MODE bits in the FIFO_CONTROL register (Address 0x28) to the Binary Value 0b00. Oldest Saved Mode In oldest saved mode, the FIFO accumulates data until it is full and then stops. Additional data is collected only when space is made available by reading samples out of the FIFO buffer (this mode of operation is sometimes referred to as first N) The FIFO is placed into oldest saved mode by setting the FIFO_MODE bits in the FIFO_CONTROL register (Address 0x28) to Binary Value 0b01. Stream Mode In stream mode, the FIFO always contains the most recent data. The oldest sample is discarded when space is needed to make room for a newer sample (this mode of operation is sometimes referred to as last N). Stream mode is useful for unburdening a host processor. The pro- cessor can tend to other tasks while data is being collected in the FIFO. When the FIFO fills to a certain number of samples (specified by the FIFO_SAMPLES register along with the FIFO_SAMPLES[8] bit in the FIFO_CONTROL register), it triggers a FIFO watermark interrupt (if this interrupt is enabled). At this point, the host process- or can read the contents of the entire FIFO and then return to its other tasks as the FIFO fills again. The FIFO is placed into stream mode by setting the FIFO_MODE bits in the FIFO_CONTROL register (Address 0x28) to Binary Value 0b10. Triggered Mode In triggered mode, the FIFO saves samples surrounding an activity detection event. The operation is similar to a one-time run trigger on an oscilloscope. The number of samples to be saved prior to the activity event is specified in FIFO_SAMPLES (Register 0x29, along with the FIFO_SAMPLES[8] bit in the FIFO_CONTROL register, Address 0x28). Place the FIFO into triggered mode by setting the FIFO_MODE bits in the FIFO_CONTROL register (Address 0x28) to Binary Value 0b11. FIFO CONFIGURATION The FIFO mode is configured via Register 0x28 and Register 0x29. The FIFO data structure is configured via Register 0x3C. Settings are described in detail in the Register Details section. FIFO Interrupts The FIFO can generate interrupts to indicate when samples are available, when a specified number of samples has been collected, and when the FIFO overflows and samples are lost. See the Using FIFO Interrupts section for more information. Retrieving Data from FIFO FIFO data is read by issuing a FIFO read command, described in the Serial Communications section. The ADXL366 FIFO can support 14 bits or 12 bits with data type information available, as shown in Table 83 and Table 84. Table 83. 14-Bit Data Bits Bit Name Settings D[15:14] Data Type 00: x-axis 01: y-axis 10: z-axis 11: temperature/external ADC D13 MSB D[12:1] Data D0 LSB Table 84. 12-Bit Data Bits Bit Name Settings D[15:8] Data[7:LSB] D[7:6] Channel ID 00: x-axis 01: y-axis 10: z-axis 11: temperature/external ADC D[5:4] Sign extension D[3:0] Data[MSB:8] The ADXL366 also supports data packed mode to increase data throughput and save system power. An 8-bit data-word is provided for readback. In 8-bit mode, only the upper 8 bits of a sample are sent out, and no channel ID is prepended. Therefore, the user can get the most efficient data transfer, just 8 bits per stored sample (at the cost of full data resolution). A 12-bit data-word is provided for readback. In 12-bit mode, only the upper 12 bits of a sample are sent out, no channel ID is prepended. Therefore, the user can get a more efficient data transfer, 2 words (24 bits) into 3 bytes. There |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |