Benefits in using FIFO buffer embedded in ST MEMS sensors

Similar documents
STEVAL-IEG001V2. Smart real-time vehicle tracking system. Features

Single LNB supply and control IC DiSEqC 1.X compliant with EXTM based on the LNBH29 in a QFN16 (4x4) Description

SPC5-FLASHER. Flash management tool for SPC56xx family. Description. Features

UM1676 User manual. Getting started with.net Micro Framework on the STM32F429 Discovery kit. Introduction

UM1613 User manual. 16-pin smartcard interface ST8034P demonstration board. Introduction

EN: This Datasheet is presented by the m anufacturer. Please v isit our website for pricing and availability at ore.hu.

AN3332 Application note

LM337. Three-terminal adjustable negative voltage regulators. Features. Description

M24LRxx/CR95HF application software installation guide

Description. Table 1. Device summary

SPC5-CRYP-LIB. SPC5 Software Cryptography Library. Description. Features. SHA-512 Random engine based on DRBG-AES-128

Description. Table 1. Device summary. Order code Temperature range Package Packaging Marking

AN4108 Application note

AN3354 Application note

AN3998 Application note

EVL185W-LEDTV. 185 W power supply with PFC and standby supply for LED TV based on the L6564, L6599A and Viper27L. Features.

AN4156 Application note

UM1727 User manual. Getting started with STM32 Nucleo board software development tools. Introduction

Description. Table 1. Device summary. Order codes. TO-220 (single gauge) TO-220 (double gauge) D²PAK (tape and reel) TO-220FP

STTH1R04-Y. Automotive ultrafast recovery diode. Features. Description

Table 1. Absolute maximum ratings (T amb = 25 C) Symbol Parameter Value Unit. ISO C = 330 pf, R = 330 Ω : Contact discharge Air discharge

UM1790 User manual. Getting started with STM32L053 discovery kit software development tools. Introduction

DDSL01. Secondary protection for DSL lines. Features. Description

UA741. General-purpose single operational amplifier. Features. Applications. Description. N DIP8 (plastic package)

TN0023 Technical note

AN2389 Application note

BD241A BD241C. NPN power transistors. Features. Applications. Description. NPN transistors. Audio, general purpose switching and amplifier transistors

UM1680 User manual. Getting started with STM32F429 Discovery software development tools. Introduction

BD238. Low voltage PNP power transistor. Features. Applications. Description. Low saturation voltage PNP transistor

2STBN15D100. Low voltage NPN power Darlington transistor. Features. Application. Description

AN2680 Application note

AN2604 Application note

Description SO-8. series. Furthermore, in the 8-pin configuration Very low-dropout voltage (0.2 V typ.)

AN4368 Application note

ULN2801A, ULN2802A, ULN2803A, ULN2804A

TDA W CAR RADIO AUDIO AMPLIFIER

ST High voltage fast-switching NPN power transistor. Features. Applications. Description

AN3353 Application note

AN3265 Application note

AN2824 Application note

BD135 - BD136 BD139 - BD140

AN3155 Application note

AN3110 Application note

Description. IO and RF AGC. ASIC controller and power management. Carrier recovery loop. GPIO switch matrix. Lock indicator and monitoring DVBS2 FEC

ULN2001, ULN2002 ULN2003, ULN2004

DSL01-xxxSC5. Secondary protection for DSL lines. Features. Description. Applications. Benefits. Complies with the following standards

ESDLIN1524BJ. Transil, transient voltage surge suppressor diode for ESD protection. Features. Description SOD323

How To Write To An Eeprom Memory On A Flash Memory On An Iphone Or Ipro Memory On Microsoft Flash Memory (Eeprom) On A Microsoft Microsoft Powerbook (Ai) 2.2.2

UM0985 User manual. Developing your STM32VLDISCOVERY application using the IAR Embedded Workbench software. Introduction

Order code Temperature range Package Packaging

LM135-LM235-LM335. Precision temperature sensors. Features. Description

ETP01-xx21. Protection for Ethernet lines. Features. Description. Applications. Benefits. Complies with the following standards

AN3359 Application note

AN3270 Application note

Getting started with DfuSe USB device firmware upgrade STMicroelectronics extension

ST19NP18-TPM-I2C. Trusted Platform Module (TPM) with I²C Interface. Features

L78MxxAB L78MxxAC. Precision 500 ma regulators. Features. Description

AN2866 Application note

BZW50. Transil, transient voltage surge suppressor (TVS) Features. Description

LM134-LM234-LM334. Three terminal adjustable current sources. Features. Description

TDA2004R W stereo amplifier for car radio. Features. Description

MC34063AB, MC34063AC, MC34063EB, MC34063EC

STTH2R06. High efficiency ultrafast diode. Features. Description

