AnsweredAssumed Answered

How to add AD IOs in the LWADC example?

Question asked by Francisco Locatelli on Mar 12, 2015
Latest reply on Mar 24, 2015 by David E Seymour



I´m having trouble trying to add adc IOs in the LWADC example located in C:\Freescale\Freescale_MQX_4_1\mqx\examples\lwadc.

In order for the example to run, it is defined by default "BSP_ADC_POTENTIOMETER" as "ADC1_SOURCE_AD20" in twrk60n512.h.

The problem is: I don´t know what to define to make the other ADC inputs work.

I saw in the file adc_mk60.h a list of defines linking all the ADC_SOURCE_CHANNELS, but I can´t make a connection between those source channels and physical pins in my TWRK60N512.


Can someone help me with that?


Thank you very much.


Best regards,


Francisco S. Locatelli