AnsweredAssumed Answered

ADC MUXING PROBLEM

Question asked by Thippeswamy J on Oct 12, 2014
Latest reply on Oct 28, 2014 by Daniel Chen

Hi,

  friends ,

 

   I am using k60D100M that is 100pin IC and mqx is 4.0.2 verstion , i have problem is how do ADC MUXING .

1.i enable adc1 in userconfig .h ,but adc is not measuring.

2.i am using port pin as -->PTB10;     in pdf (ptb10 is ADC1_SE14)----> means port pin is -----> AD14   ,so

according this one I changed  the  phsical adc channel -->  ADC1_SOURCE_AD14.

 

but actually adc is not reading please tell me any other modification required.

 

const ADC_INIT_CHANNEL_STRUCT adc_channel_param1 =

{

#if defined(BSP_M51EMDEMO)

    BSP_ADC_CH_POT1, /* physical ADC channel */

#elif   defined(BSP_TWR_K70F120M) || (BSP_TWR_K60N512) || defined(BSP_TWR_K40X256) ||\

        defined(BSP_TWR_K40D100M) || defined(BSP_TWR_K53N512) || defined(BSP_TWR_K60D100M)

    ADC1_SOURCE_AD14, /* physical ADC channel */

 

};

 

regards,

thippeswamy j

Outcomes