Hi,
A quick'n'easy way could be if you changed your ADC resolution from 8 to 10 bits and then:/Henrik Olsson.Code:DEFINE ADC_BITS 10 ADVAL VAR WORD '<----Don't forget to change this to a WORD loop: ADCIN 0, adval 'Store ADC value to adval ADVAL = ADVAL * 10 / 102 'ADVAL is now between 0-100 Serout 4, 6, [254, 1] pause 2 serout 4, 6, [#adval] 'display to the LCD pause 250 Goto loop 'Do it forever End
Bookmarks