I am using kl16 processor and I am using ADC peripheral as a part of my application. In ADC I want to write an ISR which has to get an interrupt when ADC value is between some threshold. So how can I do this? I tried the example code from codewarrior examples. But that gives interrupt when even 1 ADC sample also changed.
Anyone has idea on this?
Thanks & Regards,