[FAQ] ADS1261: ADS1261 Example C Code Software
Part Number: ADS1261
I am using the sample code provided for ADS1261. I am able to write the configuration registers and also read back it with correct data.
But when i try to read the status byte (add: 01h), I am getting REFL_ALM bit getting set which means reference voltage is below the low limit. I have enable internal reference voltage by setting REFENB bit in REF Register.
Can you help me with possible reasons for REFL_ALM getting set.
Thanks in advance.
In addition to setting the REFENB bit in the REF register, you also need to select the correct reference configuration using the RMUXP and RMUXN bits (in the same REF register). Have you selected the internal reference using these bits? The default is AVDD and AVSS.
If you can share your schematic and register settings that would help.
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Bryan Lizon86:
I am using the reference code share for ADS1261 with changes in few registers
initRegisterMap[REG_ADDR_ID] = 0x00; /* NOTE: This a read-only register */ initRegisterMap[REG_ADDR_STATUS] = STATUS_CLEAR; /* NOTE: This a non-default setting */ initRegisterMap[REG_ADDR_MODE0] = 0x4C; initRegisterMap[REG_ADDR_MODE1] = 0x41; initRegisterMap[REG_ADDR_MODE2] = 0x30; initRegisterMap[REG_ADDR_MODE3] = 0x00; initRegisterMap[REG_ADDR_REF] = 0x15; initRegisterMap[REG_ADDR_OFCAL0] = OFCAL0_DEFAULT; initRegisterMap[REG_ADDR_OFCAL1] = OFCAL1_DEFAULT; initRegisterMap[REG_ADDR_OFCAL2] = OFCAL2_DEFAULT; initRegisterMap[REG_ADDR_FSCAL0] = FSCAL0_DEFAULT; initRegisterMap[REG_ADDR_FSCAL1] = FSCAL1_DEFAULT; initRegisterMap[REG_ADDR_FSCAL2] = FSCAL2_DEFAULT; initRegisterMap[REG_ADDR_IMUX] = 0x4A; initRegisterMap[REG_ADDR_IMAG] = 0x66; initRegisterMap[REG_ADDR_RESERVED] = RESERVED_DEFAULT; initRegisterMap[REG_ADDR_PGA] = PGA_DEFAULT; initRegisterMap[REG_ADDR_INPMUX] = 0x98; initRegisterMap[REG_ADDR_INPBIAS] = INPBIAS_DEFAULT;
Please review and let me know if there is any mistake.
In reply to Mahesh Adsul1:
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.