Hi Hans,
That is because you multiply a return value of type byte with 10 and it stays a byte.
You should change the return of type byte to a word first before multiplying.
That is done as follows: SON = word(adc_read_low_res(0)) * 10
In your version that is corret you first assign the returned byte value to a word and then you multiply it with 10.
Kind regards,
Rob