I am designing an ADC card using ADuC845. In Keil, I wrote a C-code for the same purpose. I provide a sine input signal of 1Hz frequency and output 1000 readings during testing. But, there are a few consecutive pairs of the same reading. There are around 10 pairs of the same reading among those 1000 readings. This is because of a delay during the configuration of ADC0CON1 and ADC0CON2. How much delay should I provide to avoid the repetition of readings at adjacent places? Or there are other places where I need to put a delay?