AnsweredAssumed Answered

FMCOMMS1 ADC Over Range Bit

Question asked by Muhammet on Nov 20, 2015
Latest reply on Dec 9, 2015 by Muhammet

Hi,

 

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;

ADC_Core_Write(0x0404,1);

ADC_Core_Write(0x0444,1);

 

ADC_Core_Read(0x0404,&temp_data);

xil_printf("ADC OR 0x0101 : %x \n\r",temp_data);

ADC_Core_Read(0x0444,&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,

Muhammet

Outcomes