AnsweredAssumed Answered

ADC configuration in BSP

Question asked by Tuo Wang on Jan 26, 2015
Latest reply on Jan 27, 2015 by Radek Sestak

I am writing MQX application code for Kinetis MCU MK64FN1M0VLL12 of a custom board. My question is regarding ADC configuration in BSP.

I would like to use pin 14 (ADC0_DP1) and pin 15(ADC0_DM1) as two singled ended ADC inputs instead of differential ADC (which is by default). How to configure BSP projects to make this work? The BSP projects I am using are ported from FRDM-K64F BSPs and All ADC related configuration are as default.

 

I noticed that in (costomboard).h file under bsp project directory, there are macros defining ADC input and ADC source mapping. What ADC source should I use if I want to configure those two pins are two single-

ended ADC inputs? Is there any other places in BSP projects or application code (My plan is to use LWADC APIs) that I need to modify to make this work?

 

Thank you very much!

Tuo

Outcomes