Can the DP and DM pins on the K64 be used as single ended ADC inputs?

cancel
Showing results for 
Search instead for 
Did you mean: 

Can the DP and DM pins on the K64 be used as single ended ADC inputs?

450 Views
larrydemuth
Contributor III

I'm working on a project with the K64, and the board has analog inputs tied to pins ADC0_DP1, and ADC0_DM1 pins. The are not to be measured deferentially, but single ended. I don't see how to configure the part for this setup. Can DPx and DMx pins both be used to measure single ended? Or only one of them (DPx?).

Another question is the reference manual says "For ADC connections specific to this device, see the chip-specific ADC information". WHERE is this?

The reference manual is K64P144M120SF5RM, and its in chapter 35.2.5 where is says to see the above about the DADPx and DADMx pins. 

Larry

3 Replies

163 Views
larrydemuth
Contributor III

Ok, so it looks like DM1 pin can be single ended, I just need to select channel AD20. I'll try it tomorrow.

Thanks!

0 Kudos

163 Views
mjbcswitzerland
Specialist V

Larry

Yes,

    #define ADC_DP0_SINGLE      0
    #define ADC_SE0_SINGLE      0
    #define ADC_D0_DIFF         0
    #define ADC_DP1_SINGLE      1
    #define ADC_SE1_SINGLE      1
    #define ADC_D1_DIFF         1
    #define PGA_DP_SINGLE       2
    #define ADC_SE2_SINGLE      2
    #define PGA_D_DIFF          2
    #define ADC_DP3_SINGLE      3
    #define ADC_SE3_SINGLE      3
    #define ADC_D3_DIFF         3
    #define ADC_SE4_SINGLE      4
    #define ADC_SE5_SINGLE      5
    #define ADC_SE6_SINGLE      6
    #define ADC_SE7_SINGLE      7
    #define ADC_SE8_SINGLE      8
    #define ADC_SE9_SINGLE      9
    #define ADC_SE10_SINGLE     10
    #define ADC_SE11_SINGLE     11
    #define ADC_SE12_SINGLE     12
    #define ADC_SE13_SINGLE     13
    #define ADC_SE14_SINGLE     14
    #define ADC_SE15_SINGLE     15
    #define ADC_SE16_SINGLE     16
    #define ADC_SE17_SINGLE     17
    #define ADC_SE18_SINGLE     18
    #define ADC_VREF_OUT_1      18                                           // ADC 1
    #define ADC_SE19_SINGLE     19
    #define ADC_DM0_SINGLE      19
    #define ADC_SE20_SINGLE     20
    #define ADC_DM1_SINGLE      20
    #define ADC_SE21_SINGLE     21
    #define ADC_DM3_SINGLE      21
    #define ADC_SE22_SINGLE     22
    #define ADC_VREF_OUT_0      22                                           // ADC 0
    #define ADC_SE23_SINGLE     23
    #define DAC_OUT             23

    #define ADC_TEMP_SENSOR     26
    #define ADC_BANDGAP         27

    #define ADC_VREFH           29
    #define ADC_VREFL           30
    #define ADC_DISABLED        31

In fact, the same for all Kinetis K, KV, KM, KL parts (although not all channels are necessarily available).

Regards

Mark