Part Number Hot Search : 
000X19 ADM696 MAX1623 MC68B00 OP169SL ATH10K STK7563A COM150A
Product Description
Full Text Search
 

To Download AN2855 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  february 2009 rev 1 1/8 AN2855 application note configuration for single-click and double-click detection using the fc30 introduction this document is intended to provide applic ation 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. www.st.com
contents AN2855 2/8 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
AN2855 theory of operation 3/8 1 theory of operation 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. note: while the device is operat ing 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 enable d through specific commands se nt 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 6 8 1 3 1 top view 10 u f vdd 100nf gnd vdd_io sign pc lc digit a l s ign a l from/to s ign a l controller.sign a l? s level sa re defined b yproper s election of vdd_io pd scl sda am0 3 290v1
theory of operation AN2855 4/8 1.2 entering single click recognition mode to enable the single-click recognition function, the device must first be 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, 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 single- click recognition mode and orientation detection is no longer active. 1.3 entering double-click recognition mode as with single-click recognition, to enable t he 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);
AN2855 theory of operation 5/8 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.
power-down mode AN2855 6/8 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 po wer-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);
AN2855 revision history 7/8 3 revision history table 1. document revision history date revision changes 17-feb-2009 1 initial release.
AN2855 8/8 please read carefully: information in this document is provided solely in connection with s t products. s tmicroelectronics nv and its subsidiaries (? s t?) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described he rein at any time, without notice. all s t products are sold pursuant to s t?s terms and conditions of sale. purchasers are solely responsible for the choice, selection and use of the s t products and services described herein, and s t assumes no liability whatsoever relating to the choice, selection or use of the s t products and services described herein. no license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. i f any part of this document refers to any third party products or services it shall not be deemed a license grant by s t 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 whatsoev er 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 parti cular 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 milita ry, 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 s t products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by s t for the s t product or service described herein and shall not create or extend in any manner whatsoever, any liability of s t. s t and the s t logo are trademarks or registered trademarks of s t in various countries. information in this document supersedes and replaces all information previously supplied. the s t logo is a registered trademark of s tmicroelectronics. all other names are the property of their respective owners. ? 2009 s tmicroelectronics - all rights reserved s tmicroelectronics group of companies australia - belgium - brazil - canada - china - czech republic - finland - france - germany - hong kong - india - israel - ital y - japan - malaysia - malta - morocco - s ingapore - s pain - s weden - s witzerland - united kingdom - united s tates of america www.st.com


▲Up To Search▲   

 
Price & Availability of AN2855

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X