Chapter · I2C
Talking to a chip
The numbered registers inside a chip, and one whole read of a temperature, a piece at a time.
- 07Registers: the drawers inside4 minAn address picks a chip; a register picks something inside it. The controller writes a register's number to move the chip's pointer, and every read returns whatever the pointer is at.
- 08Reading a temperature5 minOne read of an LM75 is a write of the register number, a repeated start, and two bytes back. Put the bytes together as a signed number, divide by 256, and that is the temperature in degrees.
Start at 07 and read down — the order is the order things get easier in. Or take the one with your part in it; every article stands on its own, and links back to whatever it needs.