<?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: mpr121 auto adjust baseline values in Sensors</title>
    <link>https://community.nxp.com/t5/Sensors/mpr121-auto-adjust-baseline-values/m-p/293599#M655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tomas - thanks for the reply.&amp;nbsp; If I understand correctly, the control registers above are used to configure the operation for adjusting the baseline registers both up and down.&amp;nbsp; Are you saying that in my case the adjustment cannot be done in one direction because the jump is larger than the threshold used to establish a touch?&amp;nbsp; (It is ok if the touch gets detected in my case during the adjustment, as long as baseline eventually moves).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose I can add something in SW to detect a continuous touch, and if that persists for more than some duration of time, to cause auto-recaliibration.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Sep 2013 02:41:06 GMT</pubDate>
    <dc:creator>maximadelman</dc:creator>
    <dc:date>2013-09-13T02:41:06Z</dc:date>
    <item>
      <title>mpr121 auto adjust baseline values</title>
      <link>https://community.nxp.com/t5/Sensors/mpr121-auto-adjust-baseline-values/m-p/293597#M653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;My system consists of a touchpad that can be used either free-hanging or attached to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;glass.&amp;nbsp; I would like the keypad to be able to move from free-hanging to attached&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;state and back without explicit recalibration performed by the application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;The values in the filtered electrode data registers in free-hanging mode are ~ 0x3D0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;In attached mode, they are ~0x360.&amp;nbsp; I am having the following problem - no matter what I try, I&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;can only get the baseline registers to auto-adjust from the smaller to the larger&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;values.&amp;nbsp;&amp;nbsp; I.e. if I calibrate attached to the glass, baseline register will contain 0x360;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;subsequently removing the touchpad from the glass, I see baseline registers change to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;0x3D0.&amp;nbsp; However, the opposite is not true - if I calibrate in free-hanging mode and then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;attach to the glass, then the baseline registers will not adjust from 0x3D0 to 0x360 no&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;matter how long I wait.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;The values I program into baseline control registers are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;MHD_R = MHD_F = 0x3F&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;NHD_R&amp;nbsp; = NHD_F = 0x4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;NCL_R&amp;nbsp;&amp;nbsp; = NCL_F = 0x2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;FDL_R&amp;nbsp;&amp;nbsp; = FDL_F = 0x2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;Any help would be appreciated.&amp;nbsp; It is a given that the device will not be operated multiple seconds around the change of state from attached to free-standing and back.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 14:12:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/mpr121-auto-adjust-baseline-values/m-p/293597#M653</guid>
      <dc:creator>maximadelman</dc:creator>
      <dc:date>2013-09-09T14:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: mpr121 auto adjust baseline values</title>
      <link>https://community.nxp.com/t5/Sensors/mpr121-auto-adjust-baseline-values/m-p/293598#M654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maxim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt;The MPR121 is not supposed to work as you require. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt;When glass suddenly attached, the cap increase, cause electrode data quickly decrease to 0x360, the delta = 0x3D0 - 0x360 &amp;gt;&amp;nbsp; touch threshold, this has the same effect as finger touch, so baseline locked to previous 0x360 and a touch is detected. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt;I do not think there is a good solution for this, unless there is a way to know when the glass is attached. You cannot distinguish&amp;nbsp; a&amp;nbsp; glasss attached or something like finger touched.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt;While if knowing the glass attached,&amp;nbsp; actually recalibration is very easy by auto configuration after software reset.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt;Tomas&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 13:16:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/mpr121-auto-adjust-baseline-values/m-p/293598#M654</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2013-09-10T13:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: mpr121 auto adjust baseline values</title>
      <link>https://community.nxp.com/t5/Sensors/mpr121-auto-adjust-baseline-values/m-p/293599#M655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tomas - thanks for the reply.&amp;nbsp; If I understand correctly, the control registers above are used to configure the operation for adjusting the baseline registers both up and down.&amp;nbsp; Are you saying that in my case the adjustment cannot be done in one direction because the jump is larger than the threshold used to establish a touch?&amp;nbsp; (It is ok if the touch gets detected in my case during the adjustment, as long as baseline eventually moves).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose I can add something in SW to detect a continuous touch, and if that persists for more than some duration of time, to cause auto-recaliibration.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 02:41:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/mpr121-auto-adjust-baseline-values/m-p/293599#M655</guid>
      <dc:creator>maximadelman</dc:creator>
      <dc:date>2013-09-13T02:41:06Z</dc:date>
    </item>
  </channel>
</rss>

