This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS1261: AC Excitation programming setup

Part Number: ADS1261
Other Parts Discussed in Thread: TMUX1511,

Dear Mr. Hall

On 8-16-19 you replied to my programming question about the AC excitation of the ADS1261 ADC.  Due to priority changes, I have just now got back to this project.  Please see below the pseudo-code command sequence you sent me with related questions.

WREG 02 48  / SINC 1, 1200SPS

WREG 03 61  / Enable 4-wire AC excitation

WREG 04 C0  / Configure AIN4 and AIN5 as GPIO outputs - by not enabling AIN2 and AIN3 this is an alternate way of performing 2-wire AC excitation.

QUESTION: Because 4-wire AC excitation is enabled, will enabling only AIN4 and AIN5 as GPIO outputs also enable AIN2 and AIN3 as GPIO outputs?  

QUESTION: What do you mean by "by not enabling AIN2 and AIN3 this is an alternate way of performing 2-wire AC excitation"?  Do you mean that if you were to enable 2-wire AC excitation, and configure AIN4 and AIN5 as GPIO outputs, AIN4 and AIN5 would become the drivers for the AC switching?

WREG 05 64  / Enable STATUS/CRC bytes and set GPIO2 HIGH.

QUESTION: In the AC-Excitation Timing Characteristics (FIG 7 page 14 in the ADS1261 data sheet), it shows ACX1 (GPIO2, AIN4) starting out low. By setting GPIO2 (AIN4, ACX1) high, does this mean that all ACX signals will be initialized opposite of what is shown in FIG 7?  The reason I ask this is because I'm using 2-wire AC excitation and the TI TMUX1511 to due the AC switching.  I have inadvertently connected !ACX1 and !ACX2 to the wrong switches.  I therefore would like to flip the initial !ACX polarity.  Can this be done?

WREG 06 0A  / External AIN0 and AIN1 reference selected

QUESTION: It appears that an A written to the REF register (REG 6) will choose AIN2 as the positive reference input and the internal reference negative as the negative reference input.  Is this correct or am I missing something?

WREG 10 00  / PGA enabled, gain of 1 V/V

WREG 11 34  / Select AIN 2 and AIN3 as analog inputs

QUESTION: How can AIN 2 and AIN3 be used as inputs when they are being used for 4-wire excitation switching?

  • Hi Dennis,

    Good to hear from you! Let me try my best to clarify...

    QUESTION: Because 4-wire AC excitation is enabled, will enabling only AIN4 and AIN5 as GPIO outputs also enable AIN2 and AIN3 as GPIO outputs?

    No, enabling the GPIO outputs and enabling the ac-excitation mode are two separate settings. Both must be enabled to see the ac-excitation drive signals on the GPIO outputs.

    QUESTION: What do you mean by "by not enabling AIN2 and AIN3 this is an alternate way of performing 2-wire AC excitation"? Do you mean that if you were to enable 2-wire AC excitation, and configure AIN4 and AIN5 as GPIO outputs, AIN4 and AIN5 would become the drivers for the AC switching?

    According to the ADS1261's register settings "2-wire ac-excitation mode" will only enable the drive signals on AIN2 and AIN3 (assuming these pins are also configured as GPIO outputs).

    Likewise, according to the ADS1261's register settings "4-wire ac-excitation mode" will enable the drive signals on AIN2, AIN3, AIN4, and AIN5 (assuming these pins are also configured as GPIO outputs). However, since AIN4 and AIN5 are inverted versions of AIN2 and AIN3, you may choose to only enable the GPIO outputs on AIN4 and AIN5 and just use these signals as the drive signals (which is a kind of 2-wire implementation).

    The ADS1261EVM was configured to demo this "alternate" two wire ac-excitation mode; however, whichever implementation you want to use is up to you. However, the benefit of this "alternate" mode is that is leaves AIN2 and AIN3 free to be used as a seconed external reference input if needed. If you don't need a second external reference.

    QUESTION: In the AC-Excitation Timing Characteristics (FIG 7 page 14 in the ADS1261 data sheet), it shows ACX1 (GPIO2, AIN4) starting out low. By setting GPIO2 (AIN4, ACX1) high, does this mean that all ACX signals will be initialized opposite of what is shown in FIG 7? The reason I ask this is because I'm using 2-wire AC excitation and the TI TMUX1511 to due the AC switching. I have inadvertently connected !ACX1 and !ACX2 to the wrong switches. I therefore would like to flip the initial !ACX polarity. Can this be done?

    Unfortunately, you'll have to make a change to the pin connections. Once you enable one of the ac-excitation modes, the internal logic takes over control of the ACXn pins, no matter their initial state.

    QUESTION: It appears that an A written to the REF register (REG 6) will choose AIN2 as the positive reference input and the internal reference negative as the negative reference input. Is this correct or am I missing something?

    Writing 0x0A to the REF register configures AIN0 as the positive reference input and AIN1 as the negative reference input.

    Writing 0x1C would configure the reference inputs as you described.

    QUESTION: How can AIN 2 and AIN3 be used as inputs when they are being used for 4-wire excitation switching?

    As long as you do not enable the GPIO connections to AIN2 and AIN3, you can use their other functions. The input MUX, reference MUX, and GPIO MUX switches are all independent, as hinted by the Functional block diagram:

     

  • Chris

    Thank you for the help.  Sorry for the miss-read of the 'A' hex. 

  • Hi Dennis,

    You're welcome, and not a problem at all!