AnsweredAssumed Answered

iMXRT1064 ADC inputs

Question asked by Anuj Tanksali on Jan 13, 2020
Latest reply on Jan 17, 2020 by Kerry Zhou



My device is iMXRT1064. I am working on a touch screen which is 4 wire resistive. Its has analog outputs which need to be read. On my prototype board the following pins are used.


GPIO_AD_B0_00      TOUCH_XR_IN         CMP1, IN4

GPIO_AD_B0_01      TOUCH_YD               CMP2, IN4

GPIO_AD_B0_02      TOUCH_XL                CMP3, IN4

GPIO_AD_B0_03      TOUCH_YU_IN          CMP4, IN4


As per iMXRT1064 reference manual these pins are Analog comparator pins. 

I only want to read the voltages on these pins. Is it possible to do that? I don't need the comparator.


If yes then please let me know if any reference code is available.