Datasheet
Control registers
The Interrupt control register adjusts the function of pin 7 (the interrupt output pin).
0x04 – Interrupt control register
2 2 2
New Reading New Reading New Reading
1 unsigned byte
Default value = 0 (disabled)
Command values
0 = disabled
2 = pin high on new reading (manually reset)
4 = pin low on new reading (manually reset)
8 = invert state on new reading (automatically reset)
Command value = 2
By setting the interrupt control register to 2 the pin will go to a low state (0 volts). Each
time a new reading is available the INT pin (pin 7) will be set and output the same
voltage that is on the VCC pin.
The pin will not auto reset. 2 must be
written to the interrupt control register
after each transition from low to high.
Pin high on new reading
byte i2c_device_address=0x64;
byte int_control=0x04;
Wire.beginTransmission(i2c_device_address);
Wire.write(int_control);
Wire.write(0x02);
Wire.endTransmission();
Example code
Setting pin high on new reading
Pin 7
R/W
R/W
R/W
R/W
0x04: Interrupt control
0x05: LED control
0x06: Active/hibernate
0x07: New reading available
R/W
R
Read only
Read and write
Accessible registers
R/W
R/W
0x02: SMBus/I
2
C address lock/unlock
0x03: SMBus/I
2
C address
0x10: Temperature compensation MSB
0x11: Temperature compensation high byte
0x12: Temperature compensation low byte
0x13: Temperature compensation LSB
0x14: Temperature confirm MSB
0x15: Temperature confirm high byte
0x16: Temperature confirm low byte
0x17: Temperature confirm LSB
Confirmation
Compensation
R
R
0x00: Device type
0x01: Firmware version
Device information
Device address
R/W
R/W
0x08: Set probe type MSB
0x09: Set probe type LSB
R/W
0x0E: Calibrate request
0x0F: Calibration confirm
Probe type
Control
R/W
R/W
R/W
R/W
0x0A: Calibration value MSB
0x0B: Calibration value high byte
0x0C: Calibration value low byte
0x0D: Calibration value LSB
0x18: EC reading MSB
0x19: EC reading high byte
0x1A: EC reading low byte
0x1B: EC reading LSB
Sensor Data
R
R
R
R
R
R
R
R
R
R
R
R
0x1C: TDS reading MSB
0x1D: TDS reading high byte
0x1E: TDS reading low byte
0x1F: TDS reading LSB
R
R
R
R
0x20: Salinity reading MSB
0x21: Salinity reading high byte
0x22: Salinity reading low byte
0x23: Salinity reading LSB
R
R
R
R
Calibration
R
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
Settings to this register are not retained if the power is cut.
16
Copyright © Atlas Scientific LLC










