I want to detect over range signal for both channels. In SDK software, Firstly, I set ADC OR register for both channels, then I read it repeatedly to detect over range signal. The code that I use to write and read ADC OR register is below.
uint32_t temp_data = 0;
xil_printf("ADC OR 0x0101 : %x \n\r",temp_data);
xil_printf("ADC OR 0x0111 : %x \n\r",temp_data);
I tested it with signals that I know whether it is over range or not. The code I use is working correctly for channel 1 but it is not working for channel 2. I always read '0' for channel 2. How I can detect over range signal for both channels?
Thanks in advance,