ADC- Port L as analog input

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

ADC- Port L as analog input

1,148件の閲覧回数
madhavkumar
Contributor I

Hi,

In MC9S12ZVC-Family, how can the  Port L input signals ( PL[1:0] / KWL[1:0] ) can be configured and used as analog inputs during ADC conversion.

Because I couldnt find this port as an Analog input channel select in ADCCMD_1 register.

Can anyone help me to fix this ?

Thanks in advance,

Madhav. 

ラベル(1)
1 返信

951件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Madhav,

Please check the MC9S12ZVC-Family Reference Manual :

pastedImage_1.png

pastedImage_2.png

About the code ,  you can create a project with Processor Expert , then add ADC component ,

choose the the PL0 as ADC channel , generate code, you can refer to these code , I also attached

the Init_ADC file .

pastedImage_3.png

Hope it helps

TIC