AnsweredAssumed Answered

How to get ADC working on KDSK1.2+PEx

Question asked by Yaran Nan on Nov 9, 2015
Latest reply on Dec 3, 2015 by Yaran Nan

Hi,

I am trying to read ADC value from a pot.

The chip configuration is MK20DX256VLL10 and software i used KDS3.0+ KSDK1.2+PEx.

I am sure there is no problem with hardware since it works in my old code with KDS2.0+PEx.

So I am thinking my ADC configuration and code sequence might went wrong. I checked

example code and couldnt figure out what went wrong.

Every time i run the code, the ADC value jumped from 255 to 0. It made no difference when I plug and

unplug pot. I have attached my code project and configuration screen shot.

Could someone help? Thanks in advance.

 

Yaran

adc_capture.JPG

 

adc_capture_1.JPG

Original Attachment has been moved to: adc_test.zip

Outcomes