AN3252 Application note

MC Low noise quad operational amplifier. Features. Description

STTH110. High voltage ultrafast rectifier. Description. Features

AN3990 Application note

AN2557 Application note

STDP2600. Advanced HDMI to DisplayPort (dual mode) converter. Features. Applications

AN4128 Application note

STP60NF06. N-channel 60V Ω - 60A TO-220 STripFET II Power MOSFET. General features. Description. Internal schematic diagram.

AN2760 Application note

L6234. Three phase motor driver. Features. Description

STN3NF06L. N-channel 60 V, 0.07 Ω, 4 A, SOT-223 STripFET II Power MOSFET. Features. Application. Description

AN2703 Application note

STP60NF06FP. N-channel 60V Ω - 30A TO-220FP STripFET II Power MOSFET. General features. Description. Internal schematic diagram.

AN438 APPLICATION NOTE SAFETY PRECAUTIONS FOR DEVELOPMENT TOOL TRIAC + MICROCONTROLLER

AN820 APPLICATION NOTE INPUT/OUTPUT PROTECTION FOR AUTOMOTIVE COMPUTER

P6KE. Transil, transient voltage surge suppressor (TVS) Features. Description. Complies with the following standards

STP55NF06L STB55NF06L - STB55NF06L-1

AN1819 APPLICATION NOTE Bad Block Management in Single Level Cell NAND Flash Memories

Figure 1. STM32F429 Discovery board: STM32F429I-DISCO

STDP2690. Advanced DisplayPort to DisplayPort (dual mode) converter. Features. Applications

VN5R003H-E. 3 mω reverse battery protection switch. Features. Description. Application

BTW N. 50 A 1200 V non insulated SCR thyristor. Description. Features. Applications

VN05N. High side smart power solid state relay PENTAWATT. Features. Description

Obsolete Product(s) - Obsolete Product(s)

Obsolete Product(s) - Obsolete Product(s)

AN4427 Application note

AN974 APPLICATION NOTE

AN3327 Application note

AN2328 Application note

AN886 APPLICATION NOTE

STGB10NB37LZ STGP10NB37LZ

AN2658 Application note

STP10NK80ZFP STP10NK80Z - STW10NK80Z

AN3211 Application note

VN03. ISO high side smart power solid state relay PENTAWATT. Features. Description.

STTH3R02QRL. Ultrafast recovery diode. Main product characteristics. Features and benefits. Description. Order codes DO-15 STTH3R02Q DO-201AD STTH3R02

AN2146 APPLICATION NOTE

Transcription:

DT0011 Design tip Benefits in using FIFO buffer embedded in ST MEMS sensors By Petr Stukjunger Main components LIS3DH LIS3DSH L3GD20 L3GD20H Ultra low-power high performance 3-axes nano accelerometer Ultra low-power high performance three-axis nano accelerometer Three-axis digital output gyroscope Three-axis digital output gyroscope Purpose and benefits Description Most of ST MEMS sensors embed FIFO buffer to store samples. It can offload the microcontroller from reading data with every new sample. Thanks to its different modes of operation there are several other areas where FIFO buffer can be beneficial for applications with ST MEMS sensors. This document describes how to use embedded FIFO buffer to utilize MEMS sensors in new application areas, e. g. to decrease power consumption, store information about a movement or avoid losing data. FIFO buffer allows decreasing the host MCU interaction with the sensor and therefore allows system power savings. FIFO buffer can work in several different modes of operation for application flexibility reasons: Bypass, FIFO, Stream, Stream to FIFO, Bypass to Stream mode etc. Events like FIFO programmable watermark level, FIFO overrun and FIFO empty can be enabled to generate interrupts. Complete sample sets are released from sensor and stored to FIFO at selected output data rate (ODR). December 2013 DT0011 Rev 1 1/7

Lowering power consumption Achieving higher ODR Figure 1. Lowering power consumption MCU can be put to sleep mode for much longer period of time. MCU does not need to poll for new data frequently, because data is buffered inside the sensor. The same ODR can be achieved with lower power consumption or higher ODR can be achieved with the same power consumption. Way of operation: Acceleration data is stored in the FIFO without MCU intervention. Once FIFO is full, MCU is woken up by interrupt signal coming from sensor. Data is read in a single read sequence using address auto-increment. Saving history of an event Figure 2. Saving history of an event December 2013 DT0011 Rev 1 2/7

