Datasheet

0x00
0x01
0x02
0x03
0x04
0x05
0x06
0x07
0x08
0x09
0x0A
0x0B
0x0C
0x0D
0x0E
0x0F
0x10
0x11
0x12
0x13
0x14
0x15
0x16
0x17
0x18
0x19
0x1A
0x1B
0x1C
0x1D
0x1E
0x1F
0x20
0x21
0x22
0x23
This register is for applications where the interrupt output pin cannot be used and
continuously polling the device would be the preferred method of identifying when a
new reading is available.
When the device is powered on, the New Reading Available Register will equal 0. Once
the device is placed into active mode and a reading has been taken, the New Reading
Available Register will move from 0 to 1.
This register will never automatically reset itself to 0.
The master must reset the register back to 0 each time.
0x07 – New reading available register
1 unsigned byte
Default value = 0 (no new reading)
New reading available = 1
Command values
0 = reset register
byte i2c_device_address=0x64;
byte new_reading_available=0;
byte nra=0x07;
while(new_reading_available==0){
Wire.beginTransmission(i2c_device_address);
Wire.write(nra);
Wire.endTransmission();
Wire.requestFrom(i2c_device_address,(byte)1);
new_reading_available = Wire.read();
Wire.endTransmission();
delay(10);
}
if(new_reading_available==1){
call read_EC();
Wire.beginTransmission(i2c_device_address);
Wire.write(nra);
Wire.write(0x00);
Wire.endTransmission();
}
Example code
Polling new reading available register
19
Copyright © Atlas Scientific LLC