Programming: ADC (Analog to Digital Conversion) Capturing the 10-bit ADC result and Displaying the Result on the LCD

to get the 10-bit number from the ADC conversion, the ADCL (ADC Low Data Byte) is read first (must be read first) and stored into another variable. The remaining data is located in the ADCH (ADC High Data Byte) and is moved 8 positions to the left so there is room for the ADCL variable byte. That result is stored in another variable and is sent to the LCD.



Back to blog

Leave a comment

Please note, comments need to be approved before they are published.