<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Resistive Touch Issue in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1134248#M9926</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I will see if i can measure the voltages and compare with the read counts.&lt;/P&gt;&lt;P&gt;I am getting ADC count range as 2500-1500. If i Touch LCD at RIGHT most position i get around 2500 and similarly LEFT most LCD Touch position gives me around 1500 counts. Note these are X counts&lt;/P&gt;&lt;P&gt;Touch at LCD TOP position gives me Y as 2300 ADC counts and touch at BOTTOM position gives me&amp;nbsp;&lt;/P&gt;&lt;P&gt;1780 ADC counts.&lt;/P&gt;&lt;P&gt;This range should be in 0-4096 counts as using 12 bit internal ADC of iMXRT1064. Am getting around 1000 counts only. As the LCD resolution is 800x480 the reduced ADC count range could will be an issue.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;As the Touch resistive pins are to be used as GPIO as well as ADC i have initially configured then as GPIO and then for ADC reading I configure the pin as input&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please see steps below&lt;/P&gt;&lt;P&gt;1) Set the X+ as High and X- as zero&lt;/P&gt;&lt;P&gt;2) Set the Y- and Y+ as GPIO inputs.&lt;/P&gt;&lt;P&gt;3) Read Y+ as below&amp;nbsp;&lt;/P&gt;&lt;P&gt;touchAdcChannelConfigStruct.channelNumber = 4;&lt;/P&gt;&lt;P&gt;// Trigger the conversion start.&lt;BR /&gt;TCH_ADC_SetChannelConfig(&amp;amp;touchAdcChannelConfigStruct);&lt;/P&gt;&lt;P&gt;// Wait for conversion complete. if TRUE conversion is complete.&lt;BR /&gt;while (0U == TCH_ADC_GetChannelStatusFlags())&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;// Read the value if conversion is complete.&lt;BR /&gt;adcVal = TCH_ADC_GetChannelConversionValue();&lt;/P&gt;&lt;P&gt;4) Set Y+ as High&lt;/P&gt;&lt;P&gt;5) Set X- and X+ as GPIO inputs&lt;/P&gt;&lt;P&gt;6) Read X+ as below&lt;/P&gt;&lt;P&gt;touchAdcChannelConfigStruct.channelNumber = 3;&lt;/P&gt;&lt;P&gt;// Trigger the conversion start.&lt;BR /&gt;TCH_ADC_SetChannelConfig(&amp;amp;touchAdcChannelConfigStruct);&lt;/P&gt;&lt;P&gt;// Wait for conversion complete. if TRUE conversion is complete.&lt;BR /&gt;while (0U == TCH_ADC_GetChannelStatusFlags())&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;// Read the value if conversion is complete.&lt;BR /&gt;adcVal = TCH_ADC_GetChannelConversionValue();&lt;/P&gt;&lt;P&gt;7) So i get the ADC X and ADC Y counts as above&lt;/P&gt;&lt;P&gt;Please let me know your thoughts on the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anuj&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Sep 2020 12:54:41 GMT</pubDate>
    <dc:creator>anujtanksali</dc:creator>
    <dc:date>2020-09-02T12:54:41Z</dc:date>
    <item>
      <title>Resistive Touch Issue</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1076265#M9022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;Hello,&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;Am using iMXRT1064 with Emwin library and 7" resistive touch screen. I am using a custom ADC driver to read x and y values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;// points p0,p1,p2 x and y pixels&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;int touchRefValX[3] = {40,760,400};&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;int touchRefValY[3] = {24,240,456};&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;// ADC x and y values at above points&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;int touchSampleValX[3] = {2552,1504,1954};&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;int touchSampleValY[3] = {2295,1923,1803};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;the range of ADC values for x and y are always in around 1400 counts to 2500 counts.For 12 bit range should be 0-4096.&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;// init&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;GUI_TOUCH_CalcCoefficients(3, &amp;amp;touchRefValX[0], &amp;amp;touchRefValY[0], &amp;amp;touchSampleValX[0], &amp;amp;touchSampleValY[0], 800, 480);&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;GUI_TOUCH_EnableCalibration(1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;//read touch&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;pressed = get_adc(&amp;amp;touchX,&amp;amp;touchY)&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;if(pressed == TRUE){&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;touchState.Pressed = TRUE;&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;touchState.x = touchX;&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;touchState.y = touchY;&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;GUI_TOUCH_StoreStateEx(&amp;amp;touchState);&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;prevState = pressed;&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;}&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;else if(prevState != pressed){&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;touchState.x = -1;&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;touchState.y = -1;&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;touchState.Pressed = FALSE;&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;prevState = pressed;&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;GUI_TOUCH_StoreStateEx(&amp;amp;touchState);&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;}&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;I get the pressed and un-pressed but actual touch it does not work as expected. i don't get the events as expected.&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;What am i doing wrong? Any sample code with similar configuration would be helpful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;Thanks &amp;amp; Regards&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #f1f5fa;" /&gt;&lt;SPAN style="color: #666666; background-color: #f1f5fa;"&gt;Anuj&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2020 09:51:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1076265#M9022</guid>
      <dc:creator>anujtanksali</dc:creator>
      <dc:date>2020-08-28T09:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Resistive Touch Issue</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1076266#M9023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to debug and found out that i don't get release events always. if i get the release event it works as expected.&lt;/P&gt;&lt;P&gt;I mostly get the CLICKED EVENT and MOVE OUT EVENT.&lt;/P&gt;&lt;P&gt;Please let me know if my above code to check touch is correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anuj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2020 11:33:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1076266#M9023</guid>
      <dc:creator>anujtanksali</dc:creator>
      <dc:date>2020-08-28T11:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Resistive Touch Issue</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1132961#M9888</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;anujtanksali,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;RT1064 ADC reference voltage is 3.3V, so your 12bit ADC max data 4095 is the 3.3V.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Do you test your resistive touch related pins, you can test the voltage, then convert it to the ADC data, whether it is the same as the ADC readout data?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Please check the X and Y voltage, and calculate it, just used to check the ADC readout data is simliar to your calculate data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any updated information, please kindly let me know.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 08:03:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1132961#M9888</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-09-01T08:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Resistive Touch Issue</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1134248#M9926</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I will see if i can measure the voltages and compare with the read counts.&lt;/P&gt;&lt;P&gt;I am getting ADC count range as 2500-1500. If i Touch LCD at RIGHT most position i get around 2500 and similarly LEFT most LCD Touch position gives me around 1500 counts. Note these are X counts&lt;/P&gt;&lt;P&gt;Touch at LCD TOP position gives me Y as 2300 ADC counts and touch at BOTTOM position gives me&amp;nbsp;&lt;/P&gt;&lt;P&gt;1780 ADC counts.&lt;/P&gt;&lt;P&gt;This range should be in 0-4096 counts as using 12 bit internal ADC of iMXRT1064. Am getting around 1000 counts only. As the LCD resolution is 800x480 the reduced ADC count range could will be an issue.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;As the Touch resistive pins are to be used as GPIO as well as ADC i have initially configured then as GPIO and then for ADC reading I configure the pin as input&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please see steps below&lt;/P&gt;&lt;P&gt;1) Set the X+ as High and X- as zero&lt;/P&gt;&lt;P&gt;2) Set the Y- and Y+ as GPIO inputs.&lt;/P&gt;&lt;P&gt;3) Read Y+ as below&amp;nbsp;&lt;/P&gt;&lt;P&gt;touchAdcChannelConfigStruct.channelNumber = 4;&lt;/P&gt;&lt;P&gt;// Trigger the conversion start.&lt;BR /&gt;TCH_ADC_SetChannelConfig(&amp;amp;touchAdcChannelConfigStruct);&lt;/P&gt;&lt;P&gt;// Wait for conversion complete. if TRUE conversion is complete.&lt;BR /&gt;while (0U == TCH_ADC_GetChannelStatusFlags())&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;// Read the value if conversion is complete.&lt;BR /&gt;adcVal = TCH_ADC_GetChannelConversionValue();&lt;/P&gt;&lt;P&gt;4) Set Y+ as High&lt;/P&gt;&lt;P&gt;5) Set X- and X+ as GPIO inputs&lt;/P&gt;&lt;P&gt;6) Read X+ as below&lt;/P&gt;&lt;P&gt;touchAdcChannelConfigStruct.channelNumber = 3;&lt;/P&gt;&lt;P&gt;// Trigger the conversion start.&lt;BR /&gt;TCH_ADC_SetChannelConfig(&amp;amp;touchAdcChannelConfigStruct);&lt;/P&gt;&lt;P&gt;// Wait for conversion complete. if TRUE conversion is complete.&lt;BR /&gt;while (0U == TCH_ADC_GetChannelStatusFlags())&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;// Read the value if conversion is complete.&lt;BR /&gt;adcVal = TCH_ADC_GetChannelConversionValue();&lt;/P&gt;&lt;P&gt;7) So i get the ADC X and ADC Y counts as above&lt;/P&gt;&lt;P&gt;Please let me know your thoughts on the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anuj&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 12:54:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1134248#M9926</guid>
      <dc:creator>anujtanksali</dc:creator>
      <dc:date>2020-09-02T12:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Resistive Touch Issue</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1134492#M9929</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Adding to above reply.&lt;/P&gt;&lt;P&gt;my latest emwin related code is as below,&lt;/P&gt;&lt;P&gt;uint16_t touchX = 0;&lt;BR /&gt;uint16_t touchY = 0;&lt;BR /&gt;uint8_t pressed = FALSE;&lt;BR /&gt;static uint8_t prevState = FALSE;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// Call the function to get the raw values of x,y&lt;BR /&gt;pressed = Touch_getPositionRaw(&amp;amp;touchX, &amp;amp;touchY);&lt;/P&gt;&lt;P&gt;if(pressed == TRUE){&lt;/P&gt;&lt;P&gt;// Set the parameters to send to emwin.&lt;BR /&gt;touchState.Pressed = TRUE;&lt;/P&gt;&lt;P&gt;// Set the values;&lt;BR /&gt;touchState.x = touchX;&lt;BR /&gt;touchState.y = touchY;&lt;BR /&gt;// Store the pressed state for emwin to process.&lt;BR /&gt;GUI_TOUCH_StoreStateEx(&amp;amp;touchState);&lt;BR /&gt;prevState = pressed;&lt;BR /&gt;}&lt;BR /&gt;else if(prevState != pressed){&lt;BR /&gt;&lt;BR /&gt;prevState = pressed;&lt;BR /&gt;touchState.Pressed = FALSE;&lt;BR /&gt;// Store the unpressed state for emwin to process.&lt;BR /&gt;GUI_TOUCH_StoreStateEx(&amp;amp;touchState);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Please let me know if any issues.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anuj&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 17:18:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1134492#M9929</guid>
      <dc:creator>anujtanksali</dc:creator>
      <dc:date>2020-09-02T17:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Resistive Touch Issue</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1144330#M9967</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;anujtanksali,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Do you mean, when you select the project as the release version instead of the debug version, then it works?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Release version can get the correct touch, but debug mode can't get the correct touch event?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;If yes, you need to check the optimization in the project options, any difference between your debug and release?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wish it helps you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you still have questions about it, please kindly let me know!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Note:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-----------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 03:03:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1144330#M9967</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-09-04T03:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Resistive Touch Issue</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1149083#M9980</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336"&gt;@kerryzhou&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I meant i don't get the release events always when i press the LCD. As am using Emwin library i pass the raw ADC touchx and touchy to emwin by using&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;GUI_TOUCH_StoreStateEx(&amp;amp;touchState); as show above in my code. It is expected that i get the the WM_NOTIFICATION_CLICKED event from Emwin library when i press the LCD and WM_NOTIFICATION_RELEASED event from Emwin library when i release the LCD.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The latest development in this regard is below,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I re-calibrated the LCD multiple times using standard 9 point calibration and increased the size of the widgets due to which there is improvement and i get the&amp;nbsp;&lt;SPAN&gt;WM_NOTIFICATION_CLICKED and&amp;nbsp;WM_NOTIFICATION_RELEASED events.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But it does not always work 100% of the time.&amp;nbsp;I think it has to do with the default calibration points which are passed to Emwin to calibrate the Touch.&lt;/P&gt;&lt;P&gt;below are the points used&lt;/P&gt;&lt;P&gt;// Pixel coordinates&lt;/P&gt;&lt;P&gt;int touchRefValX[9] = {40,400,760,40,400,760,40,400,760};&lt;BR /&gt;int touchRefValY[9] = {24,24,24,240,240,240,456,456,456};&lt;/P&gt;&lt;P&gt;// ADC values&lt;/P&gt;&lt;P&gt;int touchSampleValX[9] = {2561,1958,1531,2561,1961,1531,2564,1959,1526};&lt;BR /&gt;int touchSampleValY[9] = {2308,2304,2305,1970,1966,1955,1772,1764,1764};&lt;/P&gt;&lt;P&gt;The above points are applied using emwin api's below&lt;/P&gt;&lt;P&gt;// Set the calibration coefficients.&lt;BR /&gt;GUI_TOUCH_CalcCoefficients(9, &amp;amp;touchRefValX[0], &amp;amp;touchRefValY[0], &amp;amp;touchSampleValX[0], &amp;amp;touchSampleValY[0], 800, 480);&lt;/P&gt;&lt;P&gt;// Enable use of above calibration coefficients.&lt;BR /&gt;GUI_TOUCH_EnableCalibration(TRUE);&lt;/P&gt;&lt;P&gt;Attached is the excel containing the log of ADC x and y values. using the values in excel average x and y are taken for each point and used for&amp;nbsp;GUI_TOUCH_CalcCoefficients.&lt;/P&gt;&lt;P&gt;Please let me know if any inputs.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anuj&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 16:16:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1149083#M9980</guid>
      <dc:creator>anujtanksali</dc:creator>
      <dc:date>2020-09-04T16:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Resistive Touch Issue</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1149391#M9989</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/161420" target="_self"&gt;anujtanksali&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;About the emwin based issue, I think you need to check with the Segger side:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.segger.com/support/technical-support/" target="_blank"&gt;https://www.segger.com/support/technical-support/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;You can check with the Segger emwin engineer, what the detail data the emwin touch API needed, then you can check the RT chip, whether the RT ADC can get the correct ADC value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;We can divide your question into two parts, one is the RT ADC, whether the RT can get the correct touch ADC value. Another is the emwin question, this type question you need to check with the segger side, as the emwin is the Segger product.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wish it helps you!&lt;/P&gt;
