| Electronic Components Datasheet Search |
|
BMM350 Datasheet(PDF) 18 Page - Bosch Sensortec GmbH |
|
|
|||||||||||||||||||||||||||||
BMM350 Datasheet(HTML) 18 Page - Bosch Sensortec GmbH |
|
18 / 63 page ![]() Bosch Sensortec | BST-BMM350-DS001-27 18 | 63 © Bosch Sensortec GmbH 2023 | All rights reserved, also regarding any disposal, exploitation, reproduction, editing, distribution, Document number: BST-BMM350-DS001-27 as well as in the event of applications for industrial property rights 5.2 Compensated data access from magnetic and temperature registers Sensortime, temperature data and magnetic data are made available via data registers located next to each other. This allows reading said data within a single burst read. Actually, burst read is an absolute “must” for data readout since the read stops data of being updated during readout and thus become inconsistent. The BMM350 halts data register update during a burst read starting at a sensortime, magnetic data or temperature data address. Reading data registers using single reads would allow for data updates between these reads and is strictly discouraged for normal mode. The host must call API functions to correct data for temperature effects: offset and sensitivity errors will be corrected there as well as temperature effects. Trim values for the correction of offset, gain and temperature effects etc are stored in the BMM350 OTP and will be loaded when the API-function BMM350_init() is called. For proper operation and best performance it is thus mandatory either to use the API functions or at least use API functions as template for own code, see chapter 7. An API function “BMM350_read_mag_data_and_compensate” is provided which fetches data and calls all necessary compensation routines. Magnetic data registers, temperature data registers and sensortime registers are located at addresses 0x31 to 0x3F. 5.2.1 Accessing compensation data Compensation data for offset, gain and temperature effects are stored in the OTP. The API function “BMM350_get_compensation_data” reads the data and stores them in the API memory space during the call of API function “BMM350_init”. So no explicit user call is needed. The data is used by API function “BMM350_read_mag_data_and_compensate”. Compensation data is stored in the “dev” C structure, which allows to handle different sensors separately. 5.2.2 Sensortime The API function “BMM350_read_mag_data_and_compensate” optionally reads the sensortime information. The 3 sensortime registers at address 0x3D-0x3F form a 24bit register when (and only when!) new data is generated. If only sensortime is needed by the user the function “bmm350_read_sensortime” is provided. If no new data is generated, either in normal or in forced mode, the sensortime data register is not updated. A sensortime read will provide the time when the last data has been generated. Due to the synchronicity of ODR and sensortime, the XLSB value in normal mode is always the same when choosing ODR=100Hz or smaller. An ODR=200Hz leads to 2 different XLSB values, and ODR=400Hz to 4 different XLSB values. The internal sensortime counter is only incremented in normal mode, not in suspend mode or forced mode unless setting register CTRL_USER.cfg_sens_tim_aon to 0x1. After boot sensortime is 0. Sensortime information is ALWAYS related to new data generation. When setting CTRL_USER.cfg_sens_tim_aon to 0x1 in suspend mode the internal sensortime is advanced, but reading sensortime always leads to the same result unless the device is e.g. sent into forced mode and new data is produced. When reading sensortime after forced mode is finished one can observe that sensortime is now “pointing” to the timepoint where new data has been calculated. Sensortime wraps around when the 24bit counter wraps around (no saturation). |
|
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 |
| 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 |