2018-01-16 02:10 AM
In the datasheet say that this pin must be work(indicate moment of magnetometer new data avalaible ) automatically(without need of configuration), but it doesn't work. Why?
In thehttp://www.st.com/resource/en/datasheet/iis2mdc.pdf
said that M_XYZ_DA status bit must be connected with DRDY_M output pin(page 32,CFG_REG_C (62h) 0 bit
). Does not LSM9DS1 datasheet contain complete information?
This question( ) has proved this assumptionnull2018-01-17 03:39 AM
The DRDY_M signal is available without any configuration.
Do you read the data from the magnetometer? If not the DRDY is set and stay high until you read the data.
2018-01-17 05:50 AM
After magnetometer initialization DRDY_M set up to HIGH. When I first read mag data it set to LOW and... it was staying LOW until power reset action
in spite of
magnetometer data were correctly read again and again.I have decided this issue when change configuration value of
CTRL_REG3_M (22h)
register from 0x84 to 0x04(7thbit setting disable I2C interface
). How I2C interface is connected with DRDY_M signal? PSBatek.Miroslav
, thank you,your attention helped to solve this problem
.2018-01-17 06:16 AM
Do you want to say that the DRDY_M stop work when you set CTRL_REG3_M (22h) to 0x04 and it works if the value is 0x84?
I'm not able replicate this issue.
2018-01-17 06:38 AM
conversely
, it is work when 0x04is written
to CTRL_REG3_M (22h)register
and doesn't work when - 0x84.This is my experience..
2018-01-18 06:31 AM
I suppose you have some error in HW connection, because the CTRL_REG3_ doesn't have any impact on DRDY_M signal.
Are you really using 3-wire SPI mode (CTRL_REG3 = 0x04)?
I tested it with CTRL_REG3 = 0x00, 0x84, 0x04 and DRDY_M works for all of them.
2018-01-19 04:02 AM
Miroslav, do you use DRDY_M signal as indicator of new mag. data
availability and read the data by that signal? Or do you read the data regardless of the DRDY_M signal and are you only watching the signal?
Please, also try with CTRL_REG3 = 0x80