&lt;P&gt;If you still have questions about it, please kindly let me know!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;Note:&lt;/P&gt;
&lt;P&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;/P&gt;
&lt;P&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;/P&gt;
&lt;P&gt;-----------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 03:13:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1149391#M9989</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-09-07T03:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Resistive Touch Issue</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1150026#M10006</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336"&gt;@kerryzhou&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;The ADC seems to be giving the reading correct as i checked this with setting a touchscreen related pin to high and reading the ADC value. I get around 4070 counts which is near to 4096 and as expected as ADC is 12bit.&lt;/P&gt;&lt;P&gt;Regarding Emwin we are using the library version and so not have a license and i think the support link shared above only supports those with a valid emwin license.&lt;/P&gt;&lt;P&gt;I have posted the same issue on emwin forum but did not get any concrete reply.&lt;/P&gt;&lt;P&gt;Its related to calibration only i think.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anuj&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 05:03:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1150026#M10006</guid>
      <dc:creator>anujtanksali</dc:creator>
      <dc:date>2020-09-08T05:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Resistive Touch Issue</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1150057#M10010</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/161420" target="_self"&gt;anujtanksali&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; Thanks for the information about the RT ADC result. From your test result, the RT ADC should be correct.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;About the emwin, it doesn't matter, you can try to create the case. As I know the segger forum should also have the support engineer. Please wait the reply patiently from the segger side.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Wish it helps you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;If you still have questions about it, please kindly let me know!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;-------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Note:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;-----------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 05:52:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1150057#M10010</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-09-08T05:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Resistive Touch Issue</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1675004#M25638</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/161420"&gt;@anujtanksali&lt;/a&gt;, how are you?&lt;/P&gt;&lt;P&gt;I'm facing the same problem to work with resistive touch using IMXRT ADC, did you solve you problem and does it possible you share with me this part of the code for i try to implement in my project?&lt;/P&gt;&lt;P&gt;I'm was reading this&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/user-guide/UM03001.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/user-guide/UM03001.pdf&lt;/A&gt;, and try to implement that part on page 636.&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 14:15:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Resistive-Touch-Issue/m-p/1675004#M25638</guid>
      <dc:creator>paulocabral</dc:creator>
      <dc:date>2023-06-23T14:15:26Z</dc:date>
    </item>
  </channel>
</rss>

