ADC MUXING PROBLEM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

ADC MUXING PROBLEM

568件の閲覧回数
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

タグ(3)
0 件の賞賛
返信
1 返信

373件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi

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

0 件の賞賛
返信