I am using an AD7616 evaluation board with Zedboard. I am trying to set the channel range of the ADC in the software (baremetal application) but the range is set to +/- 10V by default.
Has anybody faced this issue? If so, please comment.
Thanks in advance,
There seems to be an issue with the register mapping for ad7616 core driver.Can you please try the following patch?https://github.com/analogdevicesinc/no-OS/commit/b2b8a375c956dcce47229b5a5e2f4fc0eae0…
It seems to me that this is a software driver issue. Our software engineers are looking into this, will come back to you as soon as they have a solution.
Can you double-check if in your board the pins HW_RNGSEL0 and HW_RNGSEL1 are tied to zero?
In addition, I'm moving this thread to the No-OS software drivers sub-community. Somebody from there will help you out with the software.
Yes the pins are tied to gnd.
May I ask what's exactly the issue? I see you are using AD7616 in software mode and, by default, registers 0x04 to 0x07 are set to FF which means +/-10V range. Are you having problems when changing the range to any different?
Yes, the problem arises for ranges other than +/- 10V.
I have debugged the application. It seems the values for other ranges are written to the corresponding addresses. However, on reading back the values from the registers, the default value of 0 is returned.
Also, I checked whether the FPGA logic generates any read/write logic for register read/write operations. It seems there are no write operations at all. I have checked the application for normal acquisition. It works perfectly. But it just does respond to any software register change.
Is it a Programmable logic issue?
Thank you, That would be really helpful.
Hello Anisha,Can you please check if SER/PAR (Pin 40) is tied high?If not, use SL5 from the board for Vdrive connection.
Looking forward to your feedback.Thank you,
I have configured the board for parallel mode. The SER/PAR pin is low. The problem lies with the software configurable range selection for ranges other than +/-10V.
Can you please send a shot with the output on the UART interface when running the application?Regards,
I have attached the application output and the signals saved.
There seems to be an issue with the register mapping for ad7616 core driver.Can you please try the following patch?https://github.com/analogdevicesinc/no-OS/commit/b2b8a375c956dcce47229b5a5e2f4fc0eae0ba1cLet me know if this works for you.
Yes, it is working perfectly now. Thanks a lot