I'm trying to read AC signals using single-ended mode but for reason, the reading is off by a factor of 10. For example, if the actual signal is supposed to be from 0 to 5 V I get a reading from 0 to 0.5 V. The signal coming to the ADC is generated using a function generator. I'm using a gain of 1 and a sampling rate of 30000. Using the same setting I tried to read a DC signal and the reading is very accurate. I don't know why there's an offset with the ac signal.