ADC0_DM0 single-ended mode in MKW38?

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

ADC0_DM0 single-ended mode in MKW38?

Jump to solution
758 Views
emilj
Contributor II

Hi,

Is it possible to use the ADC input ADC0_DM0 in single-ended mode on MKW38?
If so, how? I can't find out which ADC Channel should be selected when looking in the reference manual.

Best Regards,

Emil

adc0_channel_assignment.png

0 Kudos
1 Solution
673 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @emilj,

Is this assumption correct?

Yes, this assumption is correct, when the channel is selected as a Single-Ended Input (DIFF = 0), the positive input (ADC0_DP0) is the selected input signal. This is the recommended configuration.

In order to utilize DM0 as single-ended, the channel could be selected as a Differential Input, and then connect DP0 to ground, so your input signal could be DM0.

Best regards,
Julián

 

View solution in original post

3 Replies
709 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi, @emilj!

Please help me checking chapter 31.2.4 Analog Channel Inputs (ADx) in the KW38's Reference Manual:

"The ADC module supports up to 24 single-ended analog inputs. A single-ended input is selected for conversion through the SC1[ADCH] channel select bits when SC1n[DIFF] is low. "

Also, chapter 31.3.1 ADC Status and Control Registers 1 (ADCx_SC1n), in ADCx_SC1n field descriptions, field 5 describes the configuration, and field ADCH selects one of the input channels:

Julin_AragnM_0-1691510772930.png

Julin_AragnM_1-1691510772932.png

An input is selected as Single-ended conversion when DIFF = 0.

I hope you find this helpful!

Best regards,
Julián

0 Kudos
683 Views
emilj
Contributor II

Hi,

Yes, according to chapter 31.3.1 ADC Status and Control Registers 1 (ADCx_SC1n) in the KW38's Reference Manual, it seems like it's not possible to use ADC0_DM0 / DADM0 as single-ended input.

Is this assumption correct?

I found this under 31.2.5 Differential Analog Channel Inputs (DADx) in the KW38's Reference Manual:

All DADPx inputs may be
used as single-ended inputs if SC1n[DIFF] is low. In certain MCU configurations, some
DADMx inputs may also be used as single-ended inputs if SC1n[DIFF] is low. For ADC
connections specific to this device, see the chip-specific ADC information.

0 Kudos
674 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @emilj,

Is this assumption correct?

Yes, this assumption is correct, when the channel is selected as a Single-Ended Input (DIFF = 0), the positive input (ADC0_DP0) is the selected input signal. This is the recommended configuration.

In order to utilize DM0 as single-ended, the channel could be selected as a Differential Input, and then connect DP0 to ground, so your input signal could be DM0.

Best regards,
Julián