ABSTRACT

The Analog-to-Digital Converter (ADC) on the LF2407 allows the DSP to sample analog or “real-world” voltage signals. The output of the ADC is an integer number which represents the voltage level sampled. The integer number may be used for calculations in an algorithm. The resolution of the ADC is 10 bits, meaning that the ADC will generate a 10-bit number for every conversion it performs. However, the ADC stores the conversion results in registers that are 16 bits wide. The 10 most significant bits are the ADC result, while the least significant bits (LSBs) are filled with “0”s. We usually want to truncate the useless zeros, so the value in the result register is simply right shifted by six places.