Server Room Monitor
TMP102 STM32 I2C Exercise
Task
Print the room's temperature in whole degrees Celsius on J10. The registers and bit fields are on the Datasheet tab.
Circuit
Pass condition
J10 prints the reading as one line, and hidden cases read back your USART and pin setup. Keep J13 working.
Notes
The TMP102 has the room's reading from power-on. U2 runs at its 16 MHz reset clock. On this bench, only the I2C blocks need a clock enable. Console, 115200 baud: BRR = 0x8B I2C at 100 kHz: FREQ = 16, CCR = 80, TRISE = 17