Product specifications

AREXX Engineering & JM3 Engineering
Version: 1.05 Nov. 9
th
, 2014 page: 7
2. Software
The data access works over I2C Bus. There is no special initialization required refer to datasheet of
the MS5607-02BA and HTU21D for more information. A demo software is available for the ASURO
xTend board with the attached Barometer Module.
2.1. Reading data from I2C
Principle way of reading data from the module
/**********************************************************************\
* read sensor data (generalized description)
\**********************************************************************/
master.ReadRegisters(I2C Addr, Register | AUTO_INC, mBuffer, 6);
2.2. Writing data via I2C
Principle way writing data via I2C to the module
/**********************************************************************\
* write data to register (generalized description)
\**********************************************************************/
master.TransmitBytes(I2C Addr, Register | AUTO_INC, data0, data1, data2);
2.3. Demo Software
The demo software for the ASURO xTend board is available which displays the pressure, relative
humidity and temperature on the display.
To enable the display function you have to make a change the Makefile - in the Global Defines section
you should have IOEXT_WEATHER defined.
# Global Defines
#
# Enable demo program for connected sensor module.
DEFINES = IOEXT_WEATHER
2.4. Slave Addresses
BAROTEMP = 0xEE // MS5607-02BA03 Baro & Temp
RELHUM = 0x80 // HTU21D Relative Humidity & Temp