AnsweredAssumed Answered

ADC infinite loop (kinetis + k64)

Question asked by vivien leymarie on Jul 8, 2019
Latest reply on Jul 9, 2019 by Robin_Shen

Good morning everybody,




I tried to use an ADC to get data from pins (they are either at 0 (ground) or 3.3v).


I have used this helpful tutorial : Tutorial: ADC with the Freedom Board | MCU on Eclipse  yet with a break point it get to AD1_GetValue16(&value); but then goes into an infinite loop and value is never updated. 


To get started, i am just trying with only one pin, currently my test pin ADC0_DP1 is grounded.



I will join my ADC settings and code to show you what i have done.




Thank you for your support