Hi,
i have a strange problem with a barometer sensor on I2C.
On TWI interface of my ATXMEGA128A3U I have connected two sensors;
a BMP085 and a MPL3115A2.
I have no problems reading from the BMP085, but no way to get results from MPL3115A2...
Checking of the Bmp085 with TWIstatE(BMP085_ADDRESS) is always successful, but the same on the other sensor TWIstatC(MPL3115A2_ADDRESS) fail.
After trying to read from MPL also the check on BMP fails few times (seems the I2C bus in a wrong status), then the BMP start to reply correctly.
I have read on forums that the MPL sensor use such "repeated start" in I2C protocol, thus I am wondering if it is compatible with TWI library of AVRco.
Regards,
Marco
i have a strange problem with a barometer sensor on I2C.
On TWI interface of my ATXMEGA128A3U I have connected two sensors;
a BMP085 and a MPL3115A2.
I have no problems reading from the BMP085, but no way to get results from MPL3115A2...
Checking of the Bmp085 with TWIstatE(BMP085_ADDRESS) is always successful, but the same on the other sensor TWIstatC(MPL3115A2_ADDRESS) fail.
After trying to read from MPL also the check on BMP fails few times (seems the I2C bus in a wrong status), then the BMP start to reply correctly.
I have read on forums that the MPL sensor use such "repeated start" in I2C protocol, thus I am wondering if it is compatible with TWI library of AVRco.
Regards,
Marco