AnsweredAssumed Answered

What is correct sequence of reading two adc pins

Question asked by A2 on Aug 29, 2013
Latest reply on Aug 29, 2013 by baird.hal.001
What is correct sequence of reading two adc pins in software control mode of module ADC1
I have to scan 14 & 9 channel but under software control mode .

while(1)
{
  SQR3 = 0x0E;   /* select 14 channel to scan  */
  CR2 |= SWSTART;    /* start the conv */ 
  while( !EOC );            /* while end of conversion */
  data = DR;                 /* read data */


  SQR3 = 0x09;   /* select 9 channel to scan  */
  CR2 |= SWSTART;    /* start the conv */ 
  while( !EOC );            /* while end of conversion */
  data = DR;                 /* read data */

}

Outcomes