| 전자부품 데이터시트 검색엔진 |
|
BMP388 데이터시트(PDF) 54 Page - Bosch Sensortec GmbH |
|
|
|||||||||||||||||||||||||||||
BMP388 데이터시트(HTML) 54 Page - Bosch Sensortec GmbH |
|
54 / 57 page ![]() Bosch Sensortec | BMP388 Datasheet 54 | 57 Modifications reserved |Data subject not change without notice | Printed in Germany Document number: BST-BMEP388-DS001-01 Revision_1.1_032018 9. Appendix: Computation formulae reference implementation The code below gives a provides a C implementation of the compensation algorithms discussed in Sec. 3.10. The struct BMP388_calib_data is a structure, that contains the calibration coefficients. And the t_lin variable that carries a temperature value over to the pressure compensation. 9.1. Calibration coefficient The calibration coefficents are stored as described in Table 22. The compensation formula is implemented in floating point. Therefore the coefficient have to be converted into floating point numbers by the following formulas. ������������_����1 = ������������_������������_����1 2−8 ������������_����2 = ������������_������������_����2 230 ������������_����3 = ������������_������������_����3 248 ������������_����1 = ������������_������������_����1 − 214 220 ������������_����2 = ������������_������������_����2 − 214 229 ������������_����3 = ������������_������������_����3 232 ������������_����4 = ������������_������������_����4 237 ������������_����5 = ������������_������������_����5 2−3 ������������_����6 = ������������_������������_����6 26 ������������_����7 = ������������_������������_����7 28 ������������_����8 = ������������_������������_����8 215 ������������_����9 = ������������_������������_����9 248 ������������_����10 = ������������_������������_����10 248 ������������_����11 = ������������_������������_����11 265 9.2. Temperature compensation static float BMP388_compensate_temperature(uint32_t uncomp_temp, struct BMP388_calib_data *calib_data) { float partial_data1; float partial_data2; partial_data1 = (float)(uncomp_temp – calib_data->par_t1); partial_data2 = (float)(partial_data1 * calib_data->par_t2); /* Update the compensated temperature in calib structure since this is * needed for pressure calculation */ calib_data->t_lin = partial_data2 + (partial_data1 * partial_data1) * calib_data->par_t3; /* Returns compensated temperature */ return calib_data->t_lin; } |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| 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 |