Fallback
Sensor Glitch Filter Debug
Symptom
A glitch on the sensor line printed TEMP:-1. The registers and bit fields are on the Datasheet tab.
Circuit
Pass condition
After the five boot reads, USART1 prints one line. If any reading is 0 to 85 -> TEMP:<n>, the last such one. If none is -> TEMP:SAFE. Other readings are discarded.
Notes
The bench plays the sensor from power-up. It sends each reading as 0 to 255, glitches too. Only I2C1 needs its clock enabled on this bench, and the program does that.