History of an event trigger can be read from the FIFO at any time. After occurrence of the event the FIFO will contain: 30 samples before trigger + trigger sample + 1 sample after trigger. Way of operation: Data is being continuously stored in FIFO. When pre-selected trigger occurs, FIFO stops storing new data. Avoiding data loss Smooth data capture Figure 3. Avoiding data loss Smooth data capture When MCU cannot read data at given ODR, MCU would lose data because of other operation. FIFO stores data at ODR and instructs MCU to read data only when FIFO is full or when user-selected watermark level (number of samples) is reached. Easy data acquisition for filtering or oversampling Figure 4. Easy data acquisition for filtering or oversampling 200 190 180 170 160 150 140 1 6111621263136414651566166717681869196 Oversampling example Original data Average by 4 samples FIFO is being filled until required number of samples is reached and then read in one shot by MCU. For example oversampling for averaging filter: 2 2n samples is required to gain n extra bits in resolution. December 2013 DT0011 Rev 1 3/7

Start data buffering when needed Figure 5. Start data buffering when needed Buffering the sensor data after occurrence of a trigger event Way of operation FIFO starts working in the bypass mode (FIFO is not operational). FIFO switches to stream mode when the selected interrupt event occurs. Bypass-to-stream mode is used in order to start the FIFO buffering when the configured interrupt is generated. When the FIFO is full, next samples overwrite the oldest. December 2013 DT0011 Rev 1 4/7

Buffer and store data after an event Figure 6. Buffer and store data after an event Buffering the sensor data (up to 32 samples) after occurrence of a trigger event. Way of operation FIFO starts working in the bypass mode (FIFO buffering is not operational). FIFO operation switches to FIFO mode when the selected interrupt event occurs. Bypass-to-FIFO mode is be used in order to start the FIFO buffering when the configured interrupt is generated. When the FIFO is full (32 samples), capturing of samples is stopped Support material Related design support material STEVAL-MKI109V2 STEVAL-MKI105V1 STEVAL-MKI134V1 STEAVL-MKI107V2 STEVAL-MKI136V1 Datasheet LIS3DH Datasheet LIS3DSH Datasheet L3GD20 emotion: ST MEMS adapters motherboard based on STM32. Compatible with all ST MEMS adapters based on STM32F103. LIS3DH adapter board for standard DIL 24 socket LIS3DSH adapter board for standard DIL24 socket L3GD20 adapter board for standard DIL 24 socket L3GD20H adapter board for standard DIL 24 socket Documentation MEMS digital output motion sensor ultra low-power high performance 3-axes nano accelerometer MEMS digital output motion sensor: ultra low-power high performance three-axis nano accelerometer MEMS motion sensor: three-axis digital output gyroscope December 2013 DT0011 Rev 1 5/7

Related design support material Datasheet L3GD20H Application note AN3308 Application note AN3393 MEMS motion sensor: three-axis digital output gyroscope LIS3DH: MEMS digital output motion sensor ultra low-power high performance 3-axis nano accelerometer LIS3DSH: 3-axis digital output accelerometer Revision history Date Version Changes 09-Nov-2013 1 Initial release December 2013 DT0011 Rev 1 6/7

Please Read Carefully Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries ( ST ) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at anytime, without notice. All ST products are sold pursuant to ST s terms and conditions of sale. Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein. UNLESS OTHERWISE SET FORTH IN ST S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. ST PRODUCTS ARE NOT DESIGNED OR AUTHORIZED FOR USE IN: (A) SAFETY CRITICAL APPLICATIONS SUCH AS LIFE SUPPORTING, ACTIVE IMPLANTED DEVICES OR SYSTEMS WITH PRODUCT FUNCTIONAL SAFETY REQUIREMENTS; (B) AERONAUTIC APPLICATIONS; (C) AUTOMOTIVE APPLICATIONS OR ENVIRONMENTS, AND/OR (D) AEROSPACE APPLICATIONS OR ENVIRONMENTS. WHERE ST PRODUCTS ARE NOT DESIGNED FOR SUCH USE, THE PURCHASER SHALL USE PRODUCTS AT PURCHASER S SOLE RISK, EVEN IF ST HAS BEEN INFORMED IN WRITING OF SUCH USAGE, UNLESS A PRODUCT IS EXPRESSLY DESIGNATED BY ST AS BEING INTENDED FOR AUTOMOTIVE, AUTOMOTIVE SAFETY OR MEDICAL INDUSTRY DOMAINS ACCORDING TO ST PRODUCT DESIGN SPECIFICATIONS. PRODUCTS FORMALLY ESCC, QML OR JAN QUALIFIED ARE DEEMED SUITABLE FOR USE IN AEROSPACE BY THE CORRESPONDING GOVERNMENTAL AGENCY. Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST. ST and the ST logo are trademarks or registered trademarks of ST in various countries. Information in this document supersedes and replaces all information previously supplied. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners. 2013 STMicroelectronics - All rights reserved STMicroelectronics group of companies Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan - Malaysia - Malta - Morocco - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America December 2013 DT0011 Rev 1 7/7