Consider a heat monitoring system containing an internal temperature sensor that produces different levels of voltage depending on the ambient temperature. The following table summarizes the possible voltage outputs:
Temperature Decreasing
2.7V 3.0V 3.3V 3.6V 3.9V 4.2V 4.5V
Temperature Increasing
We wish to represent these voltages in a computer for further processing. The conversion is done using an analog-to-digital converter.
Provide an optimal binary coding. That is a coding that reflects the behavior of the analog device. Small changes on the analog side cause small movements on the binary side.