AN2855 Application note

Similar documents
AN2667 Application note

STEVAL-SPBT4ATV3. USB dongle for the Bluetooth class 1 SPBT2632C1A.AT2 module. Features. Description

AN2672 Application note

STEVAL-CCM002V1. TFT-LCD panel demonstration board based on the STM32 as LCD controller. Features. Description

AN4113 Application note

AN2676 Application note

STEVAL-PCC010V1. ST802RT1A Ethernet PHY demonstration board with STM32F107 controller add-on board. Features. Description

AN626 Application note

STTS V memory module temperature sensor. Features

AN2470 Application note TS4871 low voltage audio power amplifier Evaluation board user guidelines Features Description

AN2143 Application note

AN3996 Application Note

STEVAL-IHM028V1. 2 kw 3-phase motor control demonstration board featuring the IGBT intelligent power module STGIPS20K60. Features.

OSPlus USB Extension. OSPlus USB 2.0 extension. Description. Features. Application. TCP/IP stack NexGenOS NexGenIP VFS. FAT Ext2 LVM Device layer

UM1572 User manual. STEVAL-IPE020V1: ST energy meter application based on the Android platform. Introduction

STM32-MP3NL/DEC. STM32 audio engine MP3 decoder library. Description. Features

EV-VNQ5E050AK VNQ5E050AK evaluation board

MEMS functional sensor: smart 3D orientation and click detection standalone device. FC30-40 to +85 LGA-14 Tray FC30TR -40 to +85 LGA-14 Tape and reel

EVAL6235PD. L6235 three-phase brushless DC motor driver demonstration board. Features. Description

AN3279 Application Note

AN2240 Application note

AN2474 Application note

AN3354 Application note

STM3210B-SK/KEIL STR91X-SK/KEI, STR7-SK/KEIL

SOT23-6L ESDALCL6-2SC6

AN2825 Application Note

UM0401 User manual. User manual for eight bit port expander STMPE801 demonstration board. Introduction

AN3965 Application note

AN2261 APPLICATION NOTE

STM32-SK/KEIL STR91X-SK/KEI, STR7-SK/KEIL

UM1488 User manual. STPMC1 evaluation software. Introduction

AN2673 Application note

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

AN3250 Application note

AN2768 Application note LIS331DL 3-axis digital MEMS accelerometer: translates finger taps into actions Introduction

UM0693 User manual. 1 Introduction. STM8L101-EVAL demonstration firmware

STM8 I 2 C optimized examples

ST19WR08 Dual Contactless Smartcard MCU With RF UART, IART & 8 Kbytes EEPROM Features Contactless specific features

STM32-SK/RAIS,STR91X-SK/RAI,STR7-SK/RAIS STM32-D/RAIS,STR9-D/RAIS,STR7-D/RAIS

AN2408 Application note

EMIF01-SMIC01F2 IPAD. Single line EMI filter including ESD protection. Main application. Description. Benefits. Pin configuration (Bump side view)

AN2737 Application note Basic in-application programming example using the STM8 I 2 C and SPI peripherals Introduction

STLC2500D. Bluetooth V2.1 "Lisbon" + EDR. Features. Description

Obsolete Product(s) - Obsolete Product(s)

AN2734 Application note S-Touch design procedure Introduction

UM0792 User manual. Demonstration firmware for the DMX-512 communication protocol transmitter based on the STM32F103Zx.

STM3220G-SK/KEI. Keil starter kit for STM32F2 series microcontrollers (STM32F207IG MCU) Features. Description

Main components 1 A, high efficiency adjustable single inductor dual mode buckboost DC-DC converter

AN3980 Application note

ST33F1M. Smartcard MCU with 32-bit ARM SecurCore SC300 CPU and 1.25 Mbytes high-density Flash memory. Features. Hardware features.

STA bit single chip baseband controller for GPS and telematic applications. Features

