AnsweredAssumed Answered

can't enable excitation source 0 and 1 sequentially?

Question asked by Karthickph on Mar 12, 2014
Latest reply on Mar 12, 2014 by ABuda

Hi there, I'm currently working on a product firmware which has ADuC7060 microconverter... I enabled excitation source 0 and 1, to read the respective results in the configured ADC ports.  The issue is, the excitation source 0 is enabled and working perfectly; but excitation source 1 is not enabled and there is no ADC result.  Please see the below code which I wrote;

 

/*Determine the High level current @200uA*/

          IEXCON = BIT1 + BIT6;  // Enable Excitation Current Source0 - 200uA

    delay (5);

    ADC1CON = BIT15 + BIT8; //Auxiliary, ADC6/7, Bipolar, Gain1, internal ref 1.2V

   while((ADCSTA & BIT1) != BIT1){} // Wait for adc to complete for Auxiliary

    ulADC1Result = ADC1DAT; // Read ADC1 ie Auxiliary conversion result

 

/*Determine the High level current @200uA for rtd*/

          IEXCON = BIT1 + BIT7;  // Enable Excitation Current Source1 - 200uA

    delay (5);

    ADC1CON = BIT15; //Auxiliary, ADC2/3, Bipolar, Gain1, internal ref 1.2V

   while((ADCSTA & BIT1) != BIT1){} // Wait for adc to complete for Auxiliary

    ulADC1Result = ADC1DAT; // Read ADC1 ie Auxiliary conversion result

 

Please let know if any of the configuration settings are missed out to get the results as expected.

 

Regards,

Karthick

Outcomes