<?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>SensorsのトピックSystem: MPR121 controlled by FRDM KL25</title>
    <link>https://community.nxp.com/t5/Sensors/System-MPR121-controlled-by-FRDM-KL25/m-p/331676#M897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Development environment : IAR ver.6.6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;System: MPR121 controlled by FRDM KL25&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Problem description: can't update electrode configuration register(0x5E) while MPR121 in run mode.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 36pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;The MPR121 is set to work in auto configuration mode (reg.0x7B=0x0B),all electrode include proximity are enabled(reg.0x5E=0x3C)&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: 'Arial','sans-serif';"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 36pt; text-align: left;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;After the first interrupt caused by the proximity electrode I'm waiting for the release interrupt then I try to write a new setting to the register&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 36pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;0x5E=0x0C(12 ele. enable, prox ele. disable) while in run mode. After the writing I read the value of reg.0x5E&amp;nbsp; it still equals to 0x3C .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 36pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;After the first proximity detection I want to disable the proximity and work just with the 12 key pad electrodes,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 36pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;According to the manual the only register that is writable during run mode is 0x5E&amp;nbsp; what could be the problem? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 36pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;The attached screen shots are the reading of all MPR121 registers values after initialization.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;One more thing I use the KITMPR121EVM 12 electrode numeric keypad with the current setting (see attached files) &lt;P style="text-align: left; color: #000000; font-family: 'Calibri','sans-serif'; font-size: 11pt; font-style: normal; font-weight: normal; margin-top: 0cm; margin-bottom: 0pt; unicode-bidi: embed; direction: ltr;"&gt;a proximity detection is made approximately 2-3 cm from the keypad surface, what is the max. distance that can be reached with that keypad?&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2026 23:46:17 GMT</pubDate>
    <dc:creator>milanyudkovich</dc:creator>
    <dc:date>2026-02-03T23:46:17Z</dc:date>
    <item>
      <title>System: MPR121 controlled by FRDM KL25</title>
      <link>https://community.nxp.com/t5/Sensors/System-MPR121-controlled-by-FRDM-KL25/m-p/331676#M897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Development environment : IAR ver.6.6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;System: MPR121 controlled by FRDM KL25&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Problem description: can't update electrode configuration register(0x5E) while MPR121 in run mode.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 36pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;The MPR121 is set to work in auto configuration mode (reg.0x7B=0x0B),all electrode include proximity are enabled(reg.0x5E=0x3C)&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: 'Arial','sans-serif';"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 36pt; text-align: left;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;After the first interrupt caused by the proximity electrode I'm waiting for the release interrupt then I try to write a new setting to the register&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 36pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;0x5E=0x0C(12 ele. enable, prox ele. disable) while in run mode. After the writing I read the value of reg.0x5E&amp;nbsp; it still equals to 0x3C .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 36pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;After the first proximity detection I want to disable the proximity and work just with the 12 key pad electrodes,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 36pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;According to the manual the only register that is writable during run mode is 0x5E&amp;nbsp; what could be the problem? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; text-indent: 36pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;The attached screen shots are the reading of all MPR121 registers values after initialization.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;One more thing I use the KITMPR121EVM 12 electrode numeric keypad with the current setting (see attached files) &lt;P style="text-align: left; color: #000000; font-family: 'Calibri','sans-serif'; font-size: 11pt; font-style: normal; font-weight: normal; margin-top: 0cm; margin-bottom: 0pt; unicode-bidi: embed; direction: ltr;"&gt;a proximity detection is made approximately 2-3 cm from the keypad surface, what is the max. distance that can be reached with that keypad?&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 23:46:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/System-MPR121-controlled-by-FRDM-KL25/m-p/331676#M897</guid>
      <dc:creator>milanyudkovich</dc:creator>
      <dc:date>2026-02-03T23:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: System: MPR121 controlled by FRDM KL25</title>
      <link>https://community.nxp.com/t5/Sensors/System-MPR121-controlled-by-FRDM-KL25/m-p/331677#M898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Menahem Yudkovich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that in the datasheet is mentioned that “the MPR121 registers read operation can be done at any time, either in Run Mode or in Stop Mode. However, the register write operation can only be done in Stop Mode. The ECR (0x5E) and GPIO/LED control registers (0x73~0x7A) can be written at anytime.” However, what this paragraph of the datasheet it trying to mean is that the Electrode Configuration Register (ECR) determines if the MPR121 is in Run Mode or Stop Mode, in other words, you can write to this register anytime when you want to go from RUN mode to STOP mode in order to make changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, first you are getting 0x3C in Register 0x5E, then you need to go to Stop mode (0x5E = 0x00), and then change it to 0x0C in order to make what you are trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the max distance that can be reached with the keypad, sorry, but we cannot quantify the proximity sense range of the MPR121 using the 13&lt;SUP&gt;th&lt;/SUP&gt; proximity detection electrode, the reason is that it depends on multiple factors, i.e.:&lt;/P&gt;&lt;P&gt;+ The size of the electrodes (Langer sensing area gives longer proximity sensing distance),&lt;/P&gt;&lt;P&gt;+ Dielectric’s material,&lt;/P&gt;&lt;P&gt;+ Electrodes and Layout design,&lt;/P&gt;&lt;P&gt;+ Electric energy stored in the capacitance,&lt;/P&gt;&lt;P&gt;+ Electric Noise filtering, etc…&lt;/P&gt;&lt;P&gt;I would like to recommend you to read the following applications notes for a better understanding about how to use the MPR121 as a proximity sensor and the electrical considerations and layout patterns recommendations.&lt;/P&gt;&lt;P&gt;+ &lt;A href="http://cache.freescale.com/files/sensors/doc/app_note/AN3893.pdf"&gt;http://cache.freescale.com/files/sensors/doc/app_note/AN3893.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;+ &lt;A href="http://cache.freescale.com/files/sensors/doc/app_note/AN3863.pdf"&gt;http://cache.freescale.com/files/sensors/doc/app_note/AN3863.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jose Reyes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 18:47:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/System-MPR121-controlled-by-FRDM-KL25/m-p/331677#M898</guid>
      <dc:creator>reyes</dc:creator>
      <dc:date>2015-02-10T18:47:16Z</dc:date>
    </item>
  </channel>
</rss>

