Home > other >  I2C from machine communications, from the more machine communications SuLu take times to drop, how t
I2C from machine communications, from the more machine communications SuLu take times to drop, how t

Time:10-03

With MPU9250 sensor, due to the sensor is only one DA0 address pins, so normally can't configuration IIC address,
I use 74 hc154 to address different MPU sensor pin configuration level, namely low level for the address of the selected sensor pin enabled,
This method to read data is normal, but found that the rate is very low,

With a MPU communication, for example, data can be read 100 times a second, IIC polling two MPU, one second can read 90 data, the average a MPU is read 45 times a second,
IIC polling is a MPU, a second can read 10 data, the average a MPU data is read a second time,

How is this to return a responsibility excuse me, what could be the cause?

CodePudding user response:

Well, I think it is increased when the device when you interrupt also increases, the response interrupt part when the data is lost, so every time to accept a certain equipment data block before the interrupt, when transmission finished open the interrupt again,

CodePudding user response:

reference 1st floor YGLeeeon response:
well, I think when the device is increased when you interrupt also increases, the response interrupt part when the data is lost, so every time to accept a certain equipment data block before the interrupt, when interrupt transmission complete again opened,

Thank you for help, I hadn't related to interrupt this equipment, IIC communication is simulated, may not be the problem,

CodePudding user response:

reference 1st floor YGLeeeon response:
well, I think when the device is increased when you interrupt also increases, the response interrupt part when the data is lost, so every time to accept a certain equipment data block before the interrupt, when interrupt transmission complete again opened,

Found in the official routine interrupted, hide too deep, I try to change, thank you

CodePudding user response:

Not so used to MPU9250, because there is no expression in Datasheet AD0 when the pin is being sampled, just don't know what time the I2C address will be reconfigured according to AD0, if AD0 changed, but the address needs a period of time to Load into the chip's Logic, the response rate also fell, certainly ( this is purely on personal speculation, because there is no Datasheet explain how to do this is

In addition, if you have a lot of MPU I personally recommend the use of SPI by CS chip,

PS, the chip manufacturer is no longer recommended, doing the play that's ok, but do note that the product when it

CodePudding user response:

reference 4 floor bsnow response:
didn't go to used MPU9250, because there is no expression AD0 Datasheet inside when the pin is being sampled, just don't know what time the I2C address will be reconfigured according to AD0, if AD0 changed, but the address needs a period of time to Load into the chip's Logic, the response rate also fell, certainly ( this is purely on personal speculation, because there is no Datasheet explain how to do this is

In addition, if you have a lot of MPU I personally recommend the use of SPI by CS chip,

PS, the chip manufacturer is no longer recommended, doing the play that's ok, but do note that the product when it is

Thank replies and, if so can only be changed hardware, please could you recommend a other 9 shaft sensor chip?
  • Related