ADC MUXING PROBLEM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ADC MUXING PROBLEM

483 Views
thippeswamyj
Contributor I

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

Tags (3)
0 Kudos
1 Reply

288 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi

I think you can check the MUX in the register PORTx_PCRn, whether PTB10 is analog.

0 Kudos