i want to work with the ADC on the RT1050. Therefor i imported the example "evkbimxrt1050_adc_12b1msps_sar_interrupt". I routed the ADC IN0 to the connectors J13.
The first question:
As J13 is a 2x Pin header, which header is used?
I connected a variable voltage source with + to J13 Pin1 and - to TB1 for grounding.
The debuging process usw works fine and everytime i press a keyboard button the program returns a value. The main problem is that the returning value is almost constant. It doesnt matter if i power the adc input with 0.1V or 1.0V.
Have i forgot some config settings?
I review the example, Could you tell me if you are using pin #2 of the header J23? please. I reproduced the same example I do not have any problem, I recommend reviewing the RM to review the ADC IN.
The readme.txt of the example has the configuration for the ADC1_IN0.
I don't know if you're confused with pin 1 ADC0, tell me if you need more information I'll help you.
yes, now it works fine. But i have another question. I want to use the ADC1 with two inout sources. The Problem is that the function adc_GetChannelConversionValue() doesnt take the routed pin channel as parameter. How is it possible to measure two different voltages on different pads?
I think you can active de bit register ADC_GC[ACFE]=1 for active the feature of the comparator.
Then you can read the ADCx_HS to know about the trigger comes from.