Datasheet

New Reading
New Reading New Reading
New Reading
4 4 4
New Reading New Reading
Pin low on new reading
By setting the interrupt control register to 4 the pin will go to a high state (VCC). Each
time a new reading is available the INT pin (pin 7) will be reset and the pin will be at 0 volts.
The pin will not auto set. 4 must be written
to the interrupt control register after each
transition from high to low.
Invert state on new reading
Command value = 8
By setting the interrupt control register to 8 the pin will remain in whatever state it is in.
Each time a new reading is available the INT pin (pin 7) will invert its state.
The pin will automatically invert its state each
time a new reading is available. This setting has
been specifically designed for a master device
that can use an interrupt on change function.
Command value = 4
byte I2C_device_address=0x64;
byte int_control=0x04;
Wire.beginTransmission(I2C_device_address);
Wire.write(int_control);
Wire.write(0x04);
Wire.endTransmission();
Example code
Setting pin low on new reading
byte i2c_device_address=0x64;
byte int_control=0x04;
Wire.beginTransmission(i2c_device_address);
Wire.write(int_control);
Wire.write(0x08);
Wire.endTransmission();
Example code
Inverting state on new reading
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
17
Copyright © Atlas Scientific LLC