ADC- Port L as analog input

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

ADC- Port L as analog input

613 Views
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. 

Labels (1)
1 Reply

417 Views
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