전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

AN4450 데이터시트(PDF) 22 Page - STMicroelectronics

부품명 AN4450
상세설명  Hardware and software guidelines for use of LPS25H pressure sensor
PDF  26 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4450 데이터시트(HTML) 22 Page - STMicroelectronics

Back Button AN4450 Datasheet HTML 18Page - STMicroelectronics AN4450 Datasheet HTML 19Page - STMicroelectronics AN4450 Datasheet HTML 20Page - STMicroelectronics AN4450 Datasheet HTML 21Page - STMicroelectronics AN4450 Datasheet HTML 22Page - STMicroelectronics AN4450 Datasheet HTML 23Page - STMicroelectronics AN4450 Datasheet HTML 24Page - STMicroelectronics AN4450 Datasheet HTML 25Page - STMicroelectronics AN4450 Datasheet HTML 26Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 22 / 26 page
background image
Software
AN4450
22/26
DocID025978 Rev 1
6
Software
A detailed register list is reported in the LPS25H datasheet. In This section we collect useful
information on how to handle possible exceptions on the communication bus and how to
properly use the information coming from the device.
6.1
Hints
1.
If the I2C line has glitches and slaves are holding SDA low, a simple I2C error recovery
would be to send 9 stop bits (which will flush the bus). This is usually done by SW using
the I2C GPIOs resources of the host device. A good practice would be to check that
SDA is high prior to generating a START bit.
2.
The serial bus power consumption can be reduced by reducing the data traffic:
–
Using built-in HW averaging instead of SW averaging
–
Reduce the polling rate when waiting for the one-shot measurement completion
(Section 4.3)
–
The INT1 pin can be used as event to minimize serial bus polling
6.2
One-shot mode conversion time estimation
Typical conversion time
62*(Pavg+Tavg) + 975 µs
ex: Tavg = 64; Pavg = 512; Typ. conversation time
36.7 ms (compatible with
ODT=25 Hz)
ex: Tavg = 32; Pavg = 128; Typ. conversation time
10.9 ms
The formula is accurate within +/- 3% at room temperature
6.3
Reference SW to get started with LPS25H
There are some examples of C source files that provide the baseline in initializing,
configuring and performing measurements with the pressure sensor.
6.4
Pressure to altitude conversion
The simplest and widely used barometer (altitude) formula used in most watches comes
from the US Standard Atmosphere, for example the 1976 edition.
Example of the source code is shown below:
void From_Pressure_mb_To_Altitude_US_Std_Atmosphere_1976_ft(double*
Pressure_mb, double* Altitude_ft) {
//=(1-(Pressure/1013.25)^0.190284)*145366.45
*Altitude_ft = (1-pow(*Pressure_mb/1013.25,0.190284))*145366.45;
}
void From_ft_To_m(double* ft, double* m) {



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
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