Can I use ADC a/b channels on the same time?

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

Can I use ADC a/b channels on the same time?

563 Views
ahmadbaghdadi
Contributor I

Hi all, 

 

Can I use ADC1_SE6a and ADC1_SE6b channels on MK64FN1M0VLL12 on the same time using different pins of the MCU?

 

I found two issues of using set channel mux mode (ADC16_SetChannelMuxMode) in the SDK,  first it  will change all other channel numbers as well (such as ADC1_SE7a to ADC1_SE6b and so on), second, I have to trigger a new ADC conversation again to read the value. 

 

 

Thanks in advance.

Ahmad 

Labels (1)
0 Kudos
1 Reply

375 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Ahmad,

As you know that the MUXSEL bit in ADCx_CFG2 can select the ADxxa or ADxxb channel, the MUXSEL bit is in ADC module register instead of pin assigment register, so it is impossible to select ADC1_SE6a and ADC1_SE6b channels on MK64FN1M0VLL12 on the same time using different pins of the MCU, if you want to sample ADxxa or ADxxb channel, you have to set the MUXSEL bit in ADCx_CFG2 in ADC interrupt service routine so that you can sample one channel by another channel.

for detail, pls refer to the section 35.3.3 ADC Configuration Register 2 (ADCx_CFG2).

Hope it can help you

BR

XiangJun Rong

0 Kudos