Electronic Components Datasheet Search
  English  ▼

X  

AN2855 Datasheet(PDF) 4 Page - STMicroelectronics

Part # AN2855
Description  Configuration for single-click
PDF  8 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2855 Datasheet(HTML) 4 Page - STMicroelectronics

  AN2855 Datasheet HTML 1Page - STMicroelectronics AN2855 Datasheet HTML 2Page - STMicroelectronics AN2855 Datasheet HTML 3Page - STMicroelectronics AN2855 Datasheet HTML 4Page - STMicroelectronics AN2855 Datasheet HTML 5Page - STMicroelectronics AN2855 Datasheet HTML 6Page - STMicroelectronics AN2855 Datasheet HTML 7Page - STMicroelectronics AN2855 Datasheet HTML 8Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 4 / 8 page
background image
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 I2C 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 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 I2C 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);



Html Pages

1 2 3 4 5 6 7 8


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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