7.6. Communicating With I2C-Enabled Sensors

7.6.1. The TMP102 Sensor

Just as we did with the SPI port and the accelerometer, we can use the mbed I2C port to communicate with a very wide range of peripheral devices, including many intelligent sensors. The Texas Instruments TMP102 temperature sensor ([5]) has an I2C data link. This is similar to the accelerometer that we have just met, in that an analog sensing device is integrated with an ADC and a serial port, producing an ideal and easy-to-use system element. Note from the data sheet that the TMP102 actually makes use of the SMbus (System Management Bus). This was defined by Intel in 1995, and is based on I2C. In simple applications, the two standards can be mixed; for more advanced applications, ...

Get Fast and Effective Embedded Systems Design, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.