aduc7061 adc resolution


I use aduc7061 with accelerometer to make angle sensor, and now I'm trying mo set up ADC

In datasheet it is said, that ADC of Aduc7060/7061 is 24bit, but when I read it, I see only 16 bits of value with maximum of 0x7fff and minimum 0x8000 value.

What should I do to enable 24 bits?

I have experimented with conversion rate, but nothing changes. Result of adc conversion is more precise, but it is still 16 bit (with right align)

void initAdc()
        // Configure ADC0 for continuous conversions, 1Khz, AIN0 in Single-ended mode
        ADCMSKI = BIT0;    // Enable ADC0 result ready interrupt source
        //ADCFLT = 0x7;    // Chop off, 1Khz samping rate, SF = 7.    No averaging
        //ADCFLT = BIT15 + BIT14 + BIT8 + 127;
        ADCFLT =  127;
        //ADCFLT = BIT15 + BIT14;
       ADCMDE = BIT0 + BIT7;    // Continuous Conversion mode, Normal mode, 4Mhz clock source to ADC.        

        ADC0CON =
//                BIT0 + // pga gain
//                BIT4 + // external ref
//              BIT6 +         // AIN0 selected in Single ended mode
              BIT7 +         // AIN0 selected in Single ended mode

//              BIT10 +         // Unipolar ADC output
//                BIT11 + // pga output common-mode voltage to avdd/2
//                BIT12 +  // external referene exceeds 1.35v
              BIT15;        // enable adc
    ADCCFG = 0;

    IRQEN = BIT10 + BIT11; // Enable ADC and UART interrupts


__irq void IRQ_Handler(void)
    unsigned long IRQSTATUS = 0;
    unsigned char ucCOMIID0 = 0;

    IRQSTATUS = IRQSTA;       // Read off IRQSTA register
    if ((IRQSTATUS & BIT11) == BIT11)    //UART interrupt source
        ucCOMIID0 = COMIID0;   // Read the UART IRQ ID register

        if ((ucCOMIID0 & 0x2) == 0x2)      // Transmit buffer empty
           ucTxBufferEmpty = 1;
        if ((ucCOMIID0 & 0x1) == 0x1)      // Receive buffer Full      
            ucRxChar = COMRX;              // read COMRX register
            bSendResultToUART = 1;          // Set flag to return a string to the PC
    if ((IRQSTATUS & BIT10) == BIT10)    //If ADC0 interrupt source
      ulADC0Result = ADC0DAT;    // Read ADC0 conversion result
        bSendResultToUART = 1;


  • 0
    •  Analog Employees 
    on Sep 30, 2016 8:12 AM


    From your code, that ADC condition is internal reference with Gain = 1.

    You set Bit7 of ADC0CON with single ended mode, try to set bit10 of ADC0CON with Unipolar output coding.

    So the input range of ADC1 pin should be from 0V to 1.2V(internal reference). Please make sure the ADC5 is connecting with GND.

    Please have a try.

  • I have pulled ADC5 to AVDD/2 (1.2v), and I have 0x7fff when input is 2.4v, and 0x8000 when input is 0v

    In all conditions significant are only low 2 bytes of register (16 bit). Other = 0

    I have tried to set unipolar output coding. Values of conversion were changed, but max and min values still are 16 bit (0x0000 and 0xffff respectively)

    p.s. I'm using Keil for debug.

    I've tried to watch memory in address, where ADC0DAT is situated, but bits, higher than 16 are still = 0

  • 0
    •  Analog Employees 
    on Sep 30, 2016 11:44 AM


    It's a interesting application.

    In spec, you can find that the absolute input voltage range for main channel is from 0.1V  to VDD-0.7, for Auxiliary channel is from 0.1 to VDD-0.1. You use main channel and 2.4V input voltage exceed VDD-0.7. Please try to use Auxiliary channel with correct input range.

  • Have we found the solution on this one as i am getting exactly the same problem, I can only measure 16-bits what even I am doing?

    What was the problem?

  • 0
    •  Analog Employees 
    on Mar 27, 2019 8:03 AM

    Please make sure that you have correct input range. And find the corresponding RMS noise or  ENOB in Table 36 and 37 based on your update rate and PGA configuration.

    It doesn't mean that ADuCM7060/1 can realize the 16bit ADC performance in any case. It depend on your configuration of update rate and PGA value.