EMIF02-SPK02F2. 2-line IPAD, EMI filter and ESD protection. Features. Application. Description. Complies with the following standards

EMIF02-MIC01F2 2-line IPAD, EMI filter including ESD protection Features Application Description Complies with the standards:

AN2202 Application note

AN3154 Application note

AN2592 Application note

Main components USB charging controller with integrated power switch

STMicroelectronics. STxP70-4 assembler. User manual Rev A. October

AN3001 Application note

UM1084 User manual. CR95HF development software user guide. Introduction. Reference documents

ST21NFCB. Near field communication controller. Features. RF communications. Hardware features. Communication interfaces. Electrical characteristics

Getting started with DfuSe USB device firmware upgrade STMicroelectronics extension

STICE CF/Stice_Connect AD/Stice_Connect AS/Stice_Connect

AN2361 Application note

LD A very low drop adjustable positive voltage regulator. Description. Features

AN2557 Application note

STM32 embedded target for MATLAB and Simulink release 3.1. Summary for STM32 embedded target for MATLAB and Simulink release 3.1:

Description SPC564A-DISP. March 2014 DocID Rev 3 1/5


AN2430 Application note

RN0046 Release note. 1 Introduction. SimpleMAC library for STM32W108xx kits. About this release note

SMP75. Trisil for telecom equipment protection. Features. Description. Applications. Benefits

AN2594 Application note

TN0189 Technical note

AN4321 Application note

AN2936 Application note

TN0132 Technical note

L6460. SPI configurable stepper and DC multi motor driver. Features. Description

STM8-SK/RAIS STM8-D/RAIS ST7-SK/RAIS ST7-D/RAIS

AN4440 Application note

AN3140 Application note

AN4274 Application note

STM8L-PRIMER STM32-PRIMER STMPRIMER

AN4308 Application note

Order code Temperature range ( C) Package Packing

UM0212 User manual. STOTG04 USB OTG full-speed transceiver demonstration board. Introduction

AN3362 Application note

AN2792 Application note

AN3975 Application note

AN2781 Application note

ECMF02-3F3. Common mode filter with ESD protection. Features. Description. Applications. Complies with the following standard:

ST10F271B/E, ST10F272B/E Errata sheet

AN3099 Application note

ST33F1M, ST33F1M0, ST33F896, ST33F768, ST33F640, ST33F512

EMIF03-SIM06F3. 3-line IPAD, EMI filter including ESD protection. Description. Features. Application. Complies with the following standards:

How to interpret the LPS331AP pressure and temperature readings. Main components mbar absolute barometer with digital output

b. Typical values, independent of external clock frequency and supply voltage. a. TCG website:

EMIF M8. 4-line IPAD low capacitance EMI filter and ESD protection in micro QFN package. Features. Applications. Description

STM8L-PRIMER STM32-PRIMER STMPRIMER

AN2860 Application note

Transcription:

Application note Configuration for single-click and double-click detection using the FC30 Introduction This document is intended to provide application information for the click and double-click detection functions of the FC30. When a single or double mechanical tap is detected, the FC30 provides an interrupt signal, enabling a mouse button-like function for intuitive man-machine interface solutions. A power-down mode selectable through a dedicated command ensures very low current consumption in battery-operated devices. February 2009 Rev 1 1/8 www.st.com

Contents AN2855 Contents 1 Theory of operation......................................... 3 1.1 Device pinout for click recognition mode.......................... 3 1.2 Entering single click recognition mode............................ 4 1.3 Entering double-click recognition mode........................... 4 1.4 Exiting click recognition mode.................................. 5 2 Power-down mode........................................... 6 2.1 Entering power-down mode.................................... 6 2.2 Exiting power-down mode..................................... 6 3 Revision history............................................ 7 2/8

Theory of operation 1 Theory of operation Note: The click recognition function featured in the FC30 helps to create a man-machine interface with little software loading. The device can be configured to output an interrupt signal on a dedicated pin when tapped in any direction. If the sensor is exposed to a single input stimulus, it generates an interrupt request on inertial interrupt pin PC. A more advanced feature allows the generation of an interrupt request when a double input stimulus with fixed time between the two events is recognized, enabling a mouse button-like functionality. While the device is operating in click/double-click recognition mode, the orientation detection function is not available. 1.1 Device pinout for click recognition mode Click recognition mode is enabled through specific commands sent to the device over the I 2 C bus that is available through dedicated pins (Figure 1). Figure 1. FC30 pinout - I 2 C pins for click recognition mode Vdd 6 1 Vdd_IO 10uF Top VIEW 100nF 8 13 PC LC PD SIGN SDA SCL GND Digital signal from/to signal controller.signal s levels are defined by proper selection of Vdd_IO AM03290v1 3/8

Theory of operation AN2855 1.2 Entering single click recognition mode To enable the single-click recognition function, the device must first be configured for powerdown mode driving PD pin to GND. Then the following sequence of commands must be sent to the device through I 2 C bus: I2C_Read(0x5D, 0x16, Value_1); I2C_Write(0x5D, 0x16, Value_1 & 0x1F); I2C_Write(0x1D, 0x3Bh, 0x77h); I2C_Write(0x1D, 0x3Ch, 0x07h); I2C_Write(0x1D, 0x3Dh, 0xFEh); I2C_Write(0x1D, 0x3Eh, 0x10h); I2C_Write(0x1D, 0x3Fh, 0xFFh); I2C_Write(0x1D, 0x38h, 0x15h); I2C_Write(0x1D, 0x20h, 0x47h); I2C_Write(0x1D, 0x22h, 0x07h); where I2C_Read and I2C_Write have the following syntax: I2C_Read(SlaveAddress, SubAddress, DestinationValue); I2C_Write(SlaveAddress, SubAddress, SourceValue); At the end of the sequence the device will be in a power on state, ready to operate in singleclick recognition mode and orientation detection is no longer active. 1.3 Entering double-click recognition mode As with single-click recognition, to enable the double-click recognition function the device must be first configured for power-down mode driving PD pin to GND. Then the following sequence of commands must be sent to the device through I 2 C bus: I2C_Read(0x5D, 0x16, Value_1); I2C_Write(0x5D, 0x16, Value_1 & 0x1F); I2C_Write(0x1D, 0x3Bh, 0x77h); I2C_Write(0x1D, 0x3Ch, 0x07h); I2C_Write(0x1D, 0x3Dh, 0xFEh); I2C_Write(0x1D, 0x3Eh, 0x10h); I2C_Write(0x1D, 0x3Fh, 0xFFh); I2C_Write(0x1D, 0x38h, 0x2Ah); I2C_Write(0x1D, 0x20h, 0x47h); I2C_Write(0x1D, 0x22h, 0x07h); 4/8

Theory of operation At the end of the sequence, the device will be in a power on state, ready to operate in double-click recognition mode and orientation detection is no longer active. 1.4 Exiting click recognition mode To exit from the click recognition function and restore the orientation detection, the device must be first be turned off by switching off the power supply, then turned on. 5/8

Power-down mode AN2855 2 Power-down mode When the FC30 is operating in click or double-click recognition mode, the PD pin must be tied to GND and no longer enabling the power-down mode. Power-down mode is still available through dedicated I 2 C commands. 2.1 Entering power-down mode To enter the power-down mode, send the following I 2 C command to the device: I2C_Write(0x1D, 0x20h, 0x00h); 2.2 Exiting power-down mode To exit the power-down mode, send the following I 2 C command to the device: I2C_Write(0x1D, 0x20h, 0x47h); 6/8

Revision history 3 Revision history Table 1. Document revision history Date Revision Changes 17-Feb-2009 1 Initial release. 7/8

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 any time, 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. UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY, DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER S OWN RISK. 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. 2009 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 - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America www.st.com 8/8