I2C Address Selection
I2C Addresses | I2C Addresses | I2C Addresses |
JP2 | JP1 | Device Address |
Open | Open | 0x4B (0b10001011) |
Open | Shorted | 0x4A (0b1001010) |
Shorted | Open | 0x49 (0b1001001) |
Shorted | Shorted | 0x48 (0b1001000) |
To read the temperature data from the PmodTMP2, users must first call the Analog Devices chip by whichever slave address you have set with the jumper blocks and then write the register address of the most significant byte of the temperature data (0x00).
Then, issue a restart condition and perform a read for two bytes of data (the register address is auto-incremented). Users may also notice that because the register address for the temperature data is 0x00, they may read the two data registers upon power-up without having to write to the address register because it is already in the correct location. The address register will need to be written to for subsequent readings.
The PmodTMP2 can also be set up to trigger two external output pins, CT (critical temperature) and INT (overtemperature or undertemperature interrupt). The CT pin is triggered whenever the critical temperature is reached which starts out at a default temperature of 147 °C. The INT pin by default triggers whenever the high temperature defined by the THIGH or the low temperature defined by TLOW is detected. Users may also enable a comparator mode so that status of each of the pins will not change until the hysteresis value has